This commit is contained in:
Steve Nyemba 2021-04-01 14:13:00 -05:00
parent 1178cb7343
commit 6bbe767714
1 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ class Components :
real_df = pd.DataFrame()
if x_cols :
args['data'] = args['data'][list(set(args['data'].columns) - set(x_cols))]
real_df = df['data'][x_cols].copy()
real_df = df[x_cols].copy()
args['candidates'] = 1 if 'candidates' not in args else int(args['candidates'])
if 'gpu' in args :
@ -279,7 +279,7 @@ class Components :
if x_cols :
for _col in x_cols :
if real_df[_col].unique().size > 0 :
_df[_col] = self.approximate(df[_col].fillna(-1))
_df[_col] = self.approximate(real_df[_col].fillna(-1))
else:
_df[_col] = -1