yosuke-i commited on
Commit
b7c43c6
1 Parent(s): f4cb972

Update select_question.py

Browse files
Files changed (1) hide show
  1. select_question.py +4 -5
select_question.py CHANGED
@@ -70,8 +70,7 @@ def create_choice_question(csv_file):
70
  # cp932で保存、エラーは無視(置換しても良い)
71
  result_df.to_csv(tmp.name, index=False, encoding='cp932', errors='ignore')
72
  output_path = tmp.name
73
-
74
- # ファイル名を変更
75
- new_path = os.path.join(os.path.dirname(output_path), "output.csv")
76
- os.rename(output_path, new_path)
77
- return new_path
 
70
  # cp932で保存、エラーは無視(置換しても良い)
71
  result_df.to_csv(tmp.name, index=False, encoding='cp932', errors='ignore')
72
  output_path = tmp.name
73
+ # ファイル名を変更
74
+ new_path = os.path.join(os.path.dirname(output_path), "output.csv")
75
+ os.rename(output_path, new_path)
76
+ return new_path