How can I plot a pie chart without including the NaNs that are present in the column of interest?
Use =filter(A2:B, not(iserror(B2:B))) to omit rows that show NaNs. Then insert a chart that uses the filtered results as its data range.
=filter(A2:B, not(iserror(B2:B)))