to_csv: correctly handle zero-row data
Don't drop columns for zero-row grouped_df
Remove unneeded workaround