where in Nan defined

Chris Angelico rosuav at gmail.com
Thu Jan 8 15:28:16 CET 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")


More information about the Python-list mailing list