Plotly converts years to float

I fill y axis with values y = [‘1991’, ‘1992’, ‘1993’, ‘1994’] and finally I see 1,990.5 1991 1,991.5 1992 1,992.5 …
How to hide these unneeded float values?

You should first have a look at https://plot.ly/python/time-series/