October 2019
Beginner to intermediate
674 pages
16h 43m
English
The following table lists a group of functions that help ascertain other properties of the string elements of a series. For example, the isupper function returns True if all the characters of a string are in uppercase. These functions return a Boolean output corresponding to each row in the series:
| Function | Returns true when all characters are... |
| isalnum() | Alphanumeric |
| isalpha() | Alphabetic |
| isdigit() | Digits |
| isspace() | Whitespace |
| islower() | Lowercase |
| isupper() | Uppercase |
| istitle() | Title case |
| isnumeric() | Numeric |
| isdecimal() | Decimal |
Some examples of the preceding functions are as follows:
pd.Series(["ui26", "ui", "26"]).str.isalpha()
The following is the output:
This is a example ...
Read now
Unlock full access