Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas changing float to int

# for x axis
ax.xaxis.set_major_formatter(FuncFormatter(lambda x, _: int(x)))

# for y axis
ax.yaxis.set_major_formatter(FuncFormatter(lambda y, _: int(y)))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #changing #float #int
ADD COMMENT
Topic
Name
9+8 =