You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JSON encoder used can output NaN and infinite values (see the most_common_value label in the example below).
This is valid javascript, but not valid JSON, and can create problems down the pipeline when another service tries to deserialize it.
The standard json.dumps method has an allow_nan parameter that can be used to control this behaviour, and it would be good to have access to it (with the default being left as it is right now for compatibility).
Generally speaking, it would be good to have access to all the parameters used by json.dumps, perhaps by adding some catch-all **kwargs to the .json() method in evidently and passing that along to the json.dumps call.
Hi @jlopezpena, thanks for your suggestion, it is a great point. We were unable to fit in the current release as we focused on major refactoring. But we took it into work and will make the changes in the next release in November.
The JSON encoder used can output NaN and infinite values (see the
most_common_value
label in the example below).This is valid javascript, but not valid JSON, and can create problems down the pipeline when another service tries to deserialize it.
The standard
json.dumps
method has anallow_nan
parameter that can be used to control this behaviour, and it would be good to have access to it (with the default being left as it is right now for compatibility).Generally speaking, it would be good to have access to all the parameters used by
json.dumps
, perhaps by adding some catch-all**kwargs
to the.json()
method in evidently and passing that along to thejson.dumps
call.Example:
The text was updated successfully, but these errors were encountered: