class_docstr: Accessor to ``sklearn.cluster``.
docstr: Call ``sklearn.cluster.k_means`` using automatic mapping.
  
  - ``X``: ``ModelFrame.data``
docstr_tok: ["Call","``","sklearn.cluster.k_means","``","using","automatic","mapping",".","-","``","X","``",":","``","ModelFrame.data","``"]
code: def k_means(self, n_clusters, *args, **kwargs):
      """
      Call ``sklearn.cluster.k_means`` using automatic mapping.
  
      - ``X``: ``ModelFrame.data``
      """
      func = self._module.k_means
      data = self._data
      centroid, label, inertia = func(
          data.values, n_clusters, *args, **kwargs
      )
      label = self._constructor_sliced(label, index=data.index)
      return centroid, label, inertia
  
file_path: pandas-ml/pandas_ml/skaccessors/cluster.py
imports: from pandas_ml.compat import cache_readonly
  from pandas_ml.core.accessor import _AccessorMethods, _attach_methods, _wrap_data_func
label_desc: Use image node_id 1 for calling the ClusterMethods obj's underlying member method code with example usage: obj.k_means(n_clusters) and returns: centroid,  label,  inertia