TidierOrg / TidierData.jl

Tidier data transformations in Julia, modeled after the dplyr/tidyr R packages.
MIT License
86 stars 7 forks source link

@clean_names has a little problem with abbreviation feature name #79

Closed math4mad closed 8 months ago

math4mad commented 9 months ago

If feature is abbr. then will add _, like id => i_d, bmi=>b_m_i

Diabetes Dataset

screenshot_1761

kdpsingh commented 9 months ago

For the @clean_names() macro, we actually wrap the polish_names() function from the Cleaner.jl package.

I would suggest opening an issue there: https://github.com/TheRoniOne/Cleaner.jl

You're right that when janitor sees multiple consecutive capital letters, it doesn't add underscores to separate them.

I'll leave this issue open on our end so we can track this. Thank you!

kdpsingh commented 8 months ago

This is now fixed thanks to a fix to Cleaner.jl (Thanks @TheRoniOne!)