GH avatar Bite 130. Analyze some basic Car Data

In this exercise you will analyze some basic car data. Here is the (fake) JSON data we created with Mockeroo - snippet below / full output here:

  [{"id":1,"automaker":"Dodge","model":"Ram Van 1500","year":1999},
   {"id":2,"automaker":"Chrysler","model":"Town & Country","year":2002},
   {"id":3,"automaker":"Porsche","model":"Cayenne","year":2008},
   ... 997 car entries more ...
  ]

First you will write most_prolific_automaker to find out which automaker produces the most new models for a particular year.

Secondly you will write get_models which filters the data set down to car models produced by a particular automaker and year (as passed into the function).

To keep it a Beginner Bite we'll pause here, but if you like this data set, let us know and we make a sequel Bite, maybe we can add some financial data :)

Check out the docstrings and pytests and give it a shot. Good luck and keep calm keep and code in Python.

go back Beginner level
Bitecoin 2X

248 out of 250 users completed this Bite.
Will you be Pythonista #249 to crack this Bite?
Resolution time: ~44 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 3.88 on a 1-10 difficulty scale.
» You can do it! 😌

Buy Now Login and get coding
We use Python 3.7