albahnsen / CostSensitiveClassification

CostSensitiveClassification Library in Python
BSD 3-Clause "New" or "Revised" License
206 stars 83 forks source link

Support for Pandas DataFrame #8

Closed GoingMyWay closed 6 years ago

GoingMyWay commented 6 years ago

I guess currently this library doesn't support taking Pandas DataFrame as input data because the following error will be raised

KeyError: '[58976 73597   747 ..., 32194 57641 57730] not in index'

so to use this library, one must call DataFrame's .as_matrix() to transfer DataFrame into numpy ndarray.

albahnsen commented 6 years ago

Indeed when those functions were developed most work was done in numpy. It should be an easy fix.

GoingMyWay commented 6 years ago

@albahnsen Since it is not a bug, and I just wanna report this situation. I'll close this issue. Thank you!