def METHOD_NAME(self, data, orient):
    dv = {"x": "y", "y": "x"}[orient]
    data = data.sort_values(orient, kind="mergesort")
    verts = np.concatenate([
        data[[orient, f"{dv}min"]].to_numpy(),
        data[[orient, f"{dv}max"]].to_numpy()[::-1],
    ])
    if orient == "y":
        verts = verts[:, ::-1]
    return verts