Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed May 11, 2024
1 parent 51cc1dd commit a80cee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/ml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ see which were likely to become ill
# pandas code
# predictions = model.predict(df)
# df["predictions"] = predictions
predictions.to_parquet("/path/to/results.parquet")
# Dask code
predictions = df.map_partitions(model.predict)
df["predictions"] = predictions
predictions.to_parquet("/path/to/results.parquet")

0 comments on commit a80cee3

Please sign in to comment.