Skip to content

Commit 5a1b4df

Browse files
authored
reseting index of dataframes after transformation (logicalclocks#252)
1 parent c3f50f1 commit 5a1b4df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/hsfs/engine/python.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1236,15 +1236,15 @@ def _apply_transformation_function(
12361236
dropped_features.update(tf.hopsworks_udf.dropped_features)
12371237
dataset = pd.concat(
12381238
[
1239-
dataset,
1239+
dataset.reset_index(drop=True),
12401240
tf.hopsworks_udf.get_udf()(
12411241
*(
12421242
[
12431243
dataset[feature]
12441244
for feature in tf.hopsworks_udf.transformation_features
12451245
]
12461246
)
1247-
),
1247+
).reset_index(drop=True),
12481248
],
12491249
axis=1,
12501250
)

0 commit comments

Comments
 (0)