Skip to content Skip to sidebar Skip to footer

"typeerror: Data Type Not Understood" Comparing Dtype Np.datetime64

as per this response, I'm comparing a subtype datetime64[ns, US/Central] to np.datetime64: columns = self._obj.columns for dtype in self._obj.dtypes: pr

Solution 1:

not ideal, but I fixed this with string comparison:

if (str(dtype).startswith("datetime64")):
   ...


Post a Comment for ""typeerror: Data Type Not Understood" Comparing Dtype Np.datetime64"