where in Nan defined

Chris Angelico rosuav at gmail.com
Thu Jan 8 09:28:16 EST 2015


On Fri, Jan 9, 2015 at 1:15 AM, maurog <qualsivoglia at dovetipare.nz> wrote:
> I'm running some pandas examples and I canno find in what module NaN is
> defined. Does anyone know what module I have to import in order to have
> it defined?

It's simply float("nan"). If you want a name, you can give it one:

NaN = float("nan")
# or
nan = float("nan")

ChrisA



More information about the Python-list mailing list