Skip to content

BUG: pass 2D ndarray and EA-dtype to DataFrame, closes #12513 #30507

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

Merged
merged 6 commits into from
Jan 1, 2020

Conversation

jbrockmendel
Copy link
Member

@WillAyd
Copy link
Member

WillAyd commented Dec 27, 2019

Can you add a whatsnew for this?

@jreback jreback added Bug Constructors Series/DataFrame/Index/pd.array Constructors ExtensionArray Extending pandas with custom dtypes or arrays. labels Dec 27, 2019
@@ -2551,3 +2551,11 @@ def test_from_tzaware_mixed_object_array(self):
"datetime64[ns, CET]",
]
assert (res.dtypes == expected_dtypes).all()

def test_from_2d_ndarray_with_dtype(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make this test more generic and add to the EA tests instead (followup ok)

@jreback jreback added this to the 1.0 milestone Jan 1, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. needs a rebase. comment on test location, can do here or in a followup

@jreback jreback merged commit 765d8db into pandas-dev:master Jan 1, 2020
@jreback
Copy link
Contributor

jreback commented Jan 1, 2020

thanks, followup (pls create an issue or add to list)

@jbrockmendel jbrockmendel deleted the closer2 branch January 1, 2020 16:31
hweecat pushed a commit to hweecat/pandas that referenced this pull request Jan 1, 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 ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: DataFrame constructor raises error if specify tz dtype dtype='datetime64[ns, UTC]'
3 participants