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

Depreciated from pandas.io.json import json_normalize #24

Open
chaseelliottpatterson opened this issue Oct 20, 2023 · 6 comments
Open

Comments

@chaseelliottpatterson
Copy link
Contributor

Throws error when importing from pandas.io.json import json_normalize is depreciated and is now pandas.json_normalize

@SamadovSh
Copy link

Faced the same error

@daiyu0602
Copy link

Throws error when importing from pandas.io.json import json_normalize is depreciated and is now pandas.json_normalize

me too

@chaseelliottpatterson
Copy link
Contributor Author

I wrote a fix for it and am trying to merge it to the main one. https://github.com/chaseelliottpatterson/streamlit-awesome-table
it is a pretty quick fix

@STJS0
Copy link

STJS0 commented Nov 21, 2023

Caused me issues today too.
Please remove line 3 from init.py:
from pandas.io.json import json_normalize

https://github.com/caiodearaujo/streamlit-awesome-table/blob/aa51775dfd1de49e1a484653ee3afadf4e609dce/awesome_table/__init__.py#L3C1-L3C42

@yuki-2025
Copy link

@STJS0 Thanks and it is working!

@srinivas4u
Copy link

Still facing the same issue , ImportError: cannot import name 'json_normalize' from 'pandas.io.json'

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

6 participants