Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
This repository was archived by the owner on May 13, 2025. It is now read-only.

json_to_csv_converter.py has a small issue for the new yelp dataset #42

@akhodadadi

Description

@akhodadadi

For the file business.json, there are records (for example the 4th record) where for example the key hours exists but its value is None. This causes an exception in the function get_nested_value.

To fix it, I suggest to add the following to that function before the last line (return get_nested_value(sub_dict, sub_key)):

if sub_dict is None:
return None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions