Skip to content

DOC: Imporve json_normalize record_prefix and mate_prefix #54232

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

Closed
wants to merge 7 commits into from

Conversation

luke396
Copy link
Contributor

@luke396 luke396 commented Jul 23, 2023

@wjandrea
Copy link
Contributor

That's not how it works. For example:

data = {"A": [1, 2]}
pd.json_normalize(data, "A", record_prefix=True)
   True0
0      1
1      2

See also the example lower in the docs.

@luke396
Copy link
Contributor Author

luke396 commented Jul 24, 2023

That's not how it works. For example:

data = {"A": [1, 2]}
pd.json_normalize(data, "A", record_prefix=True)
   True0
0      1
1      2

See also the example lower in the docs.

You are right. I ignored this and just changed the type.

@luke396 luke396 marked this pull request as draft July 25, 2023 14:32
@luke396
Copy link
Contributor Author

luke396 commented Jul 25, 2023

@wjandrea How about this time?

@luke396 luke396 marked this pull request as ready for review July 27, 2023 00:42
@mroeschke
Copy link
Member

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

@mroeschke mroeschke closed this Aug 25, 2023
@luke396 luke396 deleted the luke396/issue54121 branch August 29, 2023 04:49
@luke396 luke396 restored the luke396/issue54121 branch August 29, 2023 04:56
@luke396
Copy link
Contributor Author

luke396 commented Aug 29, 2023

@mroeschke Sorry for later reply.

I have merged the branch with main, should we reopen the pr, or I need to open a new one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: description of record_prefix param for json_normalize is wrong
3 participants