Challenge: Clean and Transform Device Data
Uppgift
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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 3
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 4.76
Challenge: Clean and Transform Device Data
Svep för att visa menyn
Uppgift
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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 3
single