pandas.Panel.reindex

Panel.reindex(major=None, minor=None, method=None, major_axis=None, minor_axis=None, copy=True, **kwargs)

Conform panel to new axis or axes

Parameters :

major : Index or sequence, default None

Can also use ‘major_axis’ keyword

items : Index or sequence, default None

minor : Index or sequence, default None

Can also use ‘minor_axis’ keyword

method : {‘backfill’, ‘bfill’, ‘pad’, ‘ffill’, None}, default None

Method to use for filling holes in reindexed Series

pad / ffill: propagate last valid observation forward to next valid backfill / bfill: use NEXT valid observation to fill gap

copy : boolean, default True

Return a new object, even if the passed indexes are the same

Returns :

Panel (new object) :