Skip to content

Instantly share code, notes, and snippets.

Created Nov 22, 2020
What would you like to do?
def cat_to_num(data):
categories = unique(data)
features = []
for cat in categories:
binary = (data == cat)
return features
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment