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

TST: Added dataframe constructor tests confirming order is preserved with standard Python dicts #38206

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

jusexton
Copy link
Contributor

@jusexton jusexton commented Dec 1, 2020

Adds additional test scenarios that confirm dataframes created with standard Python dicts preserve order as expected.

Copy link
Member

@ivanovmg ivanovmg left a comment

Choose a reason for hiding this comment

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

@JSextonn, thank you for the PR.
Looks good to me.

@arw2019, there are bunch of other tests using OrderedDict in the same module (probably some other).
Should they be replaced too in a separate PR?

@ivanovmg ivanovmg requested a review from arw2019 December 1, 2020 15:59
Copy link
Member

@arw2019 arw2019 left a comment

Choose a reason for hiding this comment

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

Thanks @JSextonn. LGTM

@arw2019, there are bunch of other tests using OrderedDict in the same module (probably some other).
Should they be replaced too in a separate PR?

yes (there's a series dict constructor test and a few JSON tests)

@jreback jreback added this to the 1.2 milestone Dec 2, 2020
@jreback jreback added Constructors Series/DataFrame/Index/pd.array Constructors Testing pandas testing functions or related to the test suite labels Dec 2, 2020
@jreback jreback merged commit 6afcb69 into pandas-dev:master Dec 2, 2020
@jreback
Copy link
Contributor

jreback commented Dec 2, 2020

thanks @JSextonn

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 Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TST: dataframe constructor should preserve order with standard Python dicts
4 participants