Not able to 'numpy.float64' to int in python

Viewed 45

I am trying to convert 'numpy.float64' to float to do this:

enter image description here

ax.get_ylim()[0].astype(float)

Which prints out -2.25

But when I check with type(ax.get_ylim()[0].astype(float)) it is printing out numpy.float64. Why is it not changing the data type?

1 Answers

Can you try the following:

float(ax.get_ylim()[0])
Related