CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Introduction to Data Visualization with Julia

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Plot time series
____(
	____.____,
    ____."____",
    color=:red2,
    linewidth=2.5,
    label="Apple"
)
ylabel!("Price (Rupees)")
Modifier et exécuter le code