pandas 0.8.1 documentation

pandas.DataFrame.truncate

DataFrame.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