df.columns = df.columns.str.replace(r'\s+', '_') #This replaces ' ' with '_' in col names
for row in df.itertuples(): print(f"{row.Col_1} : {row.Col_2}")
There was an error while loading. Please reload this page.