Skip to content

Instantly share code, notes, and snippets.

@thigm85
Created July 15, 2022 15:22
Show Gist options
  • Save thigm85/8314f157c1ebd19a42cec20ccb6f1671 to your computer and use it in GitHub Desktop.
Save thigm85/8314f157c1ebd19a42cec20ccb6f1671 to your computer and use it in GitHub Desktop.
feed_batch = [
{
"id": idx,
"fields": {
"id": idx,
"numeric": row["attribute(numeric)"],
"categorical": row["attribute(categorical)"]
}
} for idx, row in features.iterrows()
]
status = app.feed_batch(feed_batch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment