Pandas Series: str.islower() function
Series-str.islower() function
The str.islower() function is used to check whether all characters in each string are lowercase or not.
This is equivalent to running the Python string method str.islower() for each element of the Series/Index. If a string has zero characters, False is returned for that check.
Syntax:
Series.str.islower(self)
Returns: Series or Index of bool
Series or Index of boolean values with the same length as the original Series/Index.
Example - Checks for Alphabetic and Numeric Characters:
Python-Pandas Code:
import numpy as np
import pandas as pd
s = pd.Series(['tiger', 'Lion', 'SNAKE', ''])
s.str.islower()
Output:
0 True 1 False 2 False 3 False dtype: bool
Previous: Series-str.isspace() function
Next: Series-str.isupper() function
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/pandas/series/series-str-islower.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics