def _fit_freq(self, y: cudf.Series): y_counts = y.value_counts() self._cats_parts.append(y_counts.to_pandas())