File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -345,25 +345,27 @@ which pandas excels.
345
345
346
346
## IO
347
347
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 )
349
349
350
350
NTV-pandas provides a JSON converter with more data types than the ones supported by pandas directly.
351
351
352
352
It supports the following data types:
353
+
353
354
- pandas data types
354
355
- data types defined in the [ NTV format] ( https://loco-philippe.github.io/ES/JSON%20semantic%20format%20(JSON-NTV).htm )
355
356
- data types defined in [ Table Schema specification] ( http://dataprotocols.org/json-table-schema/#field-types-and-formats )
356
357
357
358
The interface is always reversible (conversion round trip) with two formats (JSON-NTV and JSON-TableSchema).
358
359
359
- * example*
360
+ Example:
361
+
360
362
``` python
361
363
import ntv_pandas as npd
362
364
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`
365
367
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
367
369
```
368
370
369
371
### [ BCPandas] ( https://github.com/yehoshuadimarsky/bcpandas )
You can’t perform that action at this time.
0 commit comments