cookbook/14_tools/pandas_tool.py
Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
enable_create_pandas_dataframe | bool | True | Enables functionality to create pandas DataFrames. |
enable_run_dataframe_operation | bool | True | Enables functionality to run DataFrame operations. |
all | bool | False | Enables all functionality when set to True. |
Toolkit Functions
| Function | Description |
|---|---|
create_pandas_dataframe | Creates a Pandas DataFrame named dataframe_name by using the specified function create_using_function with parameters function_parameters. Parameters include ‘dataframe_name’ for the name of the DataFrame, ‘create_using_function’ for the function to create it (e.g., ‘read_csv’), and ‘function_parameters’ for the arguments required by the function. Returns the name of the created DataFrame if successful, otherwise returns an error message. |
run_dataframe_operation | Runs a specified operation operation on a DataFrame dataframe_name with the parameters operation_parameters. Parameters include ‘dataframe_name’ for the DataFrame to operate on, ‘operation’ for the operation to perform (e.g., ‘head’, ‘tail’), and ‘operation_parameters’ for the arguments required by the operation. Returns the result of the operation if successful, otherwise returns an error message. |
Developer Resources
- View Tools