pjson¶
In [ ]:
pjson(path: str,
ingest_local: bool = True,)
Parses a JSON file using flex tables and identifies the columns and their respective types.
Parameters¶
Name | Type | Optional | Description |
---|---|---|---|
path | str | ❌ | Absolute path of the JSON file. |
ingest_local | bool | ✓ | If set to true, the file will be ingested from the local machine. |
Returns¶
dict : dictionary containing for each column its type.
Example¶
In [1]:
from verticapy.utilities import *
# Parsing the JSON file
pjson("titanic.json")
Out[1]: