class_docstr: BinnedFeatureGenerator bins incoming int and float features to num_bins unique int values, maintaining relative rank order.
class_docstr_tok: ["BinnedFeatureGenerator","bins","incoming","int","and","float","features","to","num_bins","unique","int","values",",","maintaining","relative","rank","order","."]
code: def _transform_bin(self, X: DataFrame):
      X_out = dict()
      for column in self._bin_map:
          X_out[column] = binning.bin_column(
              series=X[column],
              bins=self._bin_map[column],
              dtype=self._astype_map[column],
          )
      X_out = pd.DataFrame(X_out, index=X.index)
      return X_out
  
file_path: autogluon/features/src/autogluon/features/generators/binned.py
imports: import copy
  import logging
  import pandas
  from pandas import DataFrame
  from autogluon.common.features.types import R_FLOAT, R_INT, S_BINNED
  from ..None import binning
  from ..utils import get_smallest_valid_dtype_int
  from .abstract import AbstractFeatureGenerator
label_desc: Use image node_id 6 for calling the BinnedFeatureGenerator obj's underlying member method code with example usage: obj._transform_bin(X) and returns: X_out