Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions In this compulsory task, you will need the following libraries: fuzzywuzzy chardet Within this task folder, you will find a Jupyter Notebook named data
Instructions
In this compulsory task, you will need the following libraries:
fuzzywuzzy
chardet
Within this task folder, you will find a Jupyter Notebook named
datacleaningexample.jpynb Work through this notebook before moving on to
the compulsory task.
Compulsory Task
In this compulsory task, you will clean the country column and parse the
"datemeasured" column in the storeincomedatatask.csv file. Use the examples
given in datacleaningexample.ipynb to guide you.
Complete the following in storeincometask.ipynb:
Load storeincomedatatask.csv
Take a look at all the unique values in the "country" column. Then, convert
the column entries to lowercase and remove any trailing white spaces.
Clean up the "country" column so that there are three distinct countries.
Create a new column called in the DataFrame that is a copy of
the "datemeasured" column but instead shows a number that represents
the number of days ago that it was measured. Note that the current date
can be obtained using datetime.date.today
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