where in Nan defined

Ian Kelly ian.g.kelly at gmail.com
Thu Jan 8 15:24:12 CET 2015

On Thu, Jan 8, 2015 at 7: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 not defined anywhere. To get nan as a literal just do:

    nan = float("nan")

More information about the Python-list mailing list