def getGenieMapping(syn, synId):
    """
    This function gets the GENIE mapping tables

    Args:
        synId: Synapse Id of synapse table

    Returns:
        df: Table dataframe
    """
    table_ent = syn.tableQuery('SELECT * FROM %s' % synId)
    table = table_ent.asDataFrame()
    table = table.fillna("")
    return(table)