Skip to content

Commit

Permalink
add python data (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelizimm authored Sep 17, 2023
1 parent 1263181 commit e8d32a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions class-work/docker-python.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ docker run -p 8080:8080 inspections
## Make predictions

```{python}
import pandas as pd
data = pd.DataFrame(
{
"facility_type": ["RESTAURANT", "RESTAURANT", "GROCERY STORE"],
"risk": ["RISK 2 (MEDIUM)", "RISK 1 (HIGH)", "RISK 2 (MEDIUM)"],
"total_violations": [50.0, 24.0, 0.0],
"month": [7, 2, 1],
"year": [2018, 2018, 2018]
}
)
endpoint = vetiver.vetiver_endpoint(url = ___)
vetiver.predict(endpoint = ___, data = ___)
```

0 comments on commit e8d32a5

Please sign in to comment.