Python 什么';s pd.DatetimeIndex.weekday和pd.DatetimeIndex.dayofweek之间的差异
在datetimeindex中,和似乎是一样的。他们只是彼此的别名吗?我根据Python 什么';s pd.DatetimeIndex.weekday和pd.DatetimeIndex.dayofweek之间的差异,python,pandas,Python,Pandas,在datetimeindex中,和似乎是一样的。他们只是彼此的别名吗?我根据DatetimeIndex的pandas源代码定义发现了这些函数,weekday只是dayofweek的别名,所以没有区别 class DatetimeIndex: ... dayofweek = _field_accessor('dayofweek', 'dow', "The day of the week with Monday=0, S
DatetimeIndex
的pandas
源代码定义发现了这些函数,weekday
只是dayofweek
的别名,所以没有区别
class DatetimeIndex:
...
dayofweek = _field_accessor('dayofweek', 'dow',
"The day of the week with Monday=0, Sunday=6")
weekday = dayofweek
资料来源: