回答編集履歴
1
サンプル修正
test
CHANGED
@@ -16,7 +16,9 @@
|
|
16
16
|
|
17
17
|
import pandas as pd
|
18
18
|
|
19
|
+
df = pd.DataFrame({'sales':[5,10,15,20],
|
20
|
+
|
19
|
-
|
21
|
+
'date':['20200401','20200401','20200402','20200403']})
|
20
22
|
|
21
23
|
ret = df.groupby('date').agg({'sales':'sum'})
|
22
24
|
|
@@ -28,6 +30,10 @@
|
|
28
30
|
|
29
31
|
#20200401 15
|
30
32
|
|
33
|
+
#20200402 15
|
34
|
+
|
35
|
+
#20200403 20
|
36
|
+
|
31
37
|
```
|
32
38
|
|
33
39
|
|