orkgnlp.common.util.io.read_df_from_json
- read_df_from_json(input_path, key=None)[source]
Reads the
json
file of the giveninput_path
and converts it to pandasdataframe
.- Parameters
input_path (
str
) – Path to the json filekey (
Optional
[str
]) – Specifies the object to be converted.
- Return type
DataFrame
- Returns
A loaded pandas dataframe object.