BUG: allow complex type in convert_dtypes (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

pandas-dev / pandas Public

Additional navigation options

New issue

New issue

Closed

#62960

Closed

BUG: allow complex type in convert_dtypes

#60129

#62960

Assignees

kdarwai

Labels

BugComplexComplex NumbersDtype ConversionsUnexpected or buggy dtype conversions

@yasirroni

Description

@yasirroni

yasirroni

opened

on Oct 30, 2024

Feature Type

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

BugComplexComplex NumbersDtype ConversionsUnexpected or buggy dtype conversions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions