Skip to content

Instantly share code, notes, and snippets.

@VibhuJawa

VibhuJawa/new_category.md Secret

Created Jul 27, 2020
Embed
What would you like to do?
import cudf
s = cudf.Series(['dog', 'fish', 'cat'])
s.astype('category').cat.codes
0    1
1    2
2    0
dtype: uint8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment