import pandas as pd | |
# Read the CSV file | |
data = pd.read_csv('ruttoniaitrain1.csv') | |
# Rename columns | |
data = data.rename(columns={'Quest': 'text', 'Answer': 'target'}) | |
# Save the preprocessed data | |
data.to_csv('ruttoniaitrain_preprocessed.csv', index=False) |