text_plain_output_5.png text_plain_output_3.png text_plain_output_1.png
def making_label(st):
    if st == 'positive':
        return 0
    elif st == 'neutral':
        return 2
    else:
        return 1
train['label'] = train['sentiment'].apply(making_label)
eva['label'] = eva['sentiment'].apply(making_label)
print(train.shape)