@@ -1069,6 +1069,84 @@ def hpat_pandas_stringmethods_isspace_impl(self):
10691069 return hpat_pandas_stringmethods_isspace_impl
10701070
10711071
1072+ @overload_method (StringMethodsType , 'isalpha' )
1073+ def hpat_pandas_stringmethods_isalpha (self ):
1074+ """
1075+ Intel Scalable Dataframe Compiler User Guide
1076+ ********************************************
1077+ Pandas API: pandas.Series.str.isalpha
1078+
1079+ Limitations
1080+ -----------
1081+ Series elements are expected to be Unicode strings. Elements cannot be NaN.
1082+
1083+ Examples
1084+ --------
1085+ .. literalinclude:: ../../../examples/series/str/series_str_isalpha.py
1086+ :language: python
1087+ :lines: 27-
1088+ :caption: Check whether all characters in each string are alphabetic.
1089+ :name: ex_series_str_isalpha
1090+
1091+ .. command-output:: python ./series/str/series_str_isalpha.py
1092+ :cwd: ../../../examples
1093+
1094+ .. seealso::
1095+ :ref:`Series.str.isalpha <pandas.Series.str.isalpha>`
1096+ Check whether all characters are alphabetic.
1097+ :ref:`Series.str.isnumeric <pandas.Series.str.isnumeric>`
1098+ Check whether all characters are numeric.
1099+ :ref:`Series.str.isalnum <pandas.Series.str.isalnum>`
1100+ Check whether all characters are alphanumeric.
1101+ :ref:`Series.str.isdigit <pandas.Series.str.isdigit>`
1102+ Check whether all characters are digits.
1103+ :ref:`Series.str.isdecimal <pandas.Series.str.isdecimal>`
1104+ Check whether all characters are decimal.
1105+ :ref:`Series.str.isspace <pandas.Series.str.isspace>`
1106+ Check whether all characters are whitespace.
1107+ :ref:`Series.str.islower <pandas.Series.str.islower>`
1108+ Check whether all characters are lowercase.
1109+ :ref:`Series.str.isupper <pandas.Series.str.isupper>`
1110+ Check whether all characters are uppercase.
1111+ :ref:`Series.str.istitle <pandas.Series.str.istitle>`
1112+ Check whether all characters are titlecase.
1113+
1114+ Intel Scalable Dataframe Compiler Developer Guide
1115+ *************************************************
1116+
1117+ Pandas Series method :meth:`pandas.core.strings.StringMethods.isalpha()` implementation.
1118+
1119+ Note: Unicode type of list elements are supported only. Numpy.NaN is not supported as elements.
1120+
1121+ .. only:: developer
1122+
1123+ Test: python -m sdc.runtests sdc.tests.test_series.TestSeries.test_series_isalpha_str
1124+
1125+ Parameters
1126+ ----------
1127+ self: :class:`pandas.core.strings.StringMethods`
1128+ input arg
1129+
1130+ Returns
1131+ -------
1132+ :obj:`pandas.Series`
1133+ returns :obj:`pandas.Series` object
1134+ """
1135+
1136+ ty_checker = TypeChecker ('Method isalpha().' )
1137+ ty_checker .check (self , StringMethodsType )
1138+
1139+ def hpat_pandas_stringmethods_isalpha_impl (self ):
1140+ item_count = len (self ._data )
1141+ result = numpy .empty (item_count , numba .types .boolean )
1142+ for idx , item in enumerate (self ._data ._data ):
1143+ result [idx ] = item .isalpha ()
1144+
1145+ return pandas .Series (result , self ._data ._index , name = self ._data ._name )
1146+
1147+ return hpat_pandas_stringmethods_isalpha_impl
1148+
1149+
10721150# _hpat_pandas_stringmethods_autogen_methods = sorted(dir(numba.types.misc.UnicodeType.__getattribute__.__qualname__))
10731151_hpat_pandas_stringmethods_autogen_methods = ['upper' , 'lower' , 'lstrip' , 'rstrip' , 'strip' ]
10741152"""
0 commit comments