In a variety of cases, errors in PySeries::scatter mean Python Series.__setitem__ will corrupt the Series #16905
Closed
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
The error handling path in
PySeries::scatter()
does not resetself.series
from an empty state, so thePySeries
loses all its data if you hit one of the error paths. This is a problem for exploratory data analysis, or any sort of interactive usage.This is a spinoff from #15294
Expected behavior
Restore data to previous state, unchanged.
Installed versions
Git as of June 12, 2024.
The text was updated successfully, but these errors were encountered: