(self, other)
return series_operator_mod_wrapper
Pandas Series operator :attr:`pandas.Series.mod` implementation

    Note: Currently implemented for numeric Series only.
        Differs from Pandas in returning Series with fixed dtype :obj:`float64`

    .. only:: developer

    **Test**: python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_op1*
              python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_op2*
              python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_operator_mod*

    Parameters
    ----------
    series: :obj:`pandas.Series`
        Input series
    other: :obj:`pandas.Series` or :obj:`scalar`
        Series or scalar value to be used as a second argument of binary operation

    Returns
    -------
    :obj:`pandas.Series`
        The result of the operation
Pandas Series operator :attr:`pandas.Series.mod` implementation
Pandas Series operator : attr : pandas . Series . mod implementation
def sdc_pandas_series_operator_mod(self, other):
    """
    Pandas Series operator :attr:`pandas.Series.mod` implementation

    Note: Currently implemented for numeric Series only.
        Differs from Pandas in returning Series with fixed dtype :obj:`float64`

    .. only:: developer

    **Test**: python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_op1*
              python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_op2*
              python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_operator_mod*

    Parameters
    ----------
    series: :obj:`pandas.Series`
        Input series
    other: :obj:`pandas.Series` or :obj:`scalar`
        Series or scalar value to be used as a second argument of binary operation

    Returns
    -------
    :obj:`pandas.Series`
        The result of the operation
    """

    _func_name = 'Method comp_mod().'
    ty_checker = TypeChecker(_func_name)
    self_is_series, other_is_series = isinstance(self, SeriesType), isinstance(other, SeriesType)
    if not (self_is_series or other_is_series):
        return None

    # this overload is not for string series
    self_is_string_series = self_is_series and isinstance(self.dtype, types.UnicodeType)
    other_is_string_series = other_is_series and isinstance(other.dtype, types.UnicodeType)
    if self_is_string_series or other_is_string_series:
        return None

    if not isinstance(self, (SeriesType, types.Number)):
        ty_checker.raise_exc(self, 'pandas.series or scalar', 'self')

    if not isinstance(other, (SeriesType, types.Number)):
        ty_checker.raise_exc(other, 'pandas.series or scalar', 'other')

    operands_are_series = self_is_series and other_is_series
    if operands_are_series:
        series_indexes_comparable = check_types_comparable(self.index, other.index)
        if not series_indexes_comparable:
            raise TypingError('{} Not implemented for series with not-comparable indexes. \
            Given: self.index={}, other.index={}'.format(_func_name, self.index, other.index))

    series_data_comparable = check_types_comparable(self, other)
    if not series_data_comparable:
        raise TypingError('{} Not supported for not-comparable operands. \
        Given: self={}, other={}'.format(_func_name, self, other))

    def series_operator_mod_wrapper(self, other):
        return sdc_mod(self, other)

    return series_operator_mod_wrapper
def sdc_pandas_series_operator_mod ( self , other ) : _func_name = 'Method comp_mod().' ty_checker = TypeChecker ( _func_name ) self_is_series , other_is_series = isinstance ( self , SeriesType ) , isinstance ( other , SeriesType ) if not ( self_is_series or other_is_series ) : return None # this overload is not for string series self_is_string_series = self_is_series and isinstance ( self . dtype , types . UnicodeType ) other_is_string_series = other_is_series and isinstance ( other . dtype , types . UnicodeType ) if self_is_string_series or other_is_string_series : return None if not isinstance ( self , ( SeriesType , types . Number ) ) : ty_checker . raise_exc ( self , 'pandas.series or scalar' , 'self' ) if not isinstance ( other , ( SeriesType , types . Number ) ) : ty_checker . raise_exc ( other , 'pandas.series or scalar' , 'other' ) operands_are_series = self_is_series and other_is_series if operands_are_series : series_indexes_comparable = check_types_comparable ( self . index , other . index ) if not series_indexes_comparable : raise TypingError ( '{} Not implemented for series with not-comparable indexes. \
            Given: self.index={}, other.index={}' . format ( _func_name , self . index , other . index ) ) series_data_comparable = check_types_comparable ( self , other ) if not series_data_comparable : raise TypingError ( '{} Not supported for not-comparable operands. \
        Given: self={}, other={}' . format ( _func_name , self , other ) ) def series_operator_mod_wrapper ( self , other ) : return sdc_mod ( self , other ) return series_operator_mod_wrapper