Skip to content

Bug when downloading a excel in getTestingData #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xsaschako opened this issue Feb 9, 2022 · 1 comment
Closed

Bug when downloading a excel in getTestingData #201

xsaschako opened this issue Feb 9, 2022 · 1 comment
Labels
class::bug Bugs found in the software loc::data handling This issue concerns any kind of data handling. prio::high The priority of this task is high.

Comments

@xsaschako
Copy link
Member

Line 67 in getTestingData:

df_test[1] = pd.read_excel(df, sheet_name=sheet_names[3], header=[4],dtype={'Anteil positiv': float})

The error says

Exception has occurred: ValueError
Passed header = 4 but only 2 lines in file

This is discussed in pandas-dev/pandas#38956.

Anette also reproduced that error.

@xsaschako xsaschako added class::bug Bugs found in the software loc::data handling This issue concerns any kind of data handling. prio::high The priority of this task is high. labels Feb 9, 2022
@annette-lutz
Copy link
Contributor

This bug is dependend on the pandas version used. It is a bug in pandas that is resolved in pandas version 1.2.2. In #221 this requirement is added to the setup.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class::bug Bugs found in the software loc::data handling This issue concerns any kind of data handling. prio::high The priority of this task is high.
Projects
None yet
Development

No branches or pull requests

2 participants