(left, right)
return index_dtypes_match, numba_index_common_dtype
Used to find common dtype for indexes of two series and verify if index dtypes are equal
Used to find common dtype for indexes of two series and verify if index dtypes are equal
Used to find common dtype for indexes of two series and verify if index dtypes are equal
def find_index_common_dtype(left, right):
    """Used to find common dtype for indexes of two series and verify if index dtypes are equal"""

    left_index_dtype = left.dtype
    right_index_dtype = right.dtype
    index_dtypes_match = left_index_dtype == right_index_dtype
    if not index_dtypes_match:
        numba_index_common_dtype = find_common_dtype_from_numpy_dtypes(
            [left_index_dtype, right_index_dtype], [])
    else:
        numba_index_common_dtype = left_index_dtype

    return index_dtypes_match, numba_index_common_dtype
def find_index_common_dtype ( left , right ) : left_index_dtype = left . dtype right_index_dtype = right . dtype index_dtypes_match = left_index_dtype == right_index_dtype if not index_dtypes_match : numba_index_common_dtype = find_common_dtype_from_numpy_dtypes ( [ left_index_dtype , right_index_dtype ] , [ ] ) else : numba_index_common_dtype = left_index_dtype return index_dtypes_match , numba_index_common_dtype