Passing too few names to .struct.rename_fields
removes remaining fields.
#9052
Labels
A-dtype-struct
Area: struct data type
A-input-parsing
Area: parsing input arguments
bug
Something isn't working
P-low
Priority: low
python
Related to Python Polars
Polars version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
I'm not sure if this is a bug or not.
I just noticed that if you supply too few names to
struct.rename_fields
- the remaining fields are "dropped".I'm not sure if this is intended behaviour of if this should be a strict operation where the correct amount of names need to be given?
Thanks.
Reproducible example
Expected behavior
I'm not sure.
Installed versions
The text was updated successfully, but these errors were encountered: