We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26adc3 commit 0f981ecCopy full SHA for 0f981ec
1 file changed
python/hsfs/engine/python.py
@@ -1200,6 +1200,7 @@ def split_labels(
1200
def drop_columns(
1201
self, df: pd.DataFrame | pl.DataFrame, drop_cols: list[str]
1202
) -> pd.DataFrame | pl.DataFrame:
1203
+ drop_cols = [drop_cols] if isinstance(drop_cols, str) else drop_cols
1204
drop_cols = [col for col in drop_cols if col in df.columns]
1205
if HAS_POLARS and (
1206
isinstance(df, (pl.DataFrame, pl.dataframe.frame.DataFrame))
0 commit comments