Download data.py from gradio/plot_guide_selection_main: direct link, hf CLI and curl.
- Browser
- Download file 292 Bytes
-
https://huggingface.co/spaces/gradio/plot_guide_selection_main/resolve/cb55d351ae64b4ff25ff3d1f386b5352d439b13e/data.py
- Command line
-
hf download hf://spaces/gradio/plot_guide_selection_main@cb55d351ae64b4ff25ff3d1f386b5352d439b13e/data.py
-
curl -L -o data.py https://huggingface.co/spaces/gradio/plot_guide_selection_main/resolve/cb55d351ae64b4ff25ff3d1f386b5352d439b13e/data.py
292 Bytes
| import pandas as pd | |
| import numpy as np | |
| import random | |
| df = pd.DataFrame({ | |
| 'height': np.random.randint(50, 70, 25), | |
| 'weight': np.random.randint(120, 320, 25), | |
| 'age': np.random.randint(18, 65, 25), | |
| 'ethnicity': [random.choice(["white", "black", "asian"]) for _ in range(25)] | |
| }) | |