Challenge: Clean and Transform Device Data
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 3
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 4.76
Challenge: Clean and Transform Device Data
Stryg for at vise menuen
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 3
single