You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting exclude_columns as a list of strings in the constructor of ColumnsBasedPipelineStage the member variable self._exclude_columns is set to a tuple instead of the passed in list. This leads to errors with __get_cols_by_arg which ends up returning the tuple and not the list itself.
The line which seems incorrect is linked above. _interpret_columns_param returns a tuple, so we should be assigning the individual components of the tuple, in that line, as opposed to assigning the entire return value to 'self._exclude_columns'; something like
It shouldn't be discarded, by the way. The second element is an str representation of the columns to be discarded. It will be used to construct the pipeline description string.
When setting
exclude_columns
as a list of strings in the constructor ofColumnsBasedPipelineStage
the member variableself._exclude_columns
is set to a tuple instead of the passed in list. This leads to errors with__get_cols_by_arg
which ends up returning the tuple and not the list itself.Code where the issue appears to be
pdpipe/pdpipe/core.py
Line 602 in 763320d
The line which seems incorrect is linked above.
_interpret_columns_param
returns a tuple, so we should be assigning the individual components of the tuple, in that line, as opposed to assigning the entire return value to 'self._exclude_columns'; something likeself._exclude_columns, _ = self._interpret_columns_param(...
The text was updated successfully, but these errors were encountered: