-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
json_normalize throws TypeError
with list record_path
#21605
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
Labels
Enhancement
IO JSON
read_json, to_json, json_normalize
Needs Discussion
Requires discussion from core team before further action
Comments
vuminhle
added a commit
to vuminhle/pandas
that referenced
this issue
Jun 23, 2018
Pull request here #21607 |
4 tasks
cc @jreback Uncertain that we want to support this. Thoughts? |
@gfyoung: Note that I created a minimal test case to trigger the bug.
|
this is not legitimate input to |
Why isn't it legitimate?
|
Merged
4 tasks
duplicate of #22804 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Enhancement
IO JSON
read_json, to_json, json_normalize
Needs Discussion
Requires discussion from core team before further action
Uh oh!
There was an error while loading. Please reload this page.
Code Sample, a copy-pastable example if possible
Note: change from
json_normalize({'A': {'B': [1, 2]}}, ['A', 'B'])
to distinguish from #21608Problem description
The above code throws a
TypeError
:Expected Output
Output of
pd.show_versions()
pandas: 0.23.1
pytest: 3.6.1
pip: 10.0.1
setuptools: 28.8.0
Cython: None
numpy: 1.14.2
scipy: None
pyarrow: None
xarray: None
IPython: 6.3.1
sphinx: None
patsy: None
dateutil: 2.7.2
pytz: 2018.4
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: