Skip main navigation

Practical Activity: Data Wrangling using Python

Apply what you've learned about wrangling data in an activity.

We are going to use the same set of data as well as the scenario that we have been using in the previous courses.

Dataset

If you can’t find the dataset, fret not! Feel free to download the same CSV file of the dataset, again, and get started with the activities in hand.

Download: Brazilian-fire-dataset.csv [1]

Download the file and save it under the file path as shown below:

dataset/brazilianfire.csv

Exercise

The activities in this module focus on data wrangling. In this case, you will create a DataFrame and conduct certain activities as prompted in the notebook.

Write the Python code according to instructions in the Jupyter Notebook for this module. Data wrangling activities would be an extension of what you learned and performed in the data ingestion tasks.

For the current activity, you will see that there are cells with the heading ‘TO DO – Activity’. Write the code in the code-cells after the activity mark-up cells.

Download: Data-Wrangling-using-Python-exercise.ipynb

Solution

Once you finish adding your codes and running them on the Notebook, be sure to compare your codes and outputs with the solution notebook provided to you here.

Download: Data-wrangling-using-Python-solution.ipynb

All the best for this exercise!

This article is from the free online

Data Wrangling and Ingestion using Python

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education