Skip to content

Commit ee11f1c

Browse files
committed
fix copy polars df
1 parent 4b68ac8 commit ee11f1c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: python/hsfs/engine/python.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,10 @@ def _convert_feature_log_to_df(feature_log, cols):
14481448

14491449
return pd.DataFrame(feature_log, columns=cols)
14501450
else:
1451-
return feature_log.copy(deep=False)
1451+
if isinstance(feature_log, pl.DataFrame):
1452+
return feature_log.clone()
1453+
elif isinstance(feature_log, pd.DataFrame):
1454+
return feature_log.copy(deep=False)
14521455

14531456
@staticmethod
14541457
def get_feature_logging_df(

0 commit comments

Comments
 (0)