The misuse of the word is all mine. But the problem persists. RDatasets in Win10 produce NaN-values for unvailable values (NAs) as compared to Unices. So the funcs dropna() and complete_cases() 'do not work' as needed? no filtering done. As I understand Complete_cases() uses a bitarray. But is there a shortcut?
суббота, 14 мая 2016 г., 16:26:01 UTC+10 пользователь Tamas Papp написал: > > On Sat, May 14 2016, Андрей Логунов wrote: > > > To add, fiddling with array comprehensions as per the problem with NaNs > > found a buggy thing. > > The following code does not work: > > > > [x for x in filter(!isnan, convert(Array,dataframe[:fld]))] > > This is not a bug. ! does not operate on functions, only on concrete > values (Bitarray, Bool, etc). > > Also, even if you find a bug, "does not work" is unlikely to get you any > help without an error message and preferably a self-contained example. > > Best, > > Tamas >