DataFrames
The result table lists the shots that meet Minimum Frames, longest first. Change the input to try a different cutoff. A DataFrame lets you filter, sort, group, and join a list of records. Call .to_list() when you need the rows or a column for a chart.
Work with rows and columns
| Operation | Use it to |
|---|---|
df["value"] | Get a typed column, called a Series. |
df.select(["x", "y"]) | Keep specific columns. |
df[df["value"] > 0] | Filter rows with a column comparison. |
df.assign(ratio=df["x"] / df["y"]) | Add or replace a column. |
df.sort_values("value", ascending=false) | Sort rows. |
df.head(5), df.tail(5) | Keep the first or last rows. |
df.groupby("category").agg({value="sum"}) | Get one result per group. |
df.merge(other, on="id", how="left") | Join frames on a column. |
df["value"].mean(), .sum(), .count(), .min(), .max() | Summarize a column. |
df["value"].isna(), .fillna(0) | Find or replace missing values. |
df.dropna(subset=["value"]) | Remove rows with missing values in selected columns. |
Operations return a new frame. Use literal column names and build masks from the frame you want to filter. For custom queries, use SQL.