jekwatt / idiomatic_pandas

Tips and tricks for the most common data handling task with pandas.
0 stars 0 forks source link

Add normalize_name into template #13

Open jekwatt opened 4 years ago

jekwatt commented 4 years ago

normalize column names:

d1 = {c: normalize_name(c) for c in df.columns}
df.rename(columns=d1, inplace=True)