Skip to content

BUG: allow complex type in convert_dtypes #60129

Open
@yasirroni

Description

@yasirroni

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

convert_dtypes should be able to do this type of coercion from string complex looking

print(pd.DataFrame(['1.0+5j', '1.5-3j']).astype(complex).convert_dtypes())

Related to closed #4895

Feature Description

Alternative Solutions

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions