This commit is contained in:
Steve Nyemba 2021-04-01 13:56:23 -05:00
parent e56254000e
commit cd7841be92
1 changed files with 4 additions and 4 deletions

View File

@ -274,16 +274,16 @@ class Components :
#
_df = _df[list(set(_df.columns) - set(skip_columns))]
if set(df.columns) & set(_df.columns) :
_columns = set(df.columns) - set(_df.columns)
df = df[_columns]
if x_cols :
for _col in x_cols :
if df[_col].unique().size > 0 :
_df[_col] = self.approximate(df[_col].fillna(-1))
else:
_df[_col] = -1
if set(df.columns) & set(_df.columns) :
_columns = set(df.columns) - set(_df.columns)
df = df[_columns]
#
# Let us merge the dataset here and and have a comprehensive dataset