Skip to content

Instantly share code, notes, and snippets.

@cereniyim
Created May 21, 2020 17:35
Show Gist options
  • Save cereniyim/84671bc7cccd29ca92eb1d581d662328 to your computer and use it in GitHub Desktop.
Save cereniyim/84671bc7cccd29ca92eb1d581d662328 to your computer and use it in GitHub Desktop.
function to convert target dataframe to array
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