1. Learn
  2. /
  3. Courses
  4. /
  5. Data Manipulation with pandas

Connected

Exercise

Dictionary of lists

Some more data just came in! This time, you'll use the dictionary of lists method, parsing the data column by column.

date small_sold large_sold
"2019-11-17" 10859987 7674135
"2019-12-01" 9291631 6238096

pandas as pd is imported.

Instructions

100 XP
  • Create a dictionary of lists with the new data called avocados_dict.
  • Convert the dictionary to a DataFrame called avocados_2019.
  • Print your new DataFrame.