I’ve the below table of data:
2×7 DataFrame
│ Row │ Customer │ M0 │ M1 │ M2 │ M3 │ ... │ Mn │
│ │ String │ Int64 │ Int64 │ Int64 │ Int64 │ Int64 │ Int64 │
├─────┼──────────┼─────────┼──────────┼───────┼───────┼───────┼───────┤
│ 1 │ x │ 8 │ 7 │ 9 │ 2 │ . │ 3 │
│ 2 │ y │ 6 │ 3 │ 4 │ 2 │ . │ 7 │
That is generted from the below:
using CSV, Query, DataFrames
df = CSV.read("deliveries.csv"; header=true, delim=',')
deliveries = by(
sdf -> mapcols(sum, sdf[:, 3:end]),
df,
:Customer
)
println(deliveries)
I’m trying to use using Gadfly
any other option is ok for me, to draw the chart, so that each row (customer) is a series, so I’ll be having a multiple time serials lines.