Closed
Description
from #35580 (comment)
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
>>> pd.Series([1.0]).astype(object)
0 1
dtype: object
>>>
Problem description
[this should explain why the current behaviour is a problem and why the expected output is a better solution]
Expected Output
>>> pd.Series([1.0]).astype(object)
0 1.0
dtype: object
Output of pd.show_versions()
[paste the output of pd.show_versions()
here leaving a blank line after the details tag]