File size: 263 Bytes
3333658
 
 
 
 
 
 
1
2
3
4
5
6
7
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')