import pandas as pd
import numpy as np
# Input Series
s = pd.Series(["SERIES", "Gcptutorials.com", "Learn PAndas",
"TEST String", np.nan, "gcptutorials"], dtype="string")
# Using str.upper convert all data to uppercase
upper_s = s.str.upper()
print(upper_s)
=====Output=====
0 SERIES
1 GCPTUTORIALS.COM
2 LEARN PANDAS
3 TEST STRING
4 <NA>
5 GCPTUTORIALS
dtype: string