Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I keep getting the error of FileNotFoundError: File b'rt-polarity.txt' does not exist. I am unsure on what I am missing. 1a) Import data mport
I keep getting the error of "
FileNotFoundError: File b'rt-polarity.txt' does not exist". I am unsure on what I am missing.1a) Import data mport the textfile 'rt-polarity.txt' into a DataFrame called MR_df, Set the column names as index, label, review Note that 'rt-polarity.txt' is a tab separated raw text file, in which data is separated by tabs (\t) You can load this file with read csv Specifying the sep (separator) argument as tabs ('t') You will have the set 'header as None MR_filepath- 'data/rt-polarity.tsv # YOUR CODE HERE MR_df pd.read_csv('rt-polarity.txt', sep, ', header-None)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started