Answers for "pandas df represent a long column name with short name"

0

pandas df represent a long column name with short name

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