Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Compulsory Task 1 In this compulsory task, you will clean the country column and parse the date _ measured column in the store _ income

Compulsory Task 1
In this compulsory task, you will clean the country column and parse the date_measured column in the store_income_data_task.csv file. Use the examples given in data_cleaning_example.ipynb to guide you.
Complete the following in store_income_task.ipynb:
Load store_income_data_task.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 `days_ago` in the DataFrame that is a copy of
the date_measured 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

1. What are the pros and cons of diversity for an organisation?

Answered: 1 week ago

Question

1. Explain the concept of diversity and equality in the workplace.

Answered: 1 week ago