def clean_data(df):
    """
    Function to remove the duplicates and fill NA values if any.
    :param df: The data frame to clean
    :return: Cleaned data frame
    """
    df.drop_duplicates(inplace=True)
    df.fillna(value=0, inplace=True)
    return df