mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
fix(excel): remove unwanted index column from Excel exports (#38176)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -259,7 +259,9 @@ class QueryContextProcessor:
|
||||
)
|
||||
elif self._query_context.result_format == ChartDataResultFormat.XLSX:
|
||||
excel.apply_column_types(df, coltypes)
|
||||
result = excel.df_to_excel(df, **current_app.config["EXCEL_EXPORT"])
|
||||
result = excel.df_to_excel(
|
||||
df, index=include_index, **current_app.config["EXCEL_EXPORT"]
|
||||
)
|
||||
return result or ""
|
||||
|
||||
return df.to_dict(orient="records")
|
||||
|
||||
Reference in New Issue
Block a user