Skip to content
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

Update config.py #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NTedjosantoso
Copy link

@NTedjosantoso NTedjosantoso commented Nov 3, 2022

Hi DemandRegioTeam.

as i was trying to use the disaggregator tool i came across an error. I found a simple adjustment that can be made to fix the error. The error occurs when using pandas version 1.4 or higher.

The exception raised is:
TypeError: Expected file path name or file-like object, got <class 'bytes'> type

for reference : https://stackoverflow.com/questions/71074363/pandas-read-json-behavior-with-bytes-object

fix config.py to avoid 
TypeError: Expected file path name or file-like object, got <class 'bytes'> type

The error occurs when using pandas version 1.4 or higher.
@nesnoj
Copy link

nesnoj commented Feb 21, 2023

This works like a charm with pandas v1.5.3, thanks @NTedjosantoso !
Can this one please get merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants