我正在尝试使用以下代码将每日OHLCV数据转换为每周数据: #resample so that Open is the first monday price, High and low are theweeks min and max and close is the last sunday price and volume is the sum (can be customized - pandasimport to_offset
BTC.resample('W'
我知道Pandas可以执行重采样,也可以对时间戳索引为浮点数的数据执行重采样:Pandas - Resampling and Interpolation with time float64 但是,我不确定如何将其应用于我的问题-我的数据有一个时间戳列,它是一个浮点数,含义是秒;这是test.csv Time[s], Channel 00.000008000000000) 此<