Expected output: graalpython should show the standard pandas dataframe in the SystemOut.
Actual output:
>>> animals
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/graalvm/python/lib/python3.8/site-packages/pandas-0.25.0-py3.8-linux-x86_64.egg/pandas/core/frame.py", line 648, in __repr__
self.to_string(
File "/home/graalvm/python/lib/python3.8/site-packages/pandas-0.25.0-py3.8-linux-x86_64.egg/pandas/core/frame.py", line 756, in to_string
formatter.to_string()
File "/home/graalvm/python/lib/python3.8/site-packages/pandas-0.25.0-py3.8-linux-x86_64.egg/pandas/io/formats/format.py", line 687, in to_string
strcols = self._to_str_columns()
File "/home/graalvm/python/lib/python3.8/site-packages/pandas-0.25.0-py3.8-linux-x86_64.egg/pandas/io/formats/format.py", line 625, in _to_str_columns
fmt_values = self._format_col(i)
File "/home/graalvm/python/lib/python3.8/site-packages/pandas-0.25.0-py3.8-linux-x86_64.egg/pandas/io/formats/format.py", line 810, in _format_col
return format_array(
File "/home/graalvm/python/lib/python3.8/site-packages/pandas-0.25.0-py3.8-linux-x86_64.egg/pandas/io/formats/format.py", line 1032, in format_array
return fmt_obj.get_result()
File "/home/graalvm/python/lib/python3.8/site-packages/pandas-0.25.0-py3.8-linux-x86_64.egg/pandas/io/formats/format.py", line 1063, in get_result
fmt_values = self._format_strings()
File "/home/graalvm/python/lib/python3.8/site-packages/pandas-0.25.0-py3.8-linux-x86_64.egg/pandas/io/formats/format.py", line 1108, in _format_strings
is_float_type = lib.map_infer(vals, is_float) & notna(vals)
File "pandas._libs.lib.map_infer", line 2238, in pandas._libs.lib.map_infer
File "pandas._libs.lib.maybe_convert_objects", line 2016, in pandas._libs.lib.maybe_convert_objects
OverflowError: can't convert negative value to npy_uint8
Environment information
The code had been executed from the official docker image (ghcr.io/graalvm/graalvm-ce:latest).
Numpy and Pandas were install via ginstall command (not via pip).
Hi @denrykhlov, thank you for the report. I can reproduce the problem on the released version, but not anymore on the current development version. So it is fixed already, just not yet released. You can get the development version here to test it.
Hi,
I've tried to run some very basic pandas code from official doc version of 0.25.0.
Expected output: graalpython should show the standard pandas dataframe in the SystemOut. Actual output:
Environment information The code had been executed from the official docker image (ghcr.io/graalvm/graalvm-ce:latest).
Numpy and Pandas were install via ginstall command (not via pip).
Please, also see the java version and installed python packages in the virtual environment from where the code been executed: