Answers for "Standardizing column names pandas"

0

Standardizing column names pandas

df.columns = df.columns.str.strip().str.lower().str.replace(' ', '_').str.replace('(', '').str.replace(')', '')
Posted by: Guest on November-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language