data/process_data.py
def load_data(messages_filepath, categories_filepath):
    """The load_data function load the csv file into pandas dataframe

    Args:
        messages_filepath (filepath): the filepath for the messages
        categories_filepath (filepath): the filepath for the categories data



    Returns:
        DataFrame: The DataFrame for analysis

    """

    # load the messages csv
    mess = pd.read_csv(messages_filepath)

    # load the categories csv
    catt = pd.read_csv(categories_filepath)

    # merge the datasets
    data = mess.merge(catt, on="id")

    return data
The load_data function load the csv file into pandas dataframe

    Args:
        messages_filepath (filepath): the filepath for the messages
        categories_filepath (filepath): the filepath for the categories data



    Returns:
        DataFrame: The DataFrame for analysis

    
The load_data function load the csv file into pandas dataframe
The load_data function load the csv file into pandas dataframe
def load_data(messages_filepath, categories_filepath):
    mess = pd.read_csv(messages_filepath)
    catt = pd.read_csv(categories_filepath)
    data = mess.merge(catt, on="id")
    return data
def load_data ( messages_filepath , categories_filepath ) : mess = pd . read_csv ( messages_filepath ) catt = pd . read_csv ( categories_filepath ) data = mess . merge ( catt , on = "id" ) return data
The load_data function load the csv file into pandas dataframe
The load_data function load the csv file into pandas dataframe
"""The load_data function load the csv file into pandas dataframe

    Args:
        messages_filepath (filepath): the filepath for the messages
        categories_filepath (filepath): the filepath for the categories data



    Returns:
        DataFrame: The DataFrame for analysis

    """ # load the messages csv # load the categories csv # merge the datasets
The DataFrame for analysis
The DataFrame for analysis
DataFrame
messages_filepath
the filepath for the messages
the filepath for the messages
categories_filepath
the filepath for the categories data
the filepath for the categories data