Update convert_last_fmt.py
Browse files- convert_last_fmt.py +2 -2
convert_last_fmt.py
CHANGED
|
@@ -51,8 +51,8 @@ def convert_last_fmt_selection(csv_file):
|
|
| 51 |
# 選択肢配列から選択肢を取り出し、行を追加
|
| 52 |
for i in range(len(selection)):
|
| 53 |
new_row = pd.DataFrame({'選択肢ID': [create_choice_id(
|
| 54 |
-
|
| 55 |
-
|
| 56 |
# outputのindexを設定
|
| 57 |
output_choice.set_index('選択肢ID', inplace=True)
|
| 58 |
# 選択肢IDの昇順で並び替え
|
|
|
|
| 51 |
# 選択肢配列から選択肢を取り出し、行を追加
|
| 52 |
for i in range(len(selection)):
|
| 53 |
new_row = pd.DataFrame({'選択肢ID': [create_choice_id(
|
| 54 |
+
row['問題ID'], i+1)], '問題ID': [row['問題ID']], '選択肢': [selection[i]], '表示順': [i+1]})
|
| 55 |
+
output_choice = pd.concat([output_choice, new_row], ignore_index=True)
|
| 56 |
# outputのindexを設定
|
| 57 |
output_choice.set_index('選択肢ID', inplace=True)
|
| 58 |
# 選択肢IDの昇順で並び替え
|