Skip to content

Instantly share code, notes, and snippets.

@aagnone3
Created October 30, 2020 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aagnone3/1405d01cd04d2881e29c59c1078e33d2 to your computer and use it in GitHub Desktop.
Save aagnone3/1405d01cd04d2881e29c59c1078e33d2 to your computer and use it in GitHub Desktop.
sf_crime_11.py
cont, cat = cont_cat_split(train, max_card=5, dep_var="TargetedCategory")
cat.remove("Dates")
print(f"{len(cont)} Continuous columns: {cont}")
print(f"{len(cat)} categorical columns: {cat}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment