Series.last()
pandas.Series.last
-
Series.last(offset)
-
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
© 2011–2012 Lambda Foundry, Inc. and PyData Development Team
© 2008–2011 AQR Capital Management, LLC
© 2008–2014 the pandas development team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.18.1/generated/pandas.Series.last.html