Resample intraday pandas DataFrame without add new days

后端 未结 3 2067
别那么骄傲
别那么骄傲 2021-02-06 03:46

I want to downsample some intraday data without adding in new days

df.resample(\'30Min\')

Will add weekends etc which is undesirable. Is there

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-06 04:20

    Probably the simplest way is to just do a dropna afterwards to get rid of the empty rows, e.g.

    df.resample('30Min').dropna()
    

提交回复
热议问题