| try: | try: | ||||
| # Skip the first row | # Skip the first row | ||||
| df = pd.read_csv(file) | |||||
| df = pd.read_csv(file, dtype=str) | |||||
| result = [] | result = [] | ||||
| for index, row in df.iterrows(): | for index, row in df.iterrows(): | ||||
| content = {"question": row.iloc[0], "answer": row.iloc[1]} | content = {"question": row.iloc[0], "answer": row.iloc[1]} |