pandas.DataFrame.first

DataFrame.first(offset)

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.last(‘10D’) -> First 10 days