1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Data Visualization with Julia

Exercise

Them apples

In this exercise, you will plot the time series of apple prices in a center in Chittoor, India. The apple DataFrame contains dates in a string format. To plot the time series accurately, you must convert these dates to Date types and sort them chronologically. Let us see what happens if you don't.

The necessary packages, DataFrames, Plots, and Dates, have already been imported. Furthermore, the apple DataFrame is readily available for you. You can visualize it in the shell to determine its current date format.

Instructions 1/3

undefined XP
  • 1
    • Plot the time series of Retail Price as a function of Date.
  • 2
    • Convert the :Date column to Date type before plotting, using the correct dateformat string.
  • 3
    • Add a step sorting the apple DataFrame by the Date column.