__getstate__
of sliced string Series keeps reference to original Series values.
#15246
Open
2 tasks done
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
Basically re-opening #13972.
The issue is the same as the original. For certain string series a sliced version of it will still serialize the original Series values.
The output from the above script shows that while the sliced version is less than the original, it is still much larger the sliced values.
If you look at the sliced_state, you can see that the original
N
values still exists.Expected behavior
The sliced_state should be similarly sized to good_state
Installed versions
The text was updated successfully, but these errors were encountered: