計算固定時間間隔內的平均數

想要計算D列的平均值,有個條件是以B列中的時間爲軸,每隔1min計算一次。 代碼如下   import pandas as pd df=pd.read_excel("C:/Users/Desktop/average/LAST_mac_plot12.xlsx",names=['a','b','c','d']) print(df.head()) 看一下前5行數據: 可以看到數據的索引並不是時間,現在
相關文章
相關標籤/搜索