Xử lý Dữ liệu Khuyết trong Python
Suraj Donthi
Deep Learning & Computer Vision Consultant
Bạn có biết 72% tổ chức tin rằng chất lượng dữ liệu kém làm giảm niềm tin và cảm nhận của khách hàng?
None
None or True # Same for False
True
None + True # For all operators
TypeError: unsupported operand
None / 3 # For all operators
TypeError: unsupported operand
type(None)
NoneType
np.nan
import numpy as np
np.nan or True # Same for False
nan
np.nan * True # For all operators
nan
np.nan - 3 # For all operators
nan
type(np.nan)
float
None
None == None
True
np.isnan(None)
False
np.nan
np.nan == np.nan
False
np.isnan(np.nan)
True
Xử lý Dữ liệu Khuyết trong Python