df.to_excel() error.Unsupported type <type 'pandas._libs.interval.Interval'> in write() #19242
Labels
Dtype Conversions
Unexpected or buggy dtype conversions
good first issue
IO Excel
read_excel, to_excel
Milestone
With pandas version 0.19.*,code can run normally.
But in pandas0.20+,the following error will be displayed.
Code
Error description
Note: The same error in pandas0.21,0.20. Right in 0.19.*
Output of
pd.show_versions()
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Darwin
OS-release: 17.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.20.3
pytest: None
pip: 9.0.1
setuptools: 38.2.4
Cython: None
numpy: 1.13.3
scipy: 1.0.0
xarray: None
IPython: None
sphinx: None
patsy: 0.4.1
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.0.0
openpyxl: None
xlrd: 1.1.0
xlwt: None
xlsxwriter: 1.0.2
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: