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

features.py get_text_features pandas 1x support #33

Closed
sykesdev opened this issue May 15, 2020 · 2 comments
Closed

features.py get_text_features pandas 1x support #33

sykesdev opened this issue May 15, 2020 · 2 comments
Assignees
Labels

Comments

@sykesdev
Copy link

the following lines...

    min_length = int(feature.str.len().min())
    max_length = int(feature.str.len().max())

seem to fall foul of Pandas 1.x stricter rules. The following seems to work...

    min_length = int(feature.astype(str).str.len().min())
    max_length = int(feature.astype(str).str.len().max())
@mrconway
Copy link
Collaborator

mrconway commented May 15, 2020

This is a fix in the next release.

@mrconway
Copy link
Collaborator

Fixed in 2.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants