-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: pandas.json_normalize
missing from API Reference portion of documentation
#42540
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
Comments
Edit: This comment is incorrect, within
Thanks for the report! The method referenced is |
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 The missing API entry is surely a mistake then? |
It's exposed as https://github.com/pandas-dev/pandas/blob/master/pandas/__init__.py#L170 |
Here's a commit removing it from the docs, claiming it's deprecated. I can't find any explanation of what that is supposed to mean. |
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 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! |
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
(previouslypandas.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 onpandas.pydata.org
.Suggested fix for documentation
At least one older version of
pandas
does have documentation that includes ajson_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 visitpandas.io.json.json_normalize
in the current version of the documentation redirects to the new name (pandas.json_normalize
), which responds with a 404.The text was updated successfully, but these errors were encountered: