-
Notifications
You must be signed in to change notification settings - Fork 224
Conversation
Codecov Report
@@ Coverage Diff @@
## main #652 +/- ##
=======================================
Coverage 69.56% 69.56%
=======================================
Files 299 299
Lines 16738 16738
=======================================
Hits 11643 11643
Misses 5095 5095
Continue to review full report at Codecov.
|
I made it on purpose to not expose since |
When I build an array of dtype This is valid as long a the array is not sliced. To see if it is sliced I check the offset. If it is non zero, we cannot take that fast path and we compute the unique values. I could modify the slice operation if needed. But it is an implementation detail that has useful information for downstream crates. Another possibility would maybe be an function that returns the memory size of the original buffer (without offset and len taken into account)? |
Categorical <-> to a dictionary, right? |
No, in polars the categorical itself. It is backend by a |
ah, and if the array is sliced, the length of the hashmap is not by itself equal to the |
Indeed :) |
could you rebase to get a green CI? |
I want to know if a certain primitive array has been sliced. This seems easiest to me by checking if the backing buffer has got an offset.