Bookmark this to keep an eye on our project updates!
I am a PhD student at the University of Delaware, and a very good table tennis player.
import pandas as pd import xarray as xr file_path = “students/Zhiyuan_Dong/race_results.nc” ds = xr.open_dataset(file_path) df = ds.to_dataframe().reset_index() df[“officialFinish”] = pd.to_numeric(df[“officialFinish”], errors=”coerce”) top_3_horses = df[df[“officialFinish”] <= 3].copy() top_3_horses = top_3_horses[[“raceNumber”, “horse”, “jockey”, “trainer”, “officialFinish”, “dollarOdds”]] top_3_horses = top_3_horses.sort_values(by=[“raceNumber”, “officialFinish”]) print(top_3_horses)