File size: 256 Bytes
809f9c2
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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)