Skip to content

Commit 0f981ec

Browse files
committed
ut fixes
1 parent c26adc3 commit 0f981ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

python/hsfs/engine/python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,7 @@ def split_labels(
12001200
def drop_columns(
12011201
self, df: pd.DataFrame | pl.DataFrame, drop_cols: list[str]
12021202
) -> pd.DataFrame | pl.DataFrame:
1203+
drop_cols = [drop_cols] if isinstance(drop_cols, str) else drop_cols
12031204
drop_cols = [col for col in drop_cols if col in df.columns]
12041205
if HAS_POLARS and (
12051206
isinstance(df, (pl.DataFrame, pl.dataframe.frame.DataFrame))

0 commit comments

Comments
 (0)