
Datensatz-Link
Ich bin nicht wirklich sicher, wie ich vorgehen soll.
I haben einen solchen Ansatz bewiesen, aber er ist größtenteils falsch.
Code: Select all
source = sank['FROM']
target = sank['TO']
value = sank['VALUE']
label = sank['FROM'].unique().tolist() + sank['TO'].unique().tolist(),
fig = go.Figure(data=[go.Sankey(
node = dict(
pad = 15,
thickness = 20,
line = dict(color = "black", width = 0.5),
label = label,
color = "lightblue"
),
link = dict(
source=source,
target=target,
value=value,
color = "lightblue"
)
)])
fig.show()