A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/33853 below:

pd.read_excel error when a cell contains string "INF" · Issue #33853 · pandas-dev/pandas · GitHub

Here is how to reproduce the bug: run this script:

import pandas as pd
pd.read_excel('test.xlsx')
# idem with pd.read_excel('test.xlsx', engine='openpyxl')
# so it's not specific to xlrd or openpyxl

with this test.xlsx file:

a b 12 1 14 1 15 1 16 INF

Error:

OverflowError: cannot convert float infinity to integer

Why does this happen / why is there a integer conversion? No automatic integer parsing has been asked.

PS: Congrats for this great project!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4