Skip to content

Commit c425b24

Browse files
committed
Remove is_period_dtype check
1 parent 8140ee1 commit c425b24

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pandas/core/reshape/merge.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
is_datetime64tz_dtype, is_datetimelike, is_dtype_equal,
2121
is_extension_array_dtype, is_float_dtype, is_int64_dtype, is_integer,
2222
is_integer_dtype, is_list_like, is_number, is_numeric_dtype,
23-
is_period_dtype, needs_i8_conversion)
23+
needs_i8_conversion)
2424
from pandas.core.dtypes.missing import isnull, na_value_for_dtype
2525

2626
from pandas import Categorical, DataFrame, Index, MultiIndex, Series, Timedelta
@@ -1608,12 +1608,6 @@ def _factorize_keys(lk, rk, sort=True):
16081608

16091609
lk = ensure_int64(lk.codes)
16101610
rk = ensure_int64(rk)
1611-
elif (is_period_dtype(lk) and
1612-
is_period_dtype(rk) and
1613-
lk.dtype == rk.dtype):
1614-
klass = libhashtable.Factorizer
1615-
lk = ensure_object(lk)
1616-
rk = ensure_object(rk)
16171611
elif (is_extension_array_dtype(lk) and
16181612
is_extension_array_dtype(rk) and
16191613
lk.dtype == rk.dtype):

0 commit comments

Comments
 (0)