Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wcs.skl.compose.get_feature_names() failes if ColumnTransformer has 1D column vector(s) #5

Open
snowdd1 opened this issue Jan 13, 2021 · 0 comments

Comments

@snowdd1
Copy link
Collaborator

snowdd1 commented Jan 13, 2021

If columns from a pd.DataFrame are listed as String and not as List of Strings, get_feature_names fails with

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-104-fd28a853c8d9> in <module>()
----> 1 get_feature_names(p[0].transformers[0][1])

/usr/local/lib/python3.6/dist-packages/wcs/skl/compose.py in get_feature_names(sklearn_object, input_features)
    107     else:
    108         # pass on
--> 109         return sklearn_object.get_feature_names(input_features)
    110 
    111 

TypeError: get_feature_names() takes 1 positional argument but 2 were given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant