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

Importation error #128

Closed
ierezell opened this issue Feb 25, 2020 · 2 comments
Closed

Importation error #128

ierezell opened this issue Feb 25, 2020 · 2 comments

Comments

@ierezell
Copy link

I tried to import pandas_ml but it gave the error :

AttributeError: type object 'NDFrame' has no attribute 'groupby'

I'm running python3.8.1 and I installed pandas_ml via pip (version 20.0.2)

I dig in the code, error is l.80 of file series.py

@Appender(pd.core.generic.NDFrame.groupby.__doc__)

Here pandas is imported at the top of the file with a classic import pandas as pd

I guess there is a problem with the versions...

Thanks in advance for any help

@DunaiFuentes
Copy link

Likely an issue with the version of pandas. Version 0.24.2 works for me.

@elcolie
Copy link

elcolie commented Dec 24, 2020

I put constraint to requirements.in for workaround solution

pandas==0.24.2
pandas-ml
scikit-learn==0.20.0

And pip-compile to get full requirements.txt

appnope==0.1.2            # via ipykernel, ipython
argon2-cffi==20.1.0       # via notebook
argparse==1.4.0           # via -r requirements.in
arrow==0.17.0             # via -r requirements.in
async-generator==1.10     # via nbclient
attrs==20.3.0             # via jsonschema
backcall==0.2.0           # via ipython
bleach==3.2.1             # via nbconvert
certifi==2020.12.5        # via kaggle, requests
cffi==1.14.4              # via argon2-cffi
chardet==4.0.0            # via requests
click==7.1.2              # via nltk
cycler==0.10.0            # via matplotlib
decorator==4.4.2          # via ipython
defusedxml==0.6.0         # via nbconvert
entrypoints==0.3          # via nbconvert
enum34==1.1.10            # via pandas-ml
idna==2.10                # via requests
importlib-metadata==3.3.0  # via jsonschema
ipdb==0.13.4              # via -r requirements.in
ipykernel==5.4.2          # via ipywidgets, jupyter, jupyter-console, notebook, qtconsole
ipython-genutils==0.2.0   # via nbformat, notebook, qtconsole, traitlets
ipython==7.19.0           # via -r requirements.in, ipdb, ipykernel, ipywidgets, jupyter-console
ipywidgets==7.5.1         # via jupyter
jedi==0.17.2              # via ipython
jinja2==2.11.2            # via nbconvert, notebook
joblib==1.0.0             # via nltk
jsonschema==3.2.0         # via nbformat
jupyter-client==6.1.7     # via ipykernel, jupyter-console, nbclient, notebook, qtconsole
jupyter-console==6.2.0    # via jupyter
jupyter-core==4.7.0       # via jupyter-client, nbconvert, nbformat, notebook, qtconsole
jupyter==1.0.0            # via -r requirements.in
jupyterlab-pygments==0.1.2  # via nbconvert
kaggle==1.5.10            # via -r requirements.in
kiwisolver==1.3.1         # via matplotlib
markupsafe==1.1.1         # via jinja2
marshmallow==3.10.0       # via -r requirements.in
matplotlib==3.3.3         # via -r requirements.in
mistune==0.8.4            # via nbconvert
nbclient==0.5.1           # via nbconvert
nbconvert==6.0.7          # via jupyter, notebook
nbformat==5.0.8           # via ipywidgets, nbclient, nbconvert, notebook
nest-asyncio==1.4.3       # via nbclient
nltk==3.5                 # via -r requirements.in
notebook==6.1.5           # via jupyter, widgetsnbextension
numpy==1.19.4             # via -r requirements.in, matplotlib, pandas, scikit-learn, scipy, torch, torchvision
packaging==20.8           # via bleach
pandas-ml==0.6.1          # via -r requirements.in
pandas==0.24.2            # via -r requirements.in, pandas-ml
pandocfilters==1.4.3      # via nbconvert
parso==0.7.1              # via jedi
pexpect==4.8.0            # via ipython
pickleshare==0.7.5        # via ipython
pillow==8.0.1             # via -r requirements.in, matplotlib, torchvision
prometheus-client==0.9.0  # via notebook
prompt-toolkit==3.0.8     # via ipython, jupyter-console
ptyprocess==0.6.0         # via pexpect, terminado
pycparser==2.20           # via cffi
pygments==2.7.3           # via ipython, jupyter-console, jupyterlab-pygments, nbconvert, qtconsole
pyparsing==2.4.7          # via matplotlib, packaging
pyrsistent==0.17.3        # via jsonschema
python-dateutil==2.8.1    # via arrow, jupyter-client, kaggle, matplotlib, pandas
python-slugify==4.0.1     # via kaggle
pytz==2020.4              # via pandas
pyzmq==20.0.0             # via jupyter-client, notebook, qtconsole
qtconsole==5.0.1          # via jupyter
qtpy==1.9.0               # via qtconsole
regex==2020.11.13         # via nltk
requests==2.25.1          # via kaggle
scikit-learn==0.20.0      # via -r requirements.in
scipy==1.5.4              # via scikit-learn
send2trash==1.5.0         # via notebook
six==1.15.0               # via argon2-cffi, bleach, cycler, jsonschema, kaggle, python-dateutil
terminado==0.9.1          # via notebook
testpath==0.4.4           # via nbconvert
text-unidecode==1.3       # via python-slugify
torch==1.7.1              # via -r requirements.in, torchvision
torchvision==0.8.2        # via -r requirements.in
tornado==6.1              # via ipykernel, jupyter-client, notebook, terminado
tqdm==4.54.1              # via kaggle, nltk
traitlets==5.0.5          # via ipykernel, ipython, ipywidgets, jupyter-client, jupyter-core, nbclient, nbconvert, nbformat, notebook, qtconsole
typing-extensions==3.7.4.3  # via importlib-metadata, torch
urllib3==1.26.2           # via kaggle, requests
wcwidth==0.2.5            # via prompt-toolkit
webencodings==0.5.1       # via bleach
widgetsnbextension==3.5.1  # via ipywidgets
zipp==3.4.0               # via importlib-metadata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants