Skip to content

Commit be57478

Browse files
committed
fix: remove bad path construction in to_csv_file
1 parent 2488581 commit be57478

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sagemaker/feature_store/dataset_builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,9 @@ def to_csv_file(self) -> Tuple[str, str]:
427427
if isinstance(self._base, pd.DataFrame):
428428
temp_id = utils.unique_name_from_base("dataframe-base")
429429
local_file_name = f"{temp_id}.csv"
430-
desired_s3_folder = f"{self._output_path}/{temp_id}"
430+
desired_s3_folder = os.path.join(self._output_path, temp_id)
431431
self._base.to_csv(local_file_name, index=False, header=False)
432+
print("Uploading temporary csv to:")
432433
s3.S3Uploader.upload(
433434
local_path=local_file_name,
434435
desired_s3_uri=desired_s3_folder,

0 commit comments

Comments
 (0)