But the problem is that, the im feeling rather rotten...
text is ended up being as a column rather than a dataframe feature, and when I try to rename the column I just end up losing the feature all together, and skipping onto the 2nd value in the dataframe:

EDIT:
This is how I read in the text file.

Any answers, comments are heartfully accepted.
CodePudding user response:
The final solution would be (respectfully concluded by @luigigi)
pd.read_csv("emotions.txt", sep=";", header=None)
Thanks!
CodePudding user response:
You can pre-defined the columns name with the code.
df = pd.read_csv('emotions.txt', sep =';', names=['TEXT','EMOTION'], header=None)