I have a huge database, which I need to change the value of a column according to a certain condition.
In Pandas I execute the following code to accomplish what I want:
df.loc[
(df['ID_CRITERIO_APURACAO'] == TipoDestinatario.RESIDENCIAL.value) &
(df['CODG_GRUPO_TENSAO'] == 8) &
(df['CONSUMO'].between(0, 30)),
'DESCONTO'
] = 35
How can I do something similar in Dask?