sznur wykończenia pand wszystkich komórek

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