pandas.DataFrame.reindex_like

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

return an object with matching indicies to myself

Parameters:

other : Object

method : string or None

copy : boolean, default True

limit : int, default None

Maximum size gap to forward or backward fill

Returns:

reindexed : same as input

Notes

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