Slightly better Typechecking when exporting to SQL (#174)

* corret type clause

* add tests, changes in create_json_string

* create json-string now gives back None

* revert changes

* fix panda sql export

* add SQL test

* fixed None type export for csv and sql.gz

* move None parsing to json io

* alter regex

* revert changes

* only replace None with empty str when necessary

* fixed deserialze_df for python 3.7

* add more tesets

* fix case where gz was ignored

* hand voer gz explicitly

* replace nan  by None in non-Obs columns

* moved warning to csv export, mroe tests

* only values able to be nan are put in np.isnan()

* added python float for warning
This commit is contained in:
Justus Kuhlmann 2023-05-18 18:11:52 +02:00 committed by GitHub
commit a5b6f69160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 198 additions and 24 deletions

View file

@ -479,7 +479,6 @@ def import_json_string(json_string, verbose=True, full_output=False):
result : dict
if full_output=True
"""
return _parse_json_dict(json.loads(json_string), verbose, full_output)