RuttoniAI / csv_preprocess.py
lu2000luk's picture
Upload 8 files
809f9c2
raw
history blame
256 Bytes
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)