pandas.Panel.shift

Panel.shift(*args, **kwargs)

Shift major or minor axis by specified number of leads/lags. Drops periods right now compared with DataFrame.shift

Parameters:

lags : int

axis : {‘major’, ‘minor’}

Returns:

shifted : Panel