I want only whole numbers in the y axis tick marks. No fractional numbers

I want to remove 0.5, 1.5 etc.

Is this possible?

fig.update_yaxes(dtick=1, row=1, col=2)

may work. Need to test.