Table Of Contents

Search

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

pandas.DataFrame.lastΒΆ

DataFrame.last(offset)[source]ΒΆ

Convenience method for subsetting final periods of time series data based on a date offset.

Parameters:offset : string, DateOffset, dateutil.relativedelta
Returns:subset : type of caller

Examples

ts.last(‘5M’) -> Last 5 months

Scroll To Top