ScottfreeLLC / AlphaPy

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

fix nan feature #47

Closed eromoe closed 1 year ago

eromoe commented 1 year ago

if X.iloc[:,i] values are all nan, features would be array([], shape=(1637, 0), dtype=float64)

In this case, np.column_stack((all_features, features)) doesn't add new feature and doesn't throw error , unitl the last assert