daft.DataFrame.read_json
daft.DataFrame.read_json#
- classmethod DataFrame.read_json(path: str) daft.dataframe.dataframe.DataFrame [source]#
Creates a DataFrame from line-delimited JSON file(s)
Example
>>> df = DataFrame.read_json("/path/to/file.json") >>> df = DataFrame.read_json("/path/to/directory") >>> df = DataFrame.read_json("/path/to/files-*.json") >>> df = DataFrame.read_json("s3://path/to/files-*.json")
- Parameters
path (str) – Path to JSON files (allows for wildcards)
- Returns
parsed DataFrame
- Return type