Skip to content

Commit 42282ce

Browse files
WEB: Fix rendering of ntv-pandas ecosystem page (#55430)
* 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)
1 parent fa96a52 commit 42282ce

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

web/pandas/community/ecosystem.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -345,25 +345,27 @@ which pandas excels.
345345

346346
## IO
347347

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

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

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

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

359-
*example*
360+
Example:
361+
360362
```python
361363
import ntv_pandas as npd
362364

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

366-
df.equals(npd.read_json(df.npd.to_json(df))) # True in any case, whether table=True or not
368+
df.equals(npd.read_json(df.npd.to_json(df))) # `True` in any case, whether `table=True` or not
367369
```
368370

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

0 commit comments

Comments
 (0)