Skip to content

Commit 066ec11

Browse files
committed
BUG: Fix #61222: Keep index name when resampling with pyarrow dtype
1 parent 04356be commit 066ec11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/resample.py

+1
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ def _wrap_result(self, result):
518518

519519
if self._timegrouper._arrow_dtype is not None:
520520
result.index = result.index.astype(self._timegrouper._arrow_dtype)
521+
result.index.name = getattr(obj.index, "name", None)
521522

522523
return result
523524

0 commit comments

Comments
 (0)