Created
November 16, 2020 14:39
-
-
Save ochilab/aaaff9298b6f519b15205178ee18ad9e to your computer and use it in GitHub Desktop.
データフレームのクラスをnumpyArrayに変換する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#reshapeする | |
x = df.iloc[:, i] | |
x=x.values.reshape(-1,1) | |
#または、np.arrayで変換する | |
x = np.array(df.iloc[:, i]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment