Dec-17-2017, 04:09 AM
If you don't tell python to print it's not going to show anything.
import math raw_data = [56.2, float('NaN'), 51.7, 55.3, 52.5, float('NaN'), 47.8] filtered_data = [] for value in raw_data: if not math.isnan(value): filtered_data.append(value) print(filtered_data)#missing line of code
When my code doesn't work I don't know why **think** and when my code works I don't know why **think**