Difference between data type ‘datetime64[ns]’ and ‘

datetime64[ns] is a general dtype, while <M8[ns] is a specific dtype. General dtypes map to specific dtypes, but may be different from one installation of NumPy to the next. On a machine whose byte order is little endian, there is no difference between np.dtype(‘datetime64[ns]’) and np.dtype(‘<M8[ns]’): In [6]: np.dtype(‘datetime64[ns]’) == np.dtype(‘<M8[ns]’) Out[6]: True However, on … Read more