I am trying to make a simple line plot using plotly express, of a data frame:
diccionary = {'Bet_type': ['dozen', 'column', 'even_odd', 'red_black'],
'Max_money': [216, 329, 377,193],
'times_played':[51,83,594,202]}
df = pd.DataFrame(diccionary)
df
when I try to plot all the Bet_type
in a single graph, the graph appears with correct names but no lines
fig = px.line(df, x="times_played", y="Max_money", color ='Bet_type')
fig.show()
If I remove color
it works but plots something that I am not interested in, In the same notebook I've made a similar plot with a different data frame and it works perfectly, so I assume doesn't have to do with the libraries.
If someone have any idea why is this happening would be really appreciated. thanks