Skip to content

Instantly share code, notes, and snippets.

@thigm85
Last active July 15, 2022 14:37
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 thigm85/43a536e0793a4f0c7ae020964258fa59 to your computer and use it in GitHub Desktop.
Save thigm85/43a536e0793a4f0c7ae020964258fa59 to your computer and use it in GitHub Desktop.
# Create random training set
features = pd.DataFrame({
"query(value)": np.random.random(100),
"attribute(numeric)": np.random.random(100),
"attribute(categorical)": pd.Series(
np.random.choice(["a", "b", "c"], size=100),
dtype="category"
)
})
features.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment