<a id="skfolio-utils-tools-get-feature-names"></a>

# skfolio.utils.tools.get_feature_names

<a id="skfolio.utils.tools.get_feature_names"></a>

### skfolio.utils.tools.get_feature_names(X)

Get feature names from X.

Support for other array containers should place its implementation here.

* **Parameters:**
  **X** *{ndarray, dataframe} of shape (n_samples, n_features)*
  : Array container to extract feature names.
    - pandas dataframe : The columns will be considered to be feature
      names. If the dataframe contains non-string feature names, `None` is
      returned.
    - All other array containers will return `None`.
* **Returns:**
  names: ndarray or None
  : Feature names of `X`. Unrecognized array containers will return `None`.

