superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Set ignore NaN as true for TableViz (#5371)
Date Wed, 11 Jul 2018 15:20:49 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new cd2414b  Set ignore NaN as true for TableViz (#5371)
cd2414b is described below

commit cd2414b19e70b14de5f3b3b36e18904b06a25515
Author: Hugh A. Miles II <hughmil3s@gmail.com>
AuthorDate: Wed Jul 11 08:20:45 2018 -0700

    Set ignore NaN as true for TableViz (#5371)
    
    * set ignore NaN as true for TableViz
    
    * linting
---
 superset/viz.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/superset/viz.py b/superset/viz.py
index ee423b4..e36df19 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -578,7 +578,10 @@ class TableViz(BaseViz):
     def json_dumps(self, obj, sort_keys=False):
         if self.form_data.get('all_columns'):
             return json.dumps(
-                obj, default=utils.json_iso_dttm_ser, sort_keys=sort_keys)
+                obj,
+                default=utils.json_iso_dttm_ser,
+                sort_keys=sort_keys,
+                ignore_nan=True)
         else:
             return super(TableViz, self).json_dumps(obj)
 


Mime
View raw message