Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BUG: json_normalize handles non‐string keys in meta with record_path (GH#62264) #62273

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

Open
skalwaghe-56 wants to merge 2 commits into pandas-dev:main
base: main
Choose a base branch
Loading
from skalwaghe-56:fix-issue-62264

Conversation

Copy link
Contributor

@skalwaghe-56 skalwaghe-56 commented Sep 6, 2025


Coerce meta path elements to str when building meta_keys to avoid sep.join errors and standardize label types.

Add a regression test in TestJSONNormalize verifying integer meta keys with record_path yield string-labeled columns and correct repetition.

Update json_normalize docstring and added an entry to the latest whatsnew/vX.X.X.rst

Copy link
Contributor Author

@jbrockmendel @rhshadrach Request you to review this!

Copy link
Contributor Author

@jorisvandenbossche Kindly request you to check and let me know!

...(GH#62264)
Coerce meta path elements to str when constructing meta_keys to avoid TypeError during sep.join and align with nested_to_record behavior.
Add regression test in TestJSONNormalize to verify integer meta keys with record_path produce string-labeled columns and correct repetition.
Closes GH#62264.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

BUG: pd.json_normalize error when non-string keys are used in arguments
1 participant

AltStyle によって変換されたページ (->オリジナル) /