Pandas Strings Flashcards
names.str.capitalize()
a single method that will capitalize all the entries, while skipping over any missing values
Using tab completion on this str attribute
will list all the vectorized string methods available to Pandas.
len() lower() translate() islower()
ljust() upper() startswith() isupper()
Methods similar to Python string methods
rjust() find() endswith() isnumeric()
center() rfind() isalnum() isdecimal()
Methods similar to Python string methods
zfill() index() isalpha() split()
strip() rindex() isdigit() rsplit()
Methods similar to Python string methods
rstrip() capitalize() isspace() partition()
lstrip() swapcase() istitle() rpartition()
Methods similar to Python string methods
match()
Call re.match() on each element, returning a boolean.
extract()
Call re.match() on each element, returning matched groups as strings.
findall()
Call re.findall() on each element
replace()
Replace occurrences of pattern with some other string
contains()
Call re.search() on each element, returning a boolean
count()
Count occurrences of pattern
split()
Count occurrences of pattern
rsplit()
Equivalent to str.rsplit(), but accepts regexps
get()
Index each element