orangearg.argument.miner.reader

Argument filre reader module

This module implements functions for reading input data files in different formats. So far, we only have the support to JSON file. But we forsee the need of supporting other formats, and all future functions in this scope should be in this module.

Module Contents

Functions

read_json_file(→ pandas.DataFrame)

Read a local JSON file and return its content as a pandas dataframe.

orangearg.argument.miner.reader.read_json_file(fpath: str) pandas.DataFrame[source]

Read a local JSON file and return its content as a pandas dataframe.

This function will automatically handle the case that a JSON file contains multiple JSON objects. It will also normalize semi-structured JSON strings.

Parameters:

fpath (str) – The file path

Returns:

The pandas dataframe object that contains content of the JSON file read from the given path.

Return type:

pd.DataFrame