s****n 发帖数: 700 | 1 我有数据格式如下,
date time product value1 value2 value3
..
..
..
..
there are 10 different type of product. we call it P1, P2, P3, P4,....P10
I want to calculate Min/Max, mean, std of value1/2/3 for given product
in a range of datetime.
so my input is,
dataset, $product, $begin_datetime, $end_datetime
output is,
min/max, mean, std
Thanks for your help! | b*******d 发帖数: 353 | 2 用pandas的DataFrame存数据
然后调用rolling_mean, rolling_std? | w********m 发帖数: 1137 | 3 rolling window mean比较简单,
rolling window max/std要实现O(N)比较难
都是leetcode上的题 | s*****V 发帖数: 21731 | 4 这么简单的数据,裸写也不是个事
【在 s****n 的大作中提到】 : 我有数据格式如下, : date time product value1 value2 value3 : .. : .. : .. : .. : there are 10 different type of product. we call it P1, P2, P3, P4,....P10 : I want to calculate Min/Max, mean, std of value1/2/3 for given product : in a range of datetime. : so my input is,
|
|