1 00:00:00,000 --> 00:00:03,479 Now if you have worked with observations, such as 2 00:00:03,480 --> 00:00:05,999 weather observations, for example, temperatures, 3 00:00:06,659 --> 00:00:08,759 you might have noticed that you have these kinds 4 00:00:08,760 --> 00:00:11,879 of values sometimes in those data, which means 5 00:00:11,909 --> 00:00:15,389 there was no value, no valid value detected for 6 00:00:15,390 --> 00:00:18,749 that observation. And organizations use that 7 00:00:18,750 --> 00:00:22,919 spatial value to mean no data. So if we wanted to 8 00:00:22,949 --> 00:00:26,219 use a list comprehension, where we divide by 10, 9 00:00:26,249 --> 00:00:29,249 all these values, we want to be careful not to 10 00:00:29,250 --> 00:00:32,609 divide this value by 10, we want to ignore that. 11 00:00:32,759 --> 00:00:35,879 For that we need an if conditional inside the list 12 00:00:35,880 --> 00:00:39,899 comprehension, we can do it like that. So create a 13 00:00:39,900 --> 00:00:42,899 new variable where you will store the new list. 14 00:00:43,019 --> 00:00:47,789 And again, let's say temp divided by 10 for 10 in 15 00:00:47,790 --> 00:00:54,359 temps if temp is different, for example, then 16 00:00:54,599 --> 00:01:01,019 -9999, print(new_temps), execute on the 17 00:01:01,020 --> 00:01:06,209 terminal, and we get the expected result. So this 18 00:01:06,210 --> 00:01:08,609 is just like the simple loop that we saw in the 19 00:01:08,669 --> 00:01:11,489 previous video with the addition of the if 20 00:01:11,490 --> 00:01:15,029 conditional, so that is a conditional. We are 21 00:01:15,030 --> 00:01:18,239 checking if temp is different than -9999. 22 00:01:18,240 --> 00:01:22,500 [Outro sound]