Skip to content

BUG: Don't raise when constructing Series from ordered set #36054

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 10 commits into from
Sep 5, 2020
Merged

BUG: Don't raise when constructing Series from ordered set #36054

merged 10 commits into from
Sep 5, 2020

Conversation

dsaxton
Copy link
Member

@dsaxton dsaxton commented Sep 1, 2020

This may or may not be a regression, since before the change that caused the error to be raised the output was still wrong (same bug that motivated the initial patch):

In [2]: keys = {'a': 1, 'b': 2}.keys()

In [3]: pd.Series(keys)
Out[3]: 
0    (a, b)
1    (a, b)
dtype: object

@dsaxton dsaxton added Bug Constructors Series/DataFrame/Index/pd.array Constructors labels Sep 1, 2020
@dsaxton dsaxton added this to the 1.1.2 milestone Sep 1, 2020
@simonjayhawkins
Copy link
Member

@dsaxton merge conflicts (we should get a Github Action to notify us when this occurs)

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.

can merge on green

@dsaxton dsaxton merged commit c688a0f into pandas-dev:master Sep 5, 2020
@dsaxton dsaxton deleted the series-construction-from-ordered-set branch September 5, 2020 23:13
@simonjayhawkins
Copy link
Member

@meeseeksdev backport 1.1.x

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Set type check is too strict when creating Series from dict keys
4 participants