You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one creates a pandas object with a dtype corresponding to a pyarrow struct type, it can be created and e.g. its .values can be accessed as a ArrowExtensionArray which displays, but it cannot be displayed with either __repr__ which shows None, or print() which raises.
This is quite similar to #48238, but I opened a new issue since that's closed already.
I also understand if the response is "we don't support arrow StructType yet" :-)
Thanks!
Expected Behavior
The series or DataFrame can be repr'd and printed and shows the data in a normal way.
Installed Versions
INSTALLED VERSIONS
commit : 37ea63d
python : 3.10.11.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19044
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
If one creates a pandas object with a dtype corresponding to a pyarrow struct type, it can be created and e.g. its
.values
can be accessed as a ArrowExtensionArray which displays, but it cannot be displayed with either__repr__
which shows None, or print() which raises.This is quite similar to #48238, but I opened a new issue since that's closed already.
I also understand if the response is "we don't support arrow StructType yet" :-)
Thanks!
Expected Behavior
The series or DataFrame can be repr'd and printed and shows the data in a normal way.
Installed Versions
INSTALLED VERSIONS
commit : 37ea63d
python : 3.10.11.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19044
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 2.0.1
numpy : 1.23.2
pytz : 2022.2.1
dateutil : 2.8.2
setuptools : 60.2.0
pip : 21.3.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 7.31.0
pandas_datareader: None
bs4 : 4.12.2
bottleneck : None
brotli :
fastparquet : None
fsspec : 2022.10.0
gcsfs : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 12.0.0
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : None
snappy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : 2.3.1
pyqt5 : None
The text was updated successfully, but these errors were encountered: