pandas 0.8.0 documentation

pandas.DataFrame.reindex_like

DataFrame.reindex_like(other, method=None, copy=True, limit=None)

Reindex DataFrame to match indices of another DataFrame, optionally with filling logic

Parameters :

other : DataFrame

method : string or None

copy : boolean, default True

limit : int, default None

Maximum size gap to forward or backward fill

Returns :

reindexed : DataFrame

Notes

Like calling s.reindex(index=other.index, columns=other.columns,
method=...)