I have the following df
data = {'Name':['TOMy', 'NICKs', 'KRISHqws', 'JACKdpo'], 'Age':[20, 21, 19, 18]}
How can I remove lowercase letters from the Name column such that when looking at data['Name'], I have TOM,NICK,KRISH,JACK.
I tried the following but no luck,
data['Name'].mask(data['Name'].str.match(r'^[a-z]+$'))
data['Name'] = data['Name'].str.translate(None,string.ascii_lowercase)