apache / arrow

Apache Arrow is the universal columnar format and multi-language toolbox for fast data interchange and in-memory analytics
https://arrow.apache.org/
Apache License 2.0
14.5k stars 3.53k forks source link

Cannot convert DataFrame with `numpy.dtype` cells to `pyarrow.Table` #18854

Open asfimport opened 3 years ago

asfimport commented 3 years ago

Example:


df = pd.DataFrame([np.dtype("<i2")]

raises an ArrowInvalid exception with Could not convert dtype...

 

Environment: macOS Python 3.8 Reporter: Henrikh Kantuni

Note: This issue was originally created as ARROW-14087. Please see the migration documentation for further details.

asfimport commented 2 years ago

Michael Rose: Based on the number of views of the corresponding question on StackOverflow (https://stackoverflow.com/questions/69578431/how-to-fix-streamlitapiexception-expected-bytes-got-a-int-object-conver), I'd like to ask to reconsider the priority. Currently it's minor. But 5k views since September 2021 state otherwise.