Heatmap z value format in python

How can we change the hoverformat for z such that large numbers are not truncated
and expressed as k.

What I observe is for numbers larger than 10000 i.e. 13456 the z hover is 13.345undefined.
The matrix I used is a int64 dtype numpy array.