forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API: New copy / view semantics using Copy-on-Write (pandas-dev#46958)
* API: New copy / view semantics using Copy-on-Write * fix more tests * Handle CoW in BM.iset * Handle CoW in xs * add bunch of todo comments and usage warnings * Insert None ref in BM.insert * Ensure to not assume copy_on_write is set in case of ArrayManager * Handle refs in BM._combine / test CoW in select_dtypes * handle get_numeric_data for single block manager * fix test_internals (get_numeric_data now uses CoW) * handle refs in consolidation * fix deep=None for ArrayManager * update copy/view tests from other PR * clean-up fast_xs workarounds now it returns a SingleBlockManager * tracks refs in to_frame * fixup after updata main and column_setitem + iloc inplace setitem changes (pandas-devgh-45333) * fix inplace fillna + fixup new tests * address comments + update some todo comments * Update pandas/core/internals/managers.py Co-authored-by: Matthew Roeschke <emailformattr@gmail.com> * fixup linting * update new copy_view tests to use get_array helper * add comment to setitem * switch default to False, ensure CoW copies only happen when enabled + add additional test build with CoW * update type annotations * Fix stata issue to avoid SettingWithCopyWarning in read_stata * update type + option comment * fixup new rename test Co-authored-by: Matthew Roeschke <emailformattr@gmail.com>
- Loading branch information
1 parent
c1ff44a
commit 0157e90
Showing
47 changed files
with
1,019 additions
and
291 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
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
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
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
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
Oops, something went wrong.