Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

Commit

Permalink
Fix bug that removes all information of rows with remove in a column
Browse files Browse the repository at this point in the history
  • Loading branch information
Steef committed Sep 23, 2016
1 parent 2a24ecf commit 1dcb053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skbold/utils/crossval_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def __init__(self, file_path, train_size, test_size=0, categorical={}, continuou

if len(categorical)>0:
for cat in categorical.keys():
data.loc[data[cat] == ignore] = np.nan # ignore values, such as 9999
data.loc[data[cat] == ignore, cat] = np.nan # ignore values, such as 9999

if len(continuous)>0:
for cont in continuous:
data.loc[data[cont] == ignore] = np.nan # ignore values, such as 9999
data.loc[data[cont] == ignore, cont] = np.nan # ignore values, such as 9999

self.data = data
self.train_size = train_size
Expand Down

0 comments on commit 1dcb053

Please sign in to comment.