Series.first()

pandas.Series.first

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

© 2011–2012 Lambda Foundry, Inc. and PyData Development Team
© 2008–2011 AQR Capital Management, LLC
© 2008–2014 the pandas d