pandas使用resample后的数据结构
pandas中的resample是重采样方法,使用该方法后的数据结构是DatetimeIndexResampler。可以认为此结构是一种“中间结构”,是从原来的dataframe重采样后的数据结构,因而无法直接显示数值。
DatetimeIndexResampler实际是dataframe的子类,继承了df的所有属性,比如min, max, sum, count等。
df中的一列的数据结构则为Series,Series也能使用resample。
pandas中的resample是重采样方法,使用该方法后的数据结构是DatetimeIndexResampler。可以认为此结构是一种“中间结构”,是从原来的dataframe重采样后的数据结构,因而无法直接显示数值。
DatetimeIndexResampler实际是dataframe的子类,继承了df的所有属性,比如min, max, sum, count等。
df中的一列的数据结构则为Series,Series也能使用resample。