Skip to content

Instantly share code, notes, and snippets.



Last active Mar 14, 2020
What would you like to do?
#importing libraries
import pandas as pd
import numpy as np
#reading csv files
train = pd.read_csv('Train.csv')
valid = pd.read_csv('Valid.csv')
#train_test split
x_tr, y_tr = train['text'].values, train['label'].values
x_val, y_val = valid['text'].values, valid['label'].values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment