Pandas Reading json gives me ValueError: Invalid file path or buffer object type in Ploty Dash

When I read json files that i’ve written with Pandas, I use the function below and call inside of json.loads().

def read_json_file_from_local(fullpath):
    """read json file from local"""
    with open(fullpath, 'rb') as f:
        data ='utf-8')
    return data

df = json.loads(read_json_file_from_local(fullpath))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top