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 copy : boolean, default True

Returns :

truncated : type of caller