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

Method read_csv

camel/loaders/panda_reader.py:123–136  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

121
122 @check_suffix([".csv"])
123 def read_csv(
124 self, file_path: str, *args: Any, **kwargs: Dict[str, Any]
125 ) -> "DataFrame":
126 r"""Reads a CSV file and returns a DataFrame.
127
128 Args:
129 file_path (str): The path to the CSV file.
130 *args (Any): Additional positional arguments.
131 **kwargs (Dict[str, Any]): Additional keyword arguments.
132
133 Returns:
134 DataFrame: The DataFrame object.
135 """
136 return pd.read_csv(file_path, *args, **kwargs)
137
138 @check_suffix([".xlsx", ".xls"])
139 def read_excel(

Callers 1

_load_csv_dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected