|
From: Benjamin R. <ben...@ou...> - 2012-01-27 16:17:18
|
On Fri, Jan 27, 2012 at 10:11 AM, Fabien Lafont <laf...@gm...>wrote: > Yes in fact it plot it well, but then I have a vector like: > [3702.1399999999999, nan, nan, nan, 3703.79, nan, nan, nan, > 3704.6900000000001, 3704.8400000000001] > and it's impossible to fit it. It return 'nan'. > > Ive tried: > > for i in range(0,NbPts): > if column1[i] == nan: > column1[i].remove(nan) > column2[i].remove(nan) > > to remove these points but it doesn't work > > You can't do equality tests with NaNs (us np.isnan(), instead). This question is more suited for the Numpy list. Ben Root |