class_docstr: Fit a polynomial of the given order and resample data onto predicted curve.
class_docstr_tok: ["Fit","a","polynomial","of","the","given","order","and","resample","data","onto","predicted","curve","."]
code: def __call__(self, data, groupby, orient, scales):
      return groupby.apply(
          data.dropna(subset=["x", "y"]), self._fit_predict
      )
  
file_path: seaborn/seaborn/_stats/regression.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  import numpy
  import pandas
  from seaborn._stats.base import Stat
label_desc: Use image node_id 2 for calling the PolyFit obj's underlying member method code with example usage: obj.__call__(data, groupby, orient, scales) and returns: groupby