Load Datasets Into Dataframe
load_datasets_into_dataframeLoad .csv, .xls, .xlsx, .json, or .parquet datasets into a pandas DataFrame from uploaded file bytes, URLs, or file paths to prepare data for analysis.
Instructions
Load a dataset into a pandas DataFrame from uploaded file bytes or from a URL / file path. Supported extensions: .csv, .xls, .xlsx, .json, .parquet. To load a file that is on the machine running the server, prefer load_csv / load_excel / load_json / load_parquet. Args: file (bytes, optional): Raw file content. Needs file_name so the format is known. file_name (str, optional): Name of the file (its extension selects the reader). dataset_url (str, optional): URL (or path) to read from. If the URL has no extension, pass file_name. Returns: dict: dataset_id, rows, columns and column_names of the new dataset.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "load_datasets_into_dataframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| file_name | No | ||
| dataset_url | No |