using CSV, DataFrames, Gadfly
begin
spotify_filepath = "data//archive//spotify.csv"
spotify_data = CSV.read(spotify_filepath, DataFrame)
end;
first(spotify_data,5)
Date | Shape of You | Despacito | Something Just Like This | HUMBLE. | Unforgettable | |
---|---|---|---|---|---|---|
1 | 2017-01-06 | 12287078 | missing | missing | missing | missing |
2 | 2017-01-07 | 13190270 | missing | missing | missing | missing |
3 | 2017-01-08 | 13099919 | missing | missing | missing | missing |
4 | 2017-01-09 | 14506351 | missing | missing | missing | missing |
5 | 2017-01-10 | 14275628 | missing | missing | missing | missing |
plot(stack(spotify_data, 2:6), x=:Date, y=:value, color=:variable, Geom.line,)
Built with Julia 1.9.1 and
CSV 0.10.9DataFrames 1.5.0
Gadfly 1.3.4
To run this tutorial locally, download [this file](/tutorials/gadflytypesandstyles03x10.jl) and open it with Pluto.jl.