2019-07-08 01:24:49 UNSELECTED

Unknown type code

Copy Copied! Full
import pandas as pd import numpy as np df = pd.DataFrame({ 'A' : 1., 'B' : [1,None,3], # np.nanでも同じ 'C' : [1,2,3] }) print(df) np_b = np.array(df["B"]) print(np_b) print(np_b[1] == np.nan) print(np_b[1] == None) print(np_b[1] == "nan")
RECOMMEND