Skip to content

Commit f155691

Browse files
Fix bucketing types (#719)
Co-authored-by: jaidisido <[email protected]>
1 parent b82f2d7 commit f155691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/s3/_write_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _to_buckets(
8181
**func_kwargs: Any,
8282
) -> List[str]:
8383
_proxy: _WriteProxy = proxy if proxy else _WriteProxy(use_threads=False)
84-
bucket_number_series = df.apply(
84+
bucket_number_series = df.astype("O").apply(
8585
lambda row: _get_bucket_number(bucketing_info[1], [row[col_name] for col_name in bucketing_info[0]]),
8686
axis="columns",
8787
)

0 commit comments

Comments
 (0)