Comece agoraComece grátis

Filling missing values

Finally, you can replace specific values directly. The finance team needs complete pricing data, but some products have missing prices marked as "N/A". Based on historical data, the average product costs around "10,99".

Este exercicio faz parte do curso

Data Transformation with Polars

Ver curso

Instruções do exercicio

  • Replace "N/A" values in the "price" column with "10,99".

exercicio interativo prático

Tente este exercicio completando este código de exemplo.

# Replace missing prices with the estimated value
reviews.with_columns(
    pl.col("____").____("____","10,99")
)
Editar e Executar Código