BUG: yaml.dump
throws AttributeError on dataframe – problem with reduce
?
#42804
Labels
Duplicate Report
Duplicate issue or pull request
Please note
I have reported this problem for PyYAML as yaml/pyyaml#541, but one of the maintainers says that this cannot be fixed on their side, but is caused by the way Pandas implements
reduce
.Code Sample, a copy-pastable example
Code:
Result:
Python 3.8.10 | packaged by conda-forge | (default, May 11 2021, 07:01:05)
PyYAML 5.4.1
Pandas 1.3.1
NumPy 1.21.1
Problem description
This prevents dataframes from being saved as YAML.
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : c7f7443
python : 3.8.10.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.0-17-amd64
Version : #1 SMP Debian 4.19.194-3 (2021-07-18)
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.3.1
numpy : 1.21.1
pytz : 2021.1
dateutil : 2.8.2
pip : 21.2.1
setuptools : 49.6.0.post20210108
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.0.1
IPython : 7.25.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 2021.07.0
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : 5.0.0
pyxlsb : None
s3fs : None
scipy : 1.7.0
sqlalchemy : None
tables : None
tabulate : None
xarray : 0.19.0
xlrd : None
xlwt : None
numba : 0.53.1
The text was updated successfully, but these errors were encountered: