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
11 changes: 2 additions & 9 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
is_categorical,
is_categorical_dtype,
is_datetime64_any_dtype,
is_datetime64tz_dtype,
is_dtype_equal,
is_extension_array_dtype,
is_float,
Expand Down Expand Up @@ -2525,14 +2524,8 @@ def _union(self, other, sort):
return other._get_reconciled_name_object(self)

# TODO(EA): setops-refactor, clean all this up
if is_datetime64tz_dtype(self):
lvals = self._ndarray_values
else:
lvals = self._values
if is_datetime64tz_dtype(other):
rvals = other._ndarray_values
else:
rvals = other._values
lvals = self._values
rvals = other._values

if sort is None and self.is_monotonic and other.is_monotonic:
try:
Expand Down