How to deal with NaN values when plotting a boxplot
You can remove the NaNs from the data first, then plot the filtered data. To do that, you can first find the NaNs using np.isnan(data), then perform the bitwise inversion of that Boolean array using the ~: bitwise inversion operator. Use that to index the data array, and you filter out the NaNs. filtered_data = … Read more