rusackas opened a new pull request, #38176: URL: https://github.com/apache/superset/pull/38176
## Summary The Excel export was including an unwanted index column (row numbers 0, 1, 2...) because `df.to_excel()` defaults to `index=True`. CSV export already handled this correctly by passing `index=include_index`. This fix applies the same logic to Excel exports: only include the index column if the DataFrame has a custom index (not a RangeIndex). **Before:**  **After:** The first column with row numbers will no longer appear. ## Test plan - [ ] Export a chart to Excel and verify no unwanted index column appears - [ ] Verify CSV export still works correctly - [ ] Verify DataFrames with custom indices still export the index Closes #32113 Related: #22981, #29717 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
