Download masteries/coding/data/inspect_data.py from Kiritox07/pace: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/spaces/Kiritox07/pace/resolve/main/masteries/coding/data/inspect_data.py
- Command line
-
hf download hf://spaces/Kiritox07/pace/masteries/coding/data/inspect_data.py
-
curl -L -o inspect_data.py https://huggingface.co/spaces/Kiritox07/pace/resolve/main/masteries/coding/data/inspect_data.py
322 Bytes
| import pandas as pd | |
| df = pd.read_parquet("masteries/coding/data/raw/stack_python_157k.parquet") | |
| print("\n--- Here is Row 0: The First Code Example! ---") | |
| print("FUNCTION CODE:") | |
| print(df["content"].iloc[0]) # iloc[0] means "Index Location 0" (the first row) | |
| print("\nAUTOMATED UNIT TESTS:") | |
| print(df["tests"].iloc[0]) |