pandas.DataFrame.reindex_like

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

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

other : DataFrame method : string or None copy : boolean, default True limit : int, default None

Maximum size gap to forward or backward fill
Like calling s.reindex(index=other.index, columns=other.columns,
method=...)

reindexed : DataFrame