import pandas as pd | |
def add(comment, toxic,s_toxic, obscene, threat, insult, identity_hate): | |
df = pd.read_csv('train.csv') | |
size = len(df.index) | |
df.loc[size] = [size,comment,toxic,s_toxic,obscene,threat,insult,identity_hate] | |
df.to_csv('train.csv') |