数据不能根据索引来取,会是空数据
df = pd.read_csv("./data/train1.csv") #df = pd.read_csv("./data/sample_submission.csv") label = df['TARGET'] # print(df) df = df.drop(['ID', 'TARGET'], axis=1) #print(label) ##(1) missiong np缺失值 missSet = [np.nan, 9999999999, -999999] #Count disticnt len(df.iloc[:, 0].unique()) print(df[:, 0])