markfairbanks / tidypolars

Tidy interface to polars
http://tidypolars.readthedocs.io
MIT License
324 stars 10 forks source link

Implement `janitor::clean_names()` #122

Open mjkarlsen opened 2 years ago

mjkarlsen commented 2 years ago

Might be worth it and might not be. What do you think?

markfairbanks commented 2 years ago

I really like the idea of adding .clean_names()

ztsweet commented 2 years ago

nice! it is a good idea! :) @mjkarlsen

verajosemanuel commented 1 year ago

https://github.com/pyjanitor-devs/pyjanitor

markfairbanks commented 1 year ago

@verajosemanuel - thanks for sending this over. I've seen this, and unfortunately this only works on pandas data frames and isn't compatible with polars. There's probably some common ideas I can pull from internals though.

One thing that makes R a little easier is that things can be implemented on top of the base R data.frame class. So janitor::clean_names() works on data.frames, tibbles, and data.tables. Whereas in python every data frame library has to have their own separate implementation.