Ersetzen Sie alle Spacec -Spalte durch Unterstrich in Pandas
import pandas as pd
# remove spaces in columns name
df.columns = df.columns.str.replace(' ','_')
regexp27
import pandas as pd
# remove spaces in columns name
df.columns = df.columns.str.replace(' ','_')
df.rename(columns=lambda x: x.strip().replace(" ", "_"), inplace=True)