回答編集履歴
2
旬ずれ修正
test
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
```python
|
2
2
|
|
3
|
-
pd.cut(df["date"].dt.month % 12, [0, 3, 6, 9, 12], labels=["
|
3
|
+
pd.cut(df["date"].dt.month % 12, [0, 3, 6, 9, 12], labels=["冬", "春", "夏", "秋"], right=False)
|
4
4
|
|
5
5
|
```
|
1
全月がないとだめだったので修正
test
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
```python
|
2
2
|
|
3
|
-
|
3
|
+
pd.cut(df["date"].dt.month % 12, [0, 3, 6, 9, 12], labels=["春", "夏", "秋", "冬"], right=False)
|
4
4
|
|
5
5
|
```
|