-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
pandas docs json_normalize example #36194
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nzare for the PR
thanks @nzare |
I got an unexpected error trying to validate the updated docstring:
I believe changing |
hmm yes we should change to use pd if u would like to do a PR would be great |
@ylin00 I think your command is not correct, there is no function pandas.json_optimize (that's what's causing the error, not a problem with a docstring) |
good point @dsaxton |
Although if you run |
I think you are referring to previous version of pandas. Or maybe I misunderstood the term 'function', but I did find And I think
|
The link is for json_normalize. json_optimize doesn't exist: In [1]: import pandas as pd
In [2]: pd.json_optimize
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-eb7fafd03573> in <module>
----> 1 pd.json_optimize
~/pandas/pandas/__init__.py in __getattr__(name)
255 return _SparseArray
256
--> 257 raise AttributeError(f"module 'pandas' has no attribute '{name}'")
258
259
AttributeError: module 'pandas' has no attribute 'json_optimize'
In [3]: pd.__version__
Out[3]: '1.2.0.dev0+298.g19f0a9fa0' |
You are right. I was mistyping the word. I filed PR #36207 for the correct one. |
Co-authored-by: Nidhi Zare <[email protected]>
Co-authored-by: Nidhi Zare <[email protected]>
Documentation Location : https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html