Spaces:
Sleeping
Sleeping
Commit ·
be9fa47
1
Parent(s): ea0ef5f
updated the smolagents
Browse files4 unmodified lines567898910117 unmodified lines19202123242522232425282627282929 unmodified lines59606164656263646569666768694 unmodified lines
@tooldef clean_data(df: pd.DataFrame) -> pd.DataFrame: """ Clean the DataFrame by stripping whitespace from column names and dropping rows that are completely empty. """Clean the DataFrame by stripping whitespace from column names and dropping rows that are completely empty.
Args: df (pd.DataFrame): The input DataFrame containing the raw data.7 unmodified lines
@tooldef extract_features(df: pd.DataFrame) -> pd.DataFrame: """ Dynamically extract features from the DataFrame. """Dynamically extract features from the DataFrame.
Args: df (pd.DataFrame): The input DataFrame containing the raw data.
Returns: pd.DataFrame: The DataFrame updated with new dynamically engineered features. """29 unmodified lines
@tooldef save_to_csv(df: pd.DataFrame, filename: str = "output.csv") -> str: """ Save the DataFrame to a CSV file. """Save the DataFrame to a CSV file.
Args: df (pd.DataFrame): The DataFrame to save. filename (str): The name of the output CSV file. filename (str): The name of the output CSV file (default "output.csv").
Returns: str: The file path of the saved CSV.Oracle/DataSmolAgent.py+6-9