We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 236f7e6 commit 2be31faCopy full SHA for 2be31fa
pandas/_libs/missing.pyx
@@ -347,6 +347,7 @@ class NAType(C_NAType):
347
"""
348
349
_instance = None
350
+ _typ = "<NA>"
351
352
def __new__(cls, *args, **kwargs):
353
if NAType._instance is None:
pandas/_libs/tslibs/util.pxd
@@ -215,6 +215,8 @@ cdef inline bint is_nan(object val):
215
if is_float_object(val):
216
fval = val
217
return fval != fval
218
+ if getattr(val, '_typ', None) == "<NA>": # TODO : Write in seperate function
219
+ return True
220
return is_complex_object(val) and val != val
221
222
0 commit comments