BUG: numpy.datetime('NaT') printing inconsistency #11220
Labels
good first issue
Needs Tests
Unit test(s) needed to prevent regressions
Output-Formatting
__repr__ of pandas objects, to_string
Milestone
Whether
np.datetime64('NaT')
is printed asNaT
orNaN
depends on other types present in the column. This is consistent withpd.NaT
, whose display also depends on other types. But when all the other scalars areNone
,pd.NaT
andNone
are both printed asNaT
, whereas in a column ofnp.datetime64('NaT')
andNone
, it depends on the order of the entries (last two lines).The text was updated successfully, but these errors were encountered: