Skip to content

Commit

Permalink
WEB: Fix rendering of ntv-pandas ecosystem page (#55430)
Browse files Browse the repository at this point in the history
* Create 0007-compact-and-reversible-JSON-interface.md

* change PDEP number (7 -> 12)

* Add FAQ to the PDEPS 0012

* Update 0012-compact-and-reversible-JSON-interface.md

* Update 0012-compact-and-reversible-JSON-interface.md

* Update 0012-compact-and-reversible-JSON-interface.md

* pre-commit codespell

* Update 0012-compact-and-reversible-JSON-interface.md

* Update 0012-compact-and-reversible-JSON-interface.md

* delete summary

* delete mermaid flowchart

* with summary, without mermaid flowchart

* rename Annexe -> Appendix

* add tableschema specification

* add orient="table"

* Add Table Schema extension

* Update 0012-compact-and-reversible-JSON-interface.md

* Update 0012-compact-and-reversible-JSON-interface.md

* Update 0012-compact-and-reversible-JSON-interface.md

* Update 0012-compact-and-reversible-JSON-interface.md

* Update 0012-compact-and-reversible-JSON-interface.md

* Update 0012-compact-and-reversible-JSON-interface.md

* add 'ntv-pandas' in the 'ecosystem' file

* Update ecosystem.md

* Update ecosystem.md

* Update ecosystem.md

* Update ecosystem.md

* Update ecosystem.md (NTV-pandas)
  • Loading branch information
loco-philippe authored Oct 9, 2023
1 parent fa96a52 commit 42282ce
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions web/pandas/community/ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,25 +345,27 @@ which pandas excels.

## IO

### [NTV-pandas](https://github.com/loco-philippe/ntv-pandas)*: A semantic, compact and reversible JSON-pandas converter*
### [NTV-pandas](https://github.com/loco-philippe/ntv-pandas)

NTV-pandas provides a JSON converter with more data types than the ones supported by pandas directly.

It supports the following data types:

- pandas data types
- data types defined in the [NTV format](https://loco-philippe.github.io/ES/JSON%20semantic%20format%20(JSON-NTV).htm)
- data types defined in [Table Schema specification](http://dataprotocols.org/json-table-schema/#field-types-and-formats)

The interface is always reversible (conversion round trip) with two formats (JSON-NTV and JSON-TableSchema).

*example*
Example:

```python
import ntv_pandas as npd

jsn = df.npd.to_json(table=False) # save df as a JSON-value (format Table Schema if table is True else format NTV )
df = npd.read_json(jsn) # load a JSON-value as a DataFrame
jsn = df.npd.to_json(table=False) # save df as a JSON-value (format Table Schema if table is True else format NTV )
df = npd.read_json(jsn) # load a JSON-value as a `DataFrame`

df.equals(npd.read_json(df.npd.to_json(df))) # True in any case, whether table=True or not
df.equals(npd.read_json(df.npd.to_json(df))) # `True` in any case, whether `table=True` or not
```

### [BCPandas](https://github.com/yehoshuadimarsky/bcpandas)
Expand Down

0 comments on commit 42282ce

Please sign in to comment.