pandas "Freq"标签的文档在哪里? [英] Where is the documentation on Pandas 'Freq' tags?

查看:91
本文介绍了 pandas "Freq"标签的文档在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Pandas的新手,正在尝试使用date_range.我遇到了freq的各种好东西,例如BMEBMS,我希望能够快速查找适当的字符串以获取所需的内容.昨天我在文档中的某个地方找到了格式良好的表,但是表的标题太晦涩,以至于我今天无法使用搜索再次找到它.

I am new to Pandas, and am trying to use date_range. I came across all kinds of good things for freq, like BME and BMS and I would like to be able to quickly look up the proper strings to get what I want. Yesterday I found a nicely formatted table somewhere in the documentation, but the title of the table was so obtuse that I can not use search to find it again today.

推荐答案

您可以找到名为

许多字符串别名被赋予有用的公共时间序列频率.我们将这些别名称为偏移别名(称为v0.8.0之前的时间规则).

A number of string aliases are given to useful common time series frequencies. We will refer to these aliases as offset aliases (referred to as time rules prior to v0.8.0).

Alias   Description
B       business day frequency
C       custom business day frequency (experimental)
D       calendar day frequency
W       weekly frequency
M       month end frequency
BM      business month end frequency
CBM     custom business month end frequency
MS      month start frequency
BMS     business month start frequency
CBMS    custom business month start frequency
Q       quarter end frequency
BQ      business quarter endfrequency
QS      quarter start frequency
BQS     business quarter start frequency
A       year end frequency
BA      business year end frequency
AS      year start frequency
BAS     business year start frequency
BH      business hour frequency
H       hourly frequency
T, min  minutely frequency
S       secondly frequency
L, ms   milliseonds
U, us   microseconds
N       nanoseconds

但是以后可能会更好:

DOC:需要更完整的偏移量/频率文档#8438

DOC:在文档字符串中,用户指向有效的偏移别名#3324

这篇关于 pandas "Freq"标签的文档在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆