Python Forum
How to get past NaN value
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get past NaN value
#1
Hi there,

I am trying to do a simple test for a NaN value in python3 pandas, but I can't get anything to work. This is what I want to do, x is a float of value anything up to 1396253.0
if x == nan:
    continue
else
    rest of program...
I can't find any sytax for it, this itself gives a syntax error, I have seen also isnan() and can't get that working either. Is there a simple solution to this, as it has been cropping up a lot. A null value would have been much easier to deal with.
Reply


Messages In This Thread
How to get past NaN value - by iFunKtion - Dec-13-2016, 04:24 PM
RE: How to get past NaN value - by micseydel - Dec-13-2016, 04:38 PM
RE: How to get past NaN value - by iFunKtion - Dec-13-2016, 04:53 PM
RE: How to get past NaN value - by micseydel - Dec-13-2016, 05:06 PM
RE: How to get past NaN value - by iFunKtion - Dec-13-2016, 05:23 PM
RE: How to get past NaN value - by iFunKtion - Dec-14-2016, 07:46 AM
RE: How to get past NaN value - by micseydel - Dec-14-2016, 06:49 PM
RE: How to get past NaN value - by iFunKtion - Jan-26-2017, 09:00 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020