Data Processing using Python Collections

Offered By
Coursera Project Network
In this Guided Project, you will:

Use the Python CSV DictReader to extract the field names from the CSV file.

Create a Python Student class with fields obtained from the DictReader.

Use the Python Counter to find the three most common test scores.

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

By the end of this project you will use the Python Collections Counter, the CSV package's DictReader, and the Collections UserList to read student test data and find the most common test scores. The Python Collection classes are convenience classes that make it easier to process data and extend capabilities of existing classes. The CSV package's DictReader is convenient for reading columnar data. The UserList allows the developer to add functionality to the List, for example to check types. The Counter class is useful for counting common occurrences in arrays and other structures. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

Python CSV ReaderPython CollectionsCollections CounterPython DictReaderPython UserList

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Extend the Python Collections UserList class to include a type checker.

  2. Use the Python CSV DictReader to extract the field names from the CSV file.

  3. Create a Python Student class with fields obtained from the DictReader.

  4. Create a Python function to populate the Student UserList from the CSV file.

  5.  Use the Python Counter to find the three most common test score values.

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.