回答編集履歴
1
answer
CHANGED
@@ -3,4 +3,6 @@
|
|
3
3
|
```python
|
4
4
|
for date, sub_df in df.groupby('Date'):
|
5
5
|
sub_df.to_csv(f'{date}.csv')
|
6
|
-
```
|
6
|
+
```
|
7
|
+
|
8
|
+
参考:[Group by: split-apply-combine # Iterating through groups](https://pandas.pydata.org/pandas-docs/stable/user_guide/groupby.html#iterating-through-groups)
|