SethMMorton / fastnumbers

Super-fast and clean conversions to numbers for Python.
https://pypi.org/project/fastnumbers/
MIT License
105 stars 13 forks source link

Add numpy support? #62

Closed SethMMorton closed 1 year ago

SethMMorton commented 1 year ago

Describe the feature or enhancement

Add support for operating on numpy arrays.

Provide a concrete example of how the feature or enhancement will improve fastnumbers

I'm not 100% if this would be useful... generally, we don't store strings in numpy arrays so I don't know when one would be needing to perform a string to float/int conversion on a numpy array.

It might be useful in pandas, where stringish data is often stored, but pandas has its own very fast conversion functionality, especially when using read_csv, so I'm not sure how much value this would even bring there.

My guess is that if #61 were implemented, it would cover most of the cases where this feature would be needed.

SethMMorton commented 1 year ago

It's more useful to be able to output numpy arrays... I'll start by implementing that, and see how easy reading them in would be after that.

SethMMorton commented 1 year ago

This was closed with #65.