lower the values with nan panda code example Example: pandas convert all string columns to lowercase df = df.applymap(lambda s:s.lower() if type(s) == str else s)