You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When showing Values of a DataFrame with a named index, it introduces an empty row between header and data. There's no reason for it though, and pd.to_excel() doesn't do it either (even if there's additionally a df.columns.name!). So currently, you'd have to do df.reset_index() to format it correctly.
The text was updated successfully, but these errors were encountered:
Thanks for the report, I agree I'd expect not to have a blank row in this case as well (might be a regression). Marking as a bug so we can follow up with the team
That's right, because Jupyter notebooks leave space for a potential columns name, but that concept doesn't really translate to Excel (see e.g., Excel tables).
When showing Values of a DataFrame with a named index, it introduces an empty row between header and data. There's no reason for it though, and
pd.to_excel()
doesn't do it either (even if there's additionally adf.columns.name
!). So currently, you'd have to dodf.reset_index()
to format it correctly.The text was updated successfully, but these errors were encountered: