@@ -1147,6 +1147,84 @@ def hpat_pandas_stringmethods_isalpha_impl(self):
11471147 return hpat_pandas_stringmethods_isalpha_impl
11481148
11491149
1150+ @overload_method (StringMethodsType , 'islower' )
1151+ def hpat_pandas_stringmethods_islower (self ):
1152+ """
1153+ Intel Scalable Dataframe Compiler User Guide
1154+ ********************************************
1155+ Pandas API: pandas.Series.str.islower
1156+
1157+ Limitations
1158+ -----------
1159+ Series elements are expected to be Unicode strings. Elements cannot be NaN.
1160+
1161+ Examples
1162+ --------
1163+ .. literalinclude:: ../../../examples/series/str/series_str_islower.py
1164+ :language: python
1165+ :lines: 27-
1166+ :caption: Check if all the characters in the text are alphanumeric
1167+ :name: ex_series_str_islower
1168+
1169+ .. command-output:: python ./series/str/series_str_islower.py
1170+ :cwd: ../../../examples
1171+
1172+ .. seealso::
1173+ :ref:`Series.str.isalpha <pandas.Series.str.isalpha>`
1174+ Check whether all characters are alphabetic.
1175+ :ref:`Series.str.isnumeric <pandas.Series.str.isnumeric>`
1176+ Check whether all characters are numeric.
1177+ :ref:`Series.str.isalnum <pandas.Series.str.isalnum>`
1178+ Check whether all characters are alphanumeric.
1179+ :ref:`Series.str.isdigit <pandas.Series.str.isdigit>`
1180+ Check whether all characters are digits.
1181+ :ref:`Series.str.isdecimal <pandas.Series.str.isdecimal>`
1182+ Check whether all characters are decimal.
1183+ :ref:`Series.str.isspace <pandas.Series.str.isspace>`
1184+ Check whether all characters are whitespace.
1185+ :ref:`Series.str.islower <pandas.Series.str.islower>`
1186+ Check whether all characters are lowercase.
1187+ :ref:`Series.str.isupper <pandas.Series.str.isupper>`
1188+ Check whether all characters are uppercase.
1189+ :ref:`Series.str.istitle <pandas.Series.str.istitle>`
1190+ Check whether all characters are titlecase.
1191+
1192+ Intel Scalable Dataframe Compiler Developer Guide
1193+ *************************************************
1194+
1195+ Pandas Series method :meth:`pandas.core.strings.StringMethods.islower()` implementation.
1196+
1197+ Note: Unicode type of list elements are supported only. Numpy.NaN is not supported as elements.
1198+
1199+ .. only:: developer
1200+
1201+ Test: python -m sdc.runtests sdc.tests.test_series.TestSeries.test_series_islower_str
1202+
1203+ Parameters
1204+ ----------
1205+ self: :class:`pandas.core.strings.StringMethods`
1206+ input arg
1207+
1208+ Returns
1209+ -------
1210+ :obj:`pandas.Series`
1211+ returns :obj:`pandas.Series` object
1212+ """
1213+
1214+ ty_checker = TypeChecker ('Method islower().' )
1215+ ty_checker .check (self , StringMethodsType )
1216+
1217+ def hpat_pandas_stringmethods_islower_impl (self ):
1218+ item_count = len (self ._data )
1219+ result = numpy .empty (item_count , numba .types .boolean )
1220+ for idx , item in enumerate (self ._data ._data ):
1221+ result [idx ] = item .islower ()
1222+
1223+ return pandas .Series (result , self ._data ._index , name = self ._data ._name )
1224+
1225+ return hpat_pandas_stringmethods_islower_impl
1226+
1227+
11501228# _hpat_pandas_stringmethods_autogen_methods = sorted(dir(numba.types.misc.UnicodeType.__getattribute__.__qualname__))
11511229_hpat_pandas_stringmethods_autogen_methods = ['upper' , 'lower' , 'lstrip' , 'rstrip' , 'strip' ]
11521230"""
0 commit comments