Esta función debe informar el consumo total para la entidad 'World' y año '2019', redondeado a 2 decimales, retornando ese valor en un dato de tipo float.
def total_consumption(df, entity, year): total_consumption = round((df.loc[(df['Entity'] == entity) & (df['Year'] == year)]['Energy Supply']).sum(), 2) return total_consumption