teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

個人情報が入っていたので消しました

2021/04/16 08:13

投稿

madanemui
madanemui

スコア1

title CHANGED
File without changes
body CHANGED
@@ -34,7 +34,7 @@
34
34
  df_f1q,str(i) = df_f1.groupby([df_qnumber[i+1]]).count().sort_values("日付",ascending=False)
35
35
 
36
36
  for i in range():
37
- with pd.ExcelWriter("C:\Users\117975\Downloads\mypython\output\output2.xlsx") as writer:
37
+ with pd.ExcelWriter("output2.xlsx") as writer:
38
38
  df_f1q,str(i)["日付"].to_excel(writer, sheet_name='q'+i)
39
39
  ```
40
40
  当然ながらエラーが出ます。。

1

初心者なので初心者マークをつけました

2021/04/16 08:13

投稿

madanemui
madanemui

スコア1

title CHANGED
File without changes
body CHANGED
@@ -38,4 +38,6 @@
38
38
  df_f1q,str(i)["日付"].to_excel(writer, sheet_name='q'+i)
39
39
  ```
40
40
  当然ながらエラーが出ます。。
41
- SyntaxError: cannot assign to function call
41
+ SyntaxError: cannot assign to function call
42
+
43
+ よろしくお願いいたします。