question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOC: `pandas.json_normalize` missing from API Reference portion of documentation

See original GitHub issue

Location of the documentation

https://pandas.pydata.org/docs/dev/reference/api/pandas.json_normalize.html (currently responds with a 404 Not Found)

Documentation problem

While the source code does contain API reference documentation for pandas.json_normalize (previously pandas.io.json.json_normalize) as seen in /pandas/io/json/_normalize.py, it isn’t available in the documentation for the current version of pandas hosted on pandas.pydata.org.

Suggested fix for documentation

At least one older version of pandas does have documentation that includes a json_normalize API reference under its old name (pandas.io.json.json_normalize in v0.25.0), so it seems feasible that it was removed by accident when its old name was deprecated in v1.0.0. Attempting to visit pandas.io.json.json_normalize in the current version of the documentation redirects to the new name (pandas.json_normalize), which responds with a 404.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
tilusnetcommented, Sep 10, 2021

Pandas 1.2.5 still had the API documentation available: https://pandas.pydata.org/pandas-docs/version/1.2.5/reference/api/pandas.json_normalize.html

Yet the latest version still has json_normalize documented in the User Guide section: https://pandas.pydata.org/docs/user_guide/io.html#normalization

The missing API entry is surely a mistake then?

0reactions
rhshadrachcommented, Sep 10, 2021

Thanks for following up on this @haakenlid - my comment above was incorrect (and is now edited). In 1.0.0 pandas.io.json_normalize was deprecated in favor of pandas.json_normalize

https://pandas.pydata.org/pandas-docs/version/1.0.0/whatsnew/v1.0.0.html#deprecations https://github.com/pandas-dev/pandas/pull/27615

So the commit you found was right in that it should be removed from io, but it needs to be added to the docs from pandas namespace. A PR to fix this is most welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas.json_normalize documentation appears to be missing ...
I have checked that the issue still exists on the latest versions of the docs on master here. Location of the documentation.
Read more >
pandas.json_normalize — pandas 1.5.2 documentation
Normalize semi-structured JSON data into a flat table. Unserialized JSON objects. Path in each object to list of records.
Read more >
All Pandas json_normalize() you should know for flattening ...
Pandas json_normalize () function is a quick, convenient, and powerful way for flattening JSON into a DataFrame. I hope this article will help ......
Read more >
How to json_normalize a column in pandas with empty lists ...
It works fine except for rows where the "sections" is an empty list. This ID gets completely ignored and is missing from the...
Read more >
pandas.io.json.json_normalize - GitHub Pages
pandas.io.json.json_normalize ... Built with Sphinx using a theme provided by Read the Docs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found