The code I am using for converting the float into int is as follows:
users.age.mean().astype(int64)
In the code, the user is the name of the data frame and the user is the column in the data frame.
ERROR:
AttributeError
Traceback (most recent call last)
<ipython-input-29-10b672e7f7ae> in <module>
----> 1 users.age.mean().astype(int64)
AttributeError: 'float' object has no attribute 'astype'