Skip to content

Update config.py - #14

Open
NTedjosantoso wants to merge 1 commit into
DemandRegioTeam:masterfrom
NTedjosantoso:NTedjosantoso-patch-1
Open

Update config.py#14
NTedjosantoso wants to merge 1 commit into
DemandRegioTeam:masterfrom
NTedjosantoso:NTedjosantoso-patch-1

Conversation

@NTedjosantoso

@NTedjosantoso NTedjosantoso commented Nov 3, 2022

Copy link
Copy Markdown

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

nesnoj commented Feb 21, 2023

Copy link
Copy Markdown

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