# How to neglect Nan values

**URL:** https://forum.atmospherictoolbox.org/t/how-to-neglect-nan-values/611
**Category:** HARP
**Created:** [February 16, 2023, 12:52pm UTC](https://forum.atmospherictoolbox.org/t/how-to-neglect-nan-values/611 "2023-02-16T12:52:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![makr\_is](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/d07c76/32.png) [@makr\_is](https://forum.atmospherictoolbox.org/u/makr_is)
#### Post date: [February 16, 2023, 12:52pm UTC](https://forum.atmospherictoolbox.org/t/how-to-neglect-nan-values/611/1 "2023-02-16T12:52:06Z")

</div>

Hello,  
I used the qa\_flag\>0.5 for SO2 values and I got some missing spots in the plot.  
My question is: How can I neglect these Nan values so that the function gives me the mean value of a Box without counting the NAN values.  
Thank you in advance,  
Ismail

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [February 16, 2023, 3:47pm UTC](https://forum.atmospherictoolbox.org/t/how-to-neglect-nan-values/611/2 "2023-02-16T15:47:42Z")

</div>

It looks like you already asked this question [here](https://forum.atmospherictoolbox.org/t/how-to-deal-with-so2-from-cobra-after-qa-0-5-and-with-nan-values/609). How is this question different?

---

<div class="post-metadata">

### Author: ![makr\_is](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/d07c76/32.png) [@makr\_is](https://forum.atmospherictoolbox.org/u/makr_is)
#### Post date: [February 16, 2023, 4:19pm UTC](https://forum.atmospherictoolbox.org/t/how-to-neglect-nan-values/611/3 "2023-02-16T16:19:09Z")

</div>

Yes sorry. You answered that correctly in the last question. I just wanted to make the question detailed here.
