Challenge: Clean and Transform Device Data
Tâche
Swipe to start coding
You are given a pandas DataFrame representing device readings. Your goal is to automate data cleaning and transformation, simulating a device data quality check.
- Remove all rows from the DataFrame where the
readingvalue is less thanmin_valueor greater thanmax_value. - Add a new column named
reading_fahrenheitthat contains eachreadingvalue converted from Celsius to Fahrenheit using the formula:F = C * 9/5 + 32. - Return the cleaned and transformed DataFrame.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 3
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 4.76
Challenge: Clean and Transform Device Data
Glissez pour afficher le menu
Tâche
Swipe to start coding
You are given a pandas DataFrame representing device readings. Your goal is to automate data cleaning and transformation, simulating a device data quality check.
- Remove all rows from the DataFrame where the
readingvalue is less thanmin_valueor greater thanmax_value. - Add a new column named
reading_fahrenheitthat contains eachreadingvalue converted from Celsius to Fahrenheit using the formula:F = C * 9/5 + 32. - Return the cleaned and transformed DataFrame.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 3
single