Indexing a DataFrame with a boolean DataFrame

df .= ifelse.(df .< 0.5, 0.0, df)
1 Like