pandas.infer_freq()

pandas.infer_freq

pandas.infer_freq(index, warn=True) [source]

Infer the most likely frequency given the input index. If the frequency is uncertain, a warning will be printed.

Parameters:

index : DatetimeIndex or TimedeltaIndex

if passed a Series will use the values of the series (NOT THE INDEX)

warn : boolean, default True

Returns:

freq : string or None

None if no discernible frequency TypeError if the index is not datetime-like ValueError if there are less than three values.

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.19.2/generated/pandas.infer_freq.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部