def savedata(fullpathfilename, data):
    """
    Save data to a file: csv from a pandas dataframe
    :param fullpathfilename: Full path to the file
    :param data: pandas dataframe to save
    :return: True if successful, False if not
    """
    try:
        data.to_csv(fullpathfilename,
                    header=True
                    )
        return True
    except Exception as e:
        print('Exception occurred: {} '.format(e))
        return False