MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / read_json

Method read_json

camel/loaders/panda_reader.py:155–168  ·  view source on GitHub ↗

r"""Reads a JSON file and returns a DataFrame. Args: file_path (str): The path to the JSON file. *args (Any): Additional positional arguments. **kwargs (Dict[str, Any]): Additional keyword arguments. Returns: DataFrame: The DataFrame

(
        self, file_path: str, *args: Any, **kwargs: Dict[str, Any]
    )

Source from the content-addressed store, hash-verified

153
154 @check_suffix([".json"])
155 def read_json(
156 self, file_path: str, *args: Any, **kwargs: Dict[str, Any]
157 ) -> "DataFrame":
158 r"""Reads a JSON file and returns a DataFrame.
159
160 Args:
161 file_path (str): The path to the JSON file.
162 *args (Any): Additional positional arguments.
163 **kwargs (Dict[str, Any]): Additional keyword arguments.
164
165 Returns:
166 DataFrame: The DataFrame object.
167 """
168 return pd.read_json(file_path, *args, **kwargs)
169
170 @check_suffix([".parquet"])
171 def read_parquet(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected