-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
add ntv-pandas
to the ecosystem
#55421
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
Merged
Merged
Changes from 33 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
049b7b0
Create 0007-compact-and-reversible-JSON-interface.md
loco-philippe 6dc92e4
Merge branch 'main' into ntv
loco-philippe cd6884d
Merge branch 'main' into ntv
loco-philippe 09ed538
change PDEP number (7 -> 12)
loco-philippe 13e6fd2
Merge branch 'main' into ntv
loco-philippe f4d1f5e
Add FAQ to the PDEPS 0012
loco-philippe fff7adb
Merge branch 'main' into ntv
loco-philippe 92732e6
Merge remote-tracking branch 'upstream/main' into ntv
loco-philippe 8d0f2f4
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe 3f3aae0
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe 82b1992
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe a051d9c
pre-commit codespell
loco-philippe a0f16dd
Merge remote-tracking branch 'upstream/main' into ntv
loco-philippe 63d92ec
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe aca4a47
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe d0b41a6
delete summary
loco-philippe 3f7135a
delete mermaid flowchart
loco-philippe 16d7201
with summary, without mermaid flowchart
loco-philippe 08cf17b
rename Annexe -> Appendix
loco-philippe 7da5c63
Merge remote-tracking branch 'upstream/main' into ntv
loco-philippe ec31662
add tableschema specification
loco-philippe 4dbb822
add orient="table"
loco-philippe 38e92b2
Add Table Schema extension
loco-philippe 1e3f793
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe 8dad555
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe 2239c66
Merge remote-tracking branch 'upstream/main' into ntv
loco-philippe 7e7d878
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe fbc5fe5
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe cceee0b
Merge remote-tracking branch 'upstream/main' into ntv
loco-philippe 65bee1d
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe c567277
Update 0012-compact-and-reversible-JSON-interface.md
loco-philippe 698835c
Merge remote-tracking branch 'upstream/main' into ntv
loco-philippe 1bbe9bf
add 'ntv-pandas' in the 'ecosystem' file
loco-philippe 3d234de
Update ecosystem.md
loco-philippe cf1a82d
Update ecosystem.md
loco-philippe f555a75
Merge remote-tracking branch 'upstream/main' into ntv
loco-philippe fcbfa72
Update ecosystem.md
loco-philippe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 for the contributiin. Can you phrase this not talking about pandas or its limitations, but about NTV-pandas directly? Something like "NTV-pandas provides a JSON converter with more data types than the ones supoorted by pandas directly. Its main features are: ...". You don't need to use my description of course, but I think it's more useful for users to go direct to what the project does than starting by pandas limitations. If users can have an intuition on whether the project can be for them in a more concise way, then they can quickly jump to the project site for the details.
What I'd add here is a very concise example, so users can faster understand not only what the project does, but what it takes to use it.
Happy to discuss further if you disagree on my points, but I think this approach will make readers life easier.
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.
Thank you for your quick reply and your advise !
You are right and I suggest changing the text as below,:
NTV-pandas provides a JSON converter with more data types than the ones supported by pandas directly.
*It supports the following data-types: *
dtype
,The interface is always reversible (conversion round trip) with two formats (JSON-NTV and JSON-TableSchema).
NTV-pandas was developed originally in the json-NTV project
Is it better and sufficiently clear and concise ?
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.
Yes, this looks great. Just couple of styling comments, I wouldn't use bold for the line between * if that's the idea. And I would use "data types" consistently in the bullet points instead of dtype and data-type. I'd also remove the commas at the end of the bullet points (or be consistent).
The last line on where it was developed doesn't seem relevant to me for the average pandas user potentially interested in this, I'd leave this to the project page itself.
And as I said, if you can show a minimal example on how the library is used, I think that can help users understand better before clicking in the link if this project may be of interest.
Anyways, great job, I think it's useful this way.
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.
-> I took the comments into account and added the example. That's what happens (not too long ?):
NTV-pandas provides a JSON converter with more data types than the ones supported by pandas directly.
It supports the following data types:
The interface is always reversible (conversion round trip) with two formats (JSON-NTV and JSON-TableSchema).
data example
JSON representation
Reversibility
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.
The first part of the example can be reduced (without [3]):
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.
I think the example is indeed way too big. What do you think about just something like:
In any case, can you update the PR with whatever you think it's best, it's easier to review in the PR than in a comment.
Btw, if you are the author of the library, do you know that you can register an accessor so on
import ntv_pandas
you get something likedf.npd.to_json()
available? You can check the docs on extending pandas for more info, it's trivial to implement.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.
the PR is updated !
You are right with the accessor, i try this:
and it works !!!