Comece agoraComece grátis

Dropping duplicate values

Duplicate rows in a dataset can skew analysis results. You want to identify and remove duplicates.

The spotify_df DataFrame is available for you.

Este exercicio faz parte do curso

Introduction to Polars

Ver curso

Instruções do exercicio

  • Create a new DataFrame, unique_df, with duplicate rows (defined by having the same title and artist) removed.

exercicio interativo prático

Tente este exercicio completando este código de exemplo.

# Keep only unique songs (based on title and artist)
unique_df = spotify_df.____

print(unique_df)
Editar e Executar Código