use pandas vectorized string methods; as in the documentation:
these methods exclude missing/NA values automatically
.str.lower() is the very first example there;
>>> df['x'].str.lower()
0 one
1 two
2 NaN
Name: x, dtype: object
use pandas vectorized string methods; as in the documentation:
these methods exclude missing/NA values automatically
.str.lower() is the very first example there;
>>> df['x'].str.lower()
0 one
1 two
2 NaN
Name: x, dtype: object