Skip to content

Fix construction of DataFrames from dict when columns are provided - #13766

Merged
rapids-bot[bot] merged 2 commits into
NVIDIA:branch-23.10from
wence-:wence/fix/issue-13738
Jul 28, 2023
Merged

Fix construction of DataFrames from dict when columns are provided#13766
rapids-bot[bot] merged 2 commits into
NVIDIA:branch-23.10from
wence-:wence/fix/issue-13738

Conversation

@wence-

@wence- wence- commented Jul 26, 2023

Copy link
Copy Markdown
Contributor

Description

If a columns argument is provided to the dataframe constructor, this should be used to select columns from the provided data dictionary. The previous logic did do this correctly, but didn't preserve the appropriate order of the resulting columns (which should come out in the order that the column selection is in).

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

If a columns argument is provided to the dataframe constructor, this
should be used to select columns from the provided data dictionary.
The previous logic did do this correctly, but didn't preserve the
appropriate order of the resulting columns (which should come out in
the order that the column selection is in).

- Closes NVIDIA#13738
@wence-
wence- requested a review from a team as a code owner July 26, 2023 11:29
@wence-
wence- requested review from bdice and brandon-b-miller July 26, 2023 11:29
@github-actions github-actions Bot added the Python Affects Python cuDF API. label Jul 26, 2023
@wence- wence- added bug Something isn't working non-breaking Non-breaking change and removed Python Affects Python cuDF API. labels Jul 26, 2023
@github-actions github-actions Bot added the Python Affects Python cuDF API. label Jul 28, 2023
@galipremsagar

Copy link
Copy Markdown
Contributor

/merge

@galipremsagar galipremsagar added the 5 - Ready to Merge Testing and reviews complete, ready to merge label Jul 28, 2023
@rapids-bot
rapids-bot Bot merged commit 2dabf0c into NVIDIA:branch-23.10 Jul 28, 2023
@wence-
wence- deleted the wence/fix/issue-13738 branch July 29, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to Merge Testing and reviews complete, ready to merge bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] columns= argument to DataFrame does not correctly select data when data contains labels

2 participants