Created
May 21, 2020 17:35
-
-
Save cereniyim/84671bc7cccd29ca92eb1d581d662328 to your computer and use it in GitHub Desktop.
function to convert target dataframe to array
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
def convert_target_to_array(target): | |
# function to convert target df | |
# to an array | |
target_array = (np | |
.array(target) | |
.reshape((-1, ))) | |
return target_array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment