Skip to content

Instantly share code, notes, and snippets.

@edunuke
Last active June 4, 2019 16:58
Show Gist options
  • Select an option

  • Save edunuke/ef155b8a78a5c11dd544cc5a7c661fb4 to your computer and use it in GitHub Desktop.

Select an option

Save edunuke/ef155b8a78a5c11dd544cc5a7c661fb4 to your computer and use it in GitHub Desktop.
#target variable vector
y_class = pd.get_dummies(products_df[TARGET_NAME])
# print(y_class[0].values)
#[0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment