pandas 0.8.0 documentation

pandas.Series.truncate

Series.truncate(before=None, after=None, copy=True)

Function truncate a sorted DataFrame / Series before and/or after some particular dates.

Parameters :

before : date

Truncate before date

after : date

Truncate after date

Returns :

truncated : type of caller