How could I avoid NaN values when generating a graph with matplotlib in Python? I mean, I do not want to replace them, just do not take them into account. It is to generate bar and pie charts only with the valid values of a column. I would also like to do the same with a matrix of points (x, y)