先贴写好的
import pandas as pd
sentence_data = pd.read_table('question_4_1.txt', sep='\t', header=None)
names = ['text','sentiment']
sentence_data.columns = names
先贴写好的
import pandas as pd
sentence_data = pd.read_table('question_4_1.txt', sep='\t', header=None)
names = ['text','sentiment']
sentence_data.columns = names