diff --git a/superset/viz.py b/superset/viz.py index 1e25207db0d09..2f90fccc6230c 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -217,7 +217,7 @@ def df_metrics_to_num(df, metrics): """Converting metrics to numeric when pandas.read_sql cannot""" for col, dtype in df.dtypes.items(): if dtype.type == np.object_ and col in metrics: - df[col] = pd.to_numeric(df[col]) + df[col] = pd.to_numeric(df[col], errors='coerce') def query_obj(self): """Building a query object"""