Pandas
import pandas as pd
fullCorpus = pd.DataFrame({
'label': labelList,
'body_list': textList
})
fullCorpus.head() #print first 5 rowsAccess
df['date'] #just date column
df[df['date'] > '2017-03-20'] # just date columns that meet criteriaFilter
df = df.drop(['high','low','close','volume'], axis=1) #get rid of columnsIndexing
Read in seperated data
Create New Column
Last updated