Datasets:
Download docs/demo_app.py from pushkar87dg/pypi-api-drift: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/datasets/pushkar87dg/pypi-api-drift/resolve/main/docs/demo_app.py
- Command line
-
hf download hf://datasets/pushkar87dg/pypi-api-drift/docs/demo_app.py
-
curl -L -o demo_app.py https://huggingface.co/datasets/pushkar87dg/pypi-api-drift/resolve/main/docs/demo_app.py
277 Bytes
| import pandas as pd | |
| from flask import escape | |
| from urllib3.util.retry import Retry | |
| orders = pd.read_csv("orders.csv", error_bad_lines=False) | |
| df = pd.DataFrame({"id": [1, 2]}) | |
| df = df.append({"id": 3}, ignore_index=True) | |
| retry = Retry(total=3, method_whitelist=["GET"]) | |