DataFrame icon indicating copy to clipboard operation
DataFrame copied to clipboard

select: on a categorical DataSeries should return a categorical DataSeries

Open egvillalobos opened this issue 5 years ago • 0 comments

a := DataSeries withValues: #(1 2 2 3 5).
a makeCategorical.
a isCategorical. "true"

b := a select: [ :each | each = 2].
b isCategorical. "false"

When performing select: or reject: on a categorical DataSeries one should receive a categorical DataSeries (same with a numerical DataSeries)

egvillalobos avatar Feb 13 '20 14:02 egvillalobos