Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active March 14, 2020 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/f404cdd48f1953e30b294d3f6da77c87 to your computer and use it in GitHub Desktop.
Save aravindpai/f404cdd48f1953e30b294d3f6da77c87 to your computer and use it in GitHub Desktop.
#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