Skip to content

API/BUG: silently-ignored dtype in DataFrame constructor #38842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jbrockmendel opened this issue Dec 31, 2020 · 1 comment
Closed

API/BUG: silently-ignored dtype in DataFrame constructor #38842

jbrockmendel opened this issue Dec 31, 2020 · 1 comment
Labels
Bug Constructors Series/DataFrame/Index/pd.array Constructors Duplicate Report Duplicate issue or pull request

Comments

@jbrockmendel
Copy link
Member

I would expect this to raise rather than silently ignore:

df = pd.DataFrame({"A": ["foo", "bar"]}, dtype="i8")

>>> df
     A
0  foo
1  bar

>>> df.dtypes
A    object
dtype: object
@jbrockmendel jbrockmendel added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Dec 31, 2020
@simonjayhawkins
Copy link
Member

duplicate of #24435?

@simonjayhawkins simonjayhawkins added Constructors Series/DataFrame/Index/pd.array Constructors Duplicate Report Duplicate issue or pull request and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Constructors Series/DataFrame/Index/pd.array Constructors Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants