def find_row_by_galaxy_name(table, galaxy_name, fieldname='rootname69_u'):
    """
    Searches for galaxy name in table

    Args:
        table: list of dictionaries
        fieldname="rootname69_u": field to be considered the galaxy name
        galaxy_name: string

    Returns:
        table row (dictionary), or None if not found
    """
    ret = None
    for row in table:
        if row[fieldname] == galaxy_name:
            ret = row
            break
    return ret
