ScottfreeLLC / AlphaPy

Python AutoML for Trading Systems and Sports Betting
Apache License 2.0
1.11k stars 201 forks source link

features.py get_text_features pandas 1x support #33

Closed sykesdev closed 3 years ago

sykesdev commented 4 years ago

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 commented 4 years ago

This is a fix in the next release.

mrconway commented 3 years ago

Fixed in 2.4.3