-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: item_cache invalidation in get_numeric_data #35882
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
Conversation
…g-get_numeric_data
…g-get_numeric_data
…g-get_numeric_data
@@ -191,6 +191,23 @@ def test_corr_nullable_integer(self, nullable_column, other_column, method): | |||
expected = pd.DataFrame(np.ones((2, 2)), columns=["a", "b"], index=["a", "b"]) | |||
tm.assert_frame_equal(result, expected) | |||
|
|||
def test_corr_item_cache(self): | |||
# Check that corr does not lead to incorrect entries in item_cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an open issue for this? If not can you add a whatsnew?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whatsnew added
…g-get_numeric_data
…g-get_numeric_data
…g-get_numeric_data
…g-get_numeric_data
@@ -719,7 +719,6 @@ def get_numeric_data(self, copy: bool = False) -> "BlockManager": | |||
copy : bool, default False | |||
Whether to copy the blocks | |||
""" | |||
self._consolidate_inplace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you are removing this then get_bool_data right above looks suspicious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree. thats part of the _reduce trouble we discussed this afternoon. #34918 removes that usage.
thanks @jbrockmendel |
whatsnew in 1.1.2. should this be backported and milestone changed or release note moved? in release readiness I now check whatsnew on master and backport in sync https://github.com/simonjayhawkins/pandas-release/runs/1078142445?check_suite_focus=true |
@meeseeksdev backport 1.1.x |
…36188) Co-authored-by: jbrockmendel <[email protected]>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff