Skip to content

BUG: Incorrect float format in object column #35603

Closed
@simonjayhawkins

Description

@simonjayhawkins

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]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions