data/process_data.py
def save_data(df, database_filename):
    ''' This function will load the prepared data into a SQLite database file. 
    
    If the input is invalid or the data does not exist, this function will raise an error.
    
    INPUT:
    df --> a Pandas DataFrame containing the prepared data
    DisasterResponse.db --> database to store data for model ingestion 
    
    '''
    engine = create_engine('sqlite:///DisasterResponse.db')
    df.to_sql('categorised_messages', engine, index=False, if_exists='replace')
 This function will load the prepared data into a SQLite database file. 
    
    If the input is invalid or the data does not exist, this function will raise an error.
    
    INPUT:
    df --> a Pandas DataFrame containing the prepared data
    DisasterResponse.db --> database to store data for model ingestion 
    
    
This function will load the prepared data into a SQLite database file.
If the input is invalid or the data does not exist, this function will raise an error.

-> a Pandas DataFrame containing the prepared data
DisasterResponse.db --> database to store data for model ingestion
This function will load the prepared data into a SQLite database file . If the input is invalid or the data does not exist this function will raise an error . - > a Pandas DataFrame containing the prepared data DisasterResponse . db -- > database to store data for model ingestion
def save_data(df, database_filename):
    engine = create_engine('sqlite:///DisasterResponse.db')
    df.to_sql('categorised_messages', engine, index=False, if_exists='replace')
def save_data ( df , database_filename ) : engine = create_engine ( 'sqlite:///DisasterResponse.db' ) df . to_sql ( 'categorised_messages' , engine , index = False , if_exists = 'replace' )
This function will load the prepared data into a SQLite database file.
This function will load the prepared data into a SQLite database file .
''' This function will load the prepared data into a SQLite database file. 
    
    If the input is invalid or the data does not exist, this function will raise an error.
    
    INPUT:
    df --> a Pandas DataFrame containing the prepared data
    DisasterResponse.db --> database to store data for model ingestion 
    
    '''
df
database_filename