通过scipy.signal.resample对numpy数组重新采样到OHLC?

时间:2020-02-29 18:48:22

标签: python pandas numpy

我可以通过

将熊猫数据帧重新采样到OHLC
onTeamFiletr($event){
this.sharedService.triggerSomeEvent($event)
  }

如何对numpy数组执行相同操作(例如,通过 dfResampled = df.resample('5min', closed='right', label='right').agg({'open': 'first', 'high': 'max', 'low': 'min', 'close': 'last', 'volume': 'sum'}) ),而又不将numpy数组转换为数据帧,然后又返回(背景:我想节省两次数据转换的时间)?

0 个答案:

没有答案