Я пытаюсь скомпилировать этот код, но получаю эту ошибку:
NameError: name 'dtype' is not defined
Вот код Python:
# -*- coding: utf-8 -*-
from __future__ import division
import pandas as pd
import numpy as np
import re
import missingno as msno
from functools import partial
import seaborn as sns
sns.set(color_codes=True)
if dtype(data.OPP_CREATION_DATE)=="datetime64[ns]":
print("OPP_CREATION_DATE is of datetime type")
else:
print("warning: the type of OPP_CREATION_DATE is not datetime, please fix this")
Любая идея, пожалуйста, чтобы помочь мне решить эту проблему?Спасибо