pandas 0.7.0 documentation

pandas.DataFrame.align

DataFrame.align(other, join='outer', axis=None, level=None, copy=True)

Align two DataFrame object on their index and columns with the specified join method for each axis Index

Parameters :

other : DataFrame or Series

join : {‘outer’, ‘inner’, ‘left’, ‘right’}, default ‘outer’

axis : {0, 1, None}, default None

Align on index (0), columns (1), or both (None)

level : int or name

Broadcast across a level, matching Index values on the passed MultiIndex level

Returns :

(left, right) : (DataFrame, type of other)

Aligned objects