pandas.Series.align

Series.align(other, join='outer', level=None, copy=True, fill_value=None, method=None, limit=None)

Align two Series object with the specified join method

Parameters :

other : Series

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

level : int or name

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

copy : boolean, default True

Always return new objects. If copy=False and no reindexing is required, the same object will be returned (for better performance)

fill_value : object, default None

method : str, default ‘pad’

limit : int, default None

fill_value, method, inplace, limit are passed to fillna

Returns :

(left, right) : (Series, Series)

Aligned Series