Skip to content
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

BUG: Series(dask.array) GH#38645 #42577

Merged
merged 3 commits into from
Jul 20, 2021
Merged

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

This should close #38645 in conjunction with dask/dask#7888, will hold off on closing the issue until @jsignell confirms.

@simonjayhawkins
Copy link
Member

do we want to include in 1.3.1? and include a release note so that users know that constructors now support the numpy array protocol?

@simonjayhawkins
Copy link
Member

and include a release note so that users know that constructors now support the numpy array protocol?

maybe also update the docs, although the discussion on what is array-like is ongoing #41807

@simonjayhawkins simonjayhawkins added Constructors Series/DataFrame/Index/pd.array Constructors Regression Functionality that used to work in a prior pandas version labels Jul 19, 2021
@jsignell
Copy link
Contributor

Thanks! I can confirm that this works when paired with dask/dask#7905 which implements a lazy version of Array.__iter__.

@simonjayhawkins simonjayhawkins added this to the 1.3.1 milestone Jul 19, 2021
@@ -560,8 +560,11 @@ def sanitize_array(
raise TypeError(f"'{type(data).__name__}' type is unordered")

# materialize e.g. generators, convert e.g. tuples, abc.ValueView
# TODO: non-standard array-likes we can convert to ndarray more efficiently?
data = list(data)
if hasattr(data, "__array__"):
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 run this thru L518? where it makes more sense

Copy link
Member Author

Choose a reason for hiding this comment

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

will take some rearrangement (move EA check about ndarray check) but i think doable

@jreback
Copy link
Contributor

jreback commented Jul 19, 2021

i suppose this is fine for 1.3.1 and can rearrange in a follow on

if u can add a release note

@jreback jreback merged commit 86baa9f into pandas-dev:master Jul 20, 2021
@jreback
Copy link
Contributor

jreback commented Jul 20, 2021

@meeseeksdev backport 1.3.x

@lumberbot-app
Copy link

lumberbot-app bot commented Jul 20, 2021

Something went wrong ... Please have a look at my logs.

simonjayhawkins pushed a commit that referenced this pull request Jul 20, 2021
Co-authored-by: jbrockmendel <jbrockmendel@gmail.com>
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Constructors Series/DataFrame/Index/pd.array Constructors Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REGR: passing dask arrays to Series or DataFrame
4 participants