orkgnlp.common.util.io.read_df_from_json

read_df_from_json(input_path, key=None)[source]

Reads the json file of the given input_path and converts it to pandas dataframe.

Parameters:
  • input_path (str) – Path to the json file

  • key (str) – Specifies the object to be converted.

Return type:

DataFrame

Returns:

A loaded pandas dataframe object.