danfo.readJSON
Reads a JSON file into DataFrame.
danfo.readJSON(source, options)
Parameters | Type | Description | Default |
source | Input file object, string file** **path or URL | Any valid string path is acceptable. The string could be a URL. Valid URL schemes include http, https, ftp, s3, gs, or a local path. Both relative and absolute paths are supported An input file object is also supported in the browser. | |
options | Object | Configuration options for reading JSON files. Supported options: {
} | { method: "GET" } |
The readJSON method can read JSON files from a local disk, over the internet, or directly from input file objects.
Reading JSON files from local disk
Reading JSON files from a URL
By specifying a valid URL, you can load JSON files from any location:
Reading an input file object in the browser
By specifying a valid file object, you can load a JSON file in the browser:
Last updated