Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pandas/core/arrays/arrow/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,9 @@ def convert_fill_value(value, pa_type, dtype):
return value
if isinstance(value, (pa.Scalar, pa.Array, pa.ChunkedArray)):
return value
if isinstance(value, Timedelta) and value.unit in ("s", "ms"):
# Workaround https://github.com/apache/arrow/issues/37291
value = value.to_numpy()
if is_array_like(value):
pa_box = pa.array
else:
Expand Down