pola-rs / polars

Dataframes powered by a multithreaded, vectorized query engine, written in Rust
https://docs.pola.rs
Other
29.82k stars 1.92k forks source link

Allow user to choose dtype in `str.to_integer` #11612

Open Hoohm opened 1 year ago

Hoohm commented 1 year ago

Description

Hello there! I'm trying to use polars to update some old code to do DNA mapping within a certain hamming distance.

Playing around the polars API I found out that I could convert DNA strings to int with a specific base which would allow me to map strings very easily.

The only issue I have is that the return is an Int32 and this is too small for what I would need. I would want to get either an Int64, Uint32 or Uint64.

Would that be difficult to implement?

Best wishes and thank you for this amazing package!

orlp commented 1 year ago

I think that's a reasonable enough request.