Pandas trimmen Schnur aller Zellen

new_df = df.applymap(lambda x: x.strip() if type(x) == str else x)
houstika