skfolio.utils.tools.get_feature_names#
- skfolio.utils.tools.get_feature_names(X)[source]#
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,
Noneis returned.All other array containers will return
None.
- Returns:
- names: ndarray or None
Feature names of
X. Unrecognized array containers will returnNone.