Skip to content

Commit 328338c

Browse files
committed
exclude datetimetz for bn
1 parent 66d1843 commit 328338c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/nanops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ def f(values, axis=None, skipna=True, **kwds):
144144

145145
def _bn_ok_dtype(dt, name):
146146
# Bottleneck chokes on datetime64
147-
if (not is_object_dtype(dt) and not is_datetime_or_timedelta_dtype(dt)):
147+
if (not is_object_dtype(dt) and
148+
not (is_datetime_or_timedelta_dtype(dt) or
149+
is_datetime64tz_dtype(dt))):
148150

149151
# GH 15507
150152
# bottleneck does not properly upcast during the sum

0 commit comments

Comments
 (0)