我可以通过
将熊猫数据帧重新采样到OHLConTeamFiletr($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数组转换为数据帧,然后又返回(背景:我想节省两次数据转换的时间)?