Challenge: Dropping Null Values
If a dataset contains rows with null values, consider removing them. In pandas, you can do this using the dropna() method.
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 17
single
Challenge: Dropping Null Values
Desliza para mostrar el menú
If a dataset contains rows with null values, consider removing them. In pandas, you can do this using the dropna() method.
Tarea
Desliza para comenzar a programar
You are given a DataFrame named wine_data.
- Get the length of this
DataFramebefore removing null values and assign the result to thelength_beforevariable. - Remove rows with null values and store the resulting
DataFrameinwine_data. - Get the length of
wine_dataafter removing null values and assign the result to thelength_aftervariable.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 17
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla