You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ericmjl All done. Added MultiIndex tests and everything passes. Will do PR now.
FYI, I don't have the most experience with writing tests and using GitHub for PRs so please feel free to comment on anything you think I could improve on or should change.
Also, I didn't add any examples as anything using clean_names that works for the single Index DataFrame should also work for the MultiIndex.
Edit: Just seen the contributing recommendations. Flake8 told me off a lot so I will fix this and try again.
MultiIndex columns returns
expected str not tuple
type error.If you instead used,
df.rename(columns=lambda x: x.lower().replace('_', ''))
this would work for standard and MultiIndex DataFrames.
Can do PR if required.
The text was updated successfully, but these errors were encountered: