Add abbrevation to tick format in polty

fig.update_yaxes(
        title_font_size=12,
        tickfont_size=10,
        tickformat=".2s",
    )

I’m using this to add K,M, B abbrevation to tick label.
but when the date is 0.12 or 0. something its showing like this

Are you sure the data on the xaxis is numerical?

yes it is int64