Skip to content

BUG: Fix getsizeof when using Series(obj) and taking into account GC corrections #52112

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

Merged
merged 21 commits into from
Mar 24, 2023

Conversation

balexandermunoz
Copy link
Contributor

Calling sizeof to compute the size of an object produces an error, and in general, this method does not take Garbage Collector corrections into account.

…corrections

Calling __sizeof__ to compute the size of an object produces an error, and in general, this method does not take Garbage Collector corrections into account.
…corrections

Calling __sizeof__ to compute the size of an object produces an error, and in general, this method does not take Garbage Collector corrections into account.
@mroeschke
Copy link
Member

Could you put these tests in pandas/tests/base/test_misc.py

@mroeschke mroeschke added the Bug label Mar 24, 2023
@mroeschke mroeschke added this to the 2.1 milestone Mar 24, 2023
@mroeschke mroeschke merged commit 805d765 into pandas-dev:main Mar 24, 2023
@mroeschke
Copy link
Member

Thanks @balexandermunoz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Get sizeof fails for pandas series or data frame when one element is a type
2 participants