How can I format the y axis in Plotly as string instead of numeric?
I tried to convert the numeric into string with:
df.id= df.id.astype('str')
fig = px.scatter(x = df.Datetime, y = df.id, color =df.Category
)
fig.show()
but the plot displayed the numeric in million, as below:
How can I get the y axis showing the complete digits as string?
fig.update_yaxes(tickformat='d')
might be used to change the formatting rules to show decimal numbers