mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: Ensure the reporting framework handles charts with no data (#23585)
This commit is contained in:
@@ -111,6 +111,9 @@ def get_chart_dataframe(
|
||||
pd.set_option("display.float_format", lambda x: str(x))
|
||||
df = pd.DataFrame.from_dict(result["result"][0]["data"])
|
||||
|
||||
if df.empty:
|
||||
return None
|
||||
|
||||
try:
|
||||
# if any column type is equal to 2, need to convert data into
|
||||
# datetime timestamp for that column.
|
||||
|
||||
Reference in New Issue
Block a user