Код: Выделить всё
client_id year total_vchrs
0 1564931 2021 4.00
1 2013493 2021 0.00
2 1587580 2021 1.00
3 2259014 2021 0.00
4 2293939 2021 0.00
...
Код: Выделить всё
client_id object
year int64
total_vchrs float64
dtype: object
Код: Выделить всё
chart = alt.Chart(melted_df).mark_bar().encode(
x=alt.X('year:O', title='Year'),
y=alt.Y('total_vchrs:Q', title='Total Vouchers'),
#color=alt.Color('client_id:N', title='Client ID'),
facet=alt.Facet('client_id:N', columns=1, title='Client ID')
).properties(
width=600,
height=100,
title="Total vouchers Over Time by Client ID"
)
chart
[img]https://i.sstatic .net/6NlMZeBM.png[/img]
Что мне нужно сделать, чтобы это исправить?
Подробнее здесь: https://stackoverflow.com/questions/791 ... draw-blank