data/process_data.py
def save_data(df, database_filename):
    """

    Save cleaned and merged dataframe in a SQL database

    :param df: Pandas Dataframe. Data to save in a SQL database
    :param database_filename: String. String containing the name of the database
    :return: None
    """
    engine = create_engine('sqlite:///' + str(database_filename))
    df.to_sql('message', engine, index=False, if_exists='replace')


    Save cleaned and merged dataframe in a SQL database

    :param df: Pandas Dataframe. Data to save in a SQL database
    :param database_filename: String. String containing the name of the database
    :return: None
    
Save cleaned and merged dataframe in a SQL database
Save cleaned and merged dataframe in a SQL database
def save_data(df, database_filename):
    engine = create_engine('sqlite:///' + str(database_filename))
    df.to_sql('message', engine, index=False, if_exists='replace')
def save_data ( df , database_filename ) : engine = create_engine ( 'sqlite:///' + str ( database_filename ) ) df . to_sql ( 'message' , engine , index = False , if_exists = 'replace' )
Save cleaned and merged dataframe in a SQL database
Save cleaned and merged dataframe in a SQL database
"""

    Save cleaned and merged dataframe in a SQL database

    :param df: Pandas Dataframe. Data to save in a SQL database
    :param database_filename: String. String containing the name of the database
    :return: None
    """
None
df
Pandas Dataframe. Data to save in a SQL database
Pandas Dataframe . Data to save in a SQL database
database_filename
String. String containing the name of the database
String . String containing the name of the database