Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement similar functions for polars #1352

Open
9 of 26 tasks
samukweku opened this issue Apr 21, 2024 · 2 comments
Open
9 of 26 tasks

implement similar functions for polars #1352

samukweku opened this issue Apr 21, 2024 · 2 comments

Comments

@samukweku
Copy link
Collaborator

samukweku commented Apr 21, 2024

in relation to #1343 - this is a list of functions missing in the polars library that could be implemented :

  • clean_names
  • pivot_longer
  • pivot_wider
  • xlsx_tables
  • xlsx_cells
  • read_commandline
  • conditional_join
  • complete
  • expand_grid pl.join with how='cross' covers this
  • convert_excel_date
  • convert_matlab_date
  • convert_unix_date pl.from_epoch covers this
  • bin_numeric pl.Expr.cut covers this
  • concatenate_columns can be replicated with pl.concat_str
  • deconcatenate_columns pl.Expr.str.split covers this
  • factorize_columns pl.rank(dense) or pl.Expr.to_physical covers this
  • get_dupes Expr.is_duplicated() covers this
  • jitter
  • limit_column_characters
  • min_max_scale
  • move can be replicated with polars' selectors
  • row_to_names
  • shuffle pl.Expr.shuffle covers this
  • sort_naturally
  • take_first group_by.first() covers this
  • also

Care should be taken to not create the function, if an existing solution already exists for any of these functions (probably named differently, or a combination of existing polars functions that covers all use cases of any of the listed functions above)

@samukweku
Copy link
Collaborator Author

samukweku commented Jun 14, 2024

the current pivot_longer implementation is not good enough. I'll submit a PR with improvements

@samukweku
Copy link
Collaborator Author

I assumed (wrongly) that polars' join maintains order (it only does so for left join). need to rethink the computation logic for complete. I'll submit a PR with improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant