Table Of Contents


Enter search terms or a module, class or function name.


Panel.truncate(before=None, after=None, axis=None, copy=True)[source]

Truncates a sorted NDFrame before and/or after some particular index value. If the axis contains only datetime values, before/after parameters are converted to datetime values.


before : date

Truncate before index value

after : date

Truncate after index value

axis : the truncation axis, defaults to the stat axis

copy : boolean, default is True,

return a copy of the truncated section


truncated : type of caller

Scroll To Top