Closed macpreet closed 2 years ago
Exactly the same thing for me !
Some logs:
json used: https://api.themoviedb.org/3/movie/500?api_key=
null value need to be None true to True false to False
@zolekode you know a method to fix it without rewrite the json ?
i will try some fix in my way, i'll keep you informed
@macpreet i think* title need to be set to "Boolean and null normalization support"
@macpreet i thing title need to be set to "Boolean and null normalization support"
Done.
Closed the issue by mistake . Sorry
@samos667 regarding the screenshot you shared, you need to pass a dictionary (python dict) instead of a json. You will probably first need to do something like import json json.loads(your_json)
@macpreet @samos667 could you reexplain with the help of examples and screenshots? I am not very certain if I understand what you need.
Issue should be fixed. @samos667 @macpreet
To solve both your problems:
table_maker.save_tables(..., cast_none_to_nan=True, cast_object_to_bool=True)
Please leave a star and share the love of open source @samos667 @macpreet
Thanks for your help @zolekode
I tried to use your code. It reads null values in json and stores it in sql by replacing with NONE(python). As per my requirement, we need null to be stored as it is in sql. Any help would be appreciated. Thanks