data/process_data.py
def save_data(df, database_filename):
    """
    Save dataframe in a sql database

    Parameters:
    df (pandas dataframe): the dataframe to be stored
    database_filename (str): sqlite database file name
    
    Returns:
    None
    """
    engine = sqlalchemy.create_engine(f'sqlite:///{database_filename}')
    df.to_sql("DisasterResponse", engine, index=False, if_exists='replace')

    Save dataframe in a sql database

    Parameters:
    df (pandas dataframe): the dataframe to be stored
    database_filename (str): sqlite database file name
    
    Returns:
    None
    
Save dataframe in a sql database
Parameters:
df (pandas dataframe): the dataframe to be stored
database_filename (str): sqlite database file name

None
Save dataframe in a sql database Parameters : df ( pandas dataframe ) : the dataframe to be stored database_filename ( str ) : sqlite database file name None
def save_data(df, database_filename):
    engine = sqlalchemy.create_engine(f'sqlite:///{database_filename}')
    df.to_sql("DisasterResponse", engine, index=False, if_exists='replace')
def save_data ( df , database_filename ) : engine = sqlalchemy . create_engine ( f'sqlite:///{database_filename}' ) df . to_sql ( "DisasterResponse" , engine , index = False , if_exists = 'replace' )
Save dataframe in a sql database
Parameters:
df (pandas dataframe): the dataframe to be stored
database_filename (str): sqlite database file name
Save dataframe in a sql database Parameters : df ( pandas dataframe ) : the dataframe to be stored database_filename ( str ) : sqlite database file name
"""
    Save dataframe in a sql database

    Parameters:
    df (pandas dataframe): the dataframe to be stored
    database_filename (str): sqlite database file name
    
    Returns:
    None
    """
df
database_filename