Spaces:
Sleeping
Sleeping
Commit ·
be9fa47
1
Parent(s): ea0ef5f
updated the smolagents
Browse files4 unmodified lines567891011127 unmodified lines20212223242526272829303129 unmodified lines6162636465666768697071724 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.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.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.Args:df (pd.DataFrame): The DataFrame to save.filename (str): The name of the output CSV file.Returns:str: The file path of the saved CSV.4 unmodified lines5678910117 unmodified lines192021222324252627282929 unmodified lines59606162636465666768694 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.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.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.Args:df (pd.DataFrame): The DataFrame to save.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