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

ImportError from pandas module #1409

Closed
andersnev opened this issue Sep 27, 2024 · 3 comments · Fixed by #1410
Closed

ImportError from pandas module #1409

andersnev opened this issue Sep 27, 2024 · 3 comments · Fixed by #1410

Comments

@andersnev
Copy link

Brief Description

Missing import from pandas.core.dtypes.missing

System Information

  • Operating system: Linux
  • Python version: 3.8.10
  • pandas version: 2.0.3

Minimally Reproducible Code

import janitor

Error Messages

  File "pyjanitor-test.py", line 1, in <module>
    import janitor
  File "/workdir/.venv/lib/python3.8/site-packages/janitor/__init__.py", line 6, in <module>
    from .functions import *  # noqa: F403, F401
  File "/workdir/.venv/lib/python3.8/site-packages/janitor/functions/__init__.py", line 29, in <module>
    from .conditional_join import conditional_join, get_join_indices
  File "/workdir/.venv/lib/python3.8/site-packages/janitor/functions/conditional_join.py", line 17, in <module>
    from pandas.core.dtypes.missing import (
ImportError: cannot import name 'construct_1d_array_from_inferred_fill_value' from 'pandas.core.dtypes.missing' (/workdir/.venv/lib/python3.8/site-packages/pandas/core/dtypes/missing.py)
@samukweku
Copy link
Collaborator

samukweku commented Sep 28, 2024

Hi @andersnev. what version of pyjanitor are you on? Can you also try and upgrade your pandas version?

@samukweku
Copy link
Collaborator

@andersnev there's a new pyjanitor version (0.29.2) that resolves this issue. Let me know if it doesnt. cheers.

@andersnev
Copy link
Author

Works like a charm! Thanks for the quick fix

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

Successfully merging a pull request may close this issue.

2 participants