Open avimallu opened 1 year ago
@stinodego, I noticed that you tagged this as a bug - I'm not sure it is. It does not impact how the values are stored into a new column created - they are stored correctly. It's just that inspect()
returns additional values that aren't stored into the new column.
My thinking was that this is a bug in inspect
we should look at, but I admit I didn't give it a lot of thought.
Research
[X] I have searched the above polars tags on Stack Overflow for similar questions.
[ ] I have asked my usage related question on Stack Overflow.
Link to question on Stack Overflow
No response
Question about Polars
This is an implementation detail. While trying to answer https://github.com/pola-rs/polars/issues/9517, I came across an interesting behavior of
inspect
oncumulative_eval
:Gives me the output:
Why are there three
Series
evaluations that return0
shape? I understand that one of them simply might be because Polars is trying to establish the return type, but why the other two?Might it make sense to not show this as an output to
inspect
if it's an implementation detail, since it really confuses the user?