-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(memtable): ensure column names match provided data
Previously, the `pandas` memtable constructor was performing two tasks inconsistently, one was to subselect columns out of the provided dataframe, the other was to rename those columns. This led to some weird behavior where a mismatch in provided names could lead to a dataframe consisting of NaNs. Now, `columns` can only be provided to rename existing columns and there is no subselection behavior. If the length of the `columns` iterable does not match the number of columns in the provided data, we error.
- Loading branch information
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters