Skip to content

Instantly share code, notes, and snippets.

View danjo89's full-sized avatar

Daniel danjo89

  • Germany
View GitHub Profile
@danjo89
danjo89 / txt
Created November 10, 2016 10:24
Error Trace: Relevant Feature Selection
My Example
x = pd.DataFrame([[1,1,1,1,2,2,2,2,3,3,3,3],[5,6,5,5,4,5,4,3,1,1,2,3]]).T
x.columns=['ID', 'VALUES']
y = pd.DataFrame([7,8,9], index=[1,2,3])
relevant_features = ts.extract_relevant_features(x, y, column_id='ID')
/.conda/envs/geopandas_python3/lib/python3.5/site-packages/pandas/computation/expressions.py:181: UserWarning: evaluating in Python space because the '*' operator is not supported by numexpr for the bool dtype, use '&' instead