alteryx / alteryx/featuretools
LessThanEqual and Others broken for Categoricals
- Lingua principale
- Python
- Stelle
- 7.7k
- Fork
- 915
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
```python
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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.