(self, width, fillchar=' ')
return hpat_pandas_stringmethods_ljust_impl
Intel Scalable Dataframe Compiler User Guide
    ********************************************
    Pandas API: pandas.Series.str.ljust

    Limitations
    -----------
    - This function may reveal slower performance than Pandas* on user system. Users should exercise a tradeoff
    between staying in JIT-region with that function or going back to interpreter mode.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/str/series_str_ljust.py
       :language: python
       :lines: 27-
       :caption: Filling right side of strings in the Series with an additional character
       :name: ex_series_str_ljust

    .. command-output:: python ./series/str/series_str_ljust.py
       :cwd: ../../../examples

    .. seealso::
        :ref:`Series.str.rjust <pandas.Series.str.rjust>`
            Fills the left side of strings with an arbitrary character.
        :ref:`Series.str.center <pandas.Series.str.center>`
            Fills boths sides of strings with an arbitrary character.

    .. todo:: Add support of 32-bit Unicode for `str.ljust()`

    Intel Scalable Dataframe Compiler Developer Guide
    *************************************************

    Pandas Series method :meth:`pandas.core.strings.StringMethods.ljust()` implementation.

    .. only:: developer

    Test: python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_ljust
Intel Scalable Dataframe Compiler User Guide
    ********************************************
    Pandas API: pandas.Series.str.ljust
Intel Scalable Dataframe Compiler User Guide ******************************************** Pandas API : pandas . Series . str . ljust
def hpat_pandas_stringmethods_ljust(self, width, fillchar=' '):
    """
    Intel Scalable Dataframe Compiler User Guide
    ********************************************
    Pandas API: pandas.Series.str.ljust

    Limitations
    -----------
    - This function may reveal slower performance than Pandas* on user system. Users should exercise a tradeoff
    between staying in JIT-region with that function or going back to interpreter mode.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/str/series_str_ljust.py
       :language: python
       :lines: 27-
       :caption: Filling right side of strings in the Series with an additional character
       :name: ex_series_str_ljust

    .. command-output:: python ./series/str/series_str_ljust.py
       :cwd: ../../../examples

    .. seealso::
        :ref:`Series.str.rjust <pandas.Series.str.rjust>`
            Fills the left side of strings with an arbitrary character.
        :ref:`Series.str.center <pandas.Series.str.center>`
            Fills boths sides of strings with an arbitrary character.

    .. todo:: Add support of 32-bit Unicode for `str.ljust()`

    Intel Scalable Dataframe Compiler Developer Guide
    *************************************************

    Pandas Series method :meth:`pandas.core.strings.StringMethods.ljust()` implementation.

    .. only:: developer

    Test: python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_ljust
    """

    ty_checker = TypeChecker('Method ljust().')
    ty_checker.check(self, StringMethodsType)

    if not isinstance(width, Integer):
        ty_checker.raise_exc(width, 'int', 'width')

    accepted_types = (Omitted, StringLiteral, UnicodeType)
    if not isinstance(fillchar, accepted_types) and fillchar != ' ':
        ty_checker.raise_exc(fillchar, 'str', 'fillchar')

    def hpat_pandas_stringmethods_ljust_impl(self, width, fillchar=' '):
        mask = get_nan_mask(self._data._data)
        item_count = len(self._data)
        res_list = [''] * item_count
        for idx in numba.prange(item_count):
            res_list[idx] = self._data._data[idx].ljust(width, fillchar)
        str_arr = create_str_arr_from_list(res_list)
        result = str_arr_set_na_by_mask(str_arr, mask)

        return pandas.Series(result, self._data._index, name=self._data._name)

    return hpat_pandas_stringmethods_ljust_impl
def hpat_pandas_stringmethods_ljust ( self , width , fillchar = ' ' ) : ty_checker = TypeChecker ( 'Method ljust().' ) ty_checker . check ( self , StringMethodsType ) if not isinstance ( width , Integer ) : ty_checker . raise_exc ( width , 'int' , 'width' ) accepted_types = ( Omitted , StringLiteral , UnicodeType ) if not isinstance ( fillchar , accepted_types ) and fillchar != ' ' : ty_checker . raise_exc ( fillchar , 'str' , 'fillchar' ) def hpat_pandas_stringmethods_ljust_impl ( self , width , fillchar = ' ' ) : mask = get_nan_mask ( self . _data . _data ) item_count = len ( self . _data ) res_list = [ '' ] * item_count for idx in numba . prange ( item_count ) : res_list [ idx ] = self . _data . _data [ idx ] . ljust ( width , fillchar ) str_arr = create_str_arr_from_list ( res_list ) result = str_arr_set_na_by_mask ( str_arr , mask ) return pandas . Series ( result , self . _data . _index , name = self . _data . _name ) return hpat_pandas_stringmethods_ljust_impl