Table Of Contents

Search

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

pandas.Series.first

Series.first(offset)[source]

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

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

Examples

ts.first(‘10D’) -> First 10 days

Scroll To Top