Traceback (most recent call last):


 "/app/superset/views/base.py", line 181, in wraps

return f(self, *args, **kwargs)


 "/app/superset/utils/log.py", line 164, in wrapper

value = f(*args, **kwargs)


 "/app/superset/utils/cache.py", line 152, in wrapper

return f(*args, **kwargs)


 "/app/superset/views/utils.py", line 451, in wrapper

return f(*args, **kwargs)


 "/app/superset/views/core.py", line 619, in explore_json

return self.generate_json(viz_obj, response_type)


 "/app/superset/views/core.py", line 456, in generate_json

payload = viz_obj.get_payload()


 "/app/superset/viz.py", line 464, in get_payload

payload["data"] = self.get_data(df)


 "/app/superset/viz.py", line 1531, in get_data

chart_data = self.to_series(df)


 "/app/superset/viz.py", line 1500, in to_series

ys = series[m]
KeyError: 'metric1'

Traceback (most recent call last):


 "t3.py", line 10, in <module>

print(df.index.get_loc((0,)))


 "/usr/local/lib/python3.6/dist-packages/pandas/core/indexes/base.py", line 2897, in get_loc

raise KeyError(key) from err
KeyError: (0,)
