Exercise: Stream Data Processing

Practice how to implement a command-line script for data compression of a file using algorithms of the zlib module.

Problem statement

On Kaggle, you can find a lot of interesting data sets, such as the London Crime Data. You can download the data in CSVcomma-separated values format and build a stream processing script that analyzes the data and tries to answer the following questions:

  • Did the number of crimes go up or down over the years?

  • What are the most dangerous areas of London?

  • What’s the most common crime per area?

  • What’s the least common crime?

If you’re unsure about how to do this, click the “Show Hint” button.

Get hands-on with 1200+ tech skills courses.