回答編集履歴
1
コード修正
test
CHANGED
@@ -28,7 +28,9 @@
|
|
28
28
|
|
29
29
|
df['G3_binary'] = pd.Series(np.where(df.G3.values < 12, 0, 1),
|
30
30
|
|
31
|
+
df.index)
|
32
|
+
|
31
|
-
|
33
|
+
df_train = df.loc[:500].reset_index(drop=True)
|
32
34
|
|
33
35
|
df_test = df.loc[500:].reset_index(drop=True)
|
34
36
|
|