You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This actually can cause some very nasty and silent errors in the analyses that depend on this .unique() operator, as only the import of lux is needed to redefine behaviour.
The text was updated successfully, but these errors were encountered:
Describe the bug
LuxSeries
wrapper around pandas Series, does not compute the unique values correctly for series corresponding to subsets of dataframe.To Reproduce
Invent some data:
View it, no need to click on the lux button or anything.
Now create a subset of this data from
bar > 0
and selectfoo
column only.data
is now a Series with two values in it'a'
and'b'
.In the notebook I view it again and it produces the correct output, no need to click anything:
However running the
.unique()
function on the series:Returns all values including
['a', 'b', 'c']
, when it should forget about the value'c'
due to subsetting.See gist and screenshot below
Expected behavior
data.unique()
should return only['a', 'b']
.Screenshots
Debugging information
Additional context
This actually can cause some very nasty and silent errors in the analyses that depend on this
.unique()
operator, as only the import oflux
is needed to redefine behaviour.The text was updated successfully, but these errors were encountered: