Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LessThanEqual and Others broken for Categoricals #2566

Open
dvreed77 opened this issue Apr 26, 2023 · 0 comments
Open

LessThanEqual and Others broken for Categoricals #2566

dvreed77 opened this issue Apr 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dvreed77
Copy link
Contributor

LessThanEqual, and many others fail if series passed in don't have same length of categories.

Code Sample, a copy-pastable example to reproduce your bug.

less_than_equal_to = LessThanEqualTo()

s1 = pd.Series(pd.Categorical(['a', 'b', 'c', 'a', 'b', 'c'], ordered=True))
s2 = pd.Series(pd.Categorical(['a', 'b'], ordered=True))

less_than_equal_to(s1, s2)

fails with:

 ValueError: Lengths must match to compare

Suggest to implement comparison operation that exists in Equal primitive

Output of featuretools.show_info()

[paste the output of featuretools.show_info() here below this line]
*** NameError: name 'featuretools' is not defined
(Pdb) import featuretools
(Pdb) featuretools.show_info()
Featuretools version: 1.25.0
Featuretools installation directory: /Users/dave.reed/code/featuretools/featuretools

SYSTEM INFO

python: 3.9.16.final.0
python-bits: 64
OS: Darwin
OS-release: 21.6.0
machine: arm64
processor: arm
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

INSTALLED VERSIONS

numpy: 1.22.1
pandas: 1.5.3
tqdm: 4.62.3
cloudpickle: 2.0.0
dask: 2023.3.0
distributed: 2023.3.0
psutil: 5.9.0
pip: 23.0.1
setuptools: 63.4.3

@dvreed77 dvreed77 added the bug Something isn't working label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant