Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Aug 5, 2024
1 parent 8898011 commit a9e4cec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py-polars/polars/io/spreadsheet/_write_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,11 @@ def _map_str(s: Series) -> Series:
df, row_totals, expand_keys=False, expand_values=True
)
row_totals_dtype = { # type: ignore[assignment]
nm: (Int64 if _all_integer_cols(cols, schema) else Float64)
nm: (
Int64
if _all_integer_cols(numeric_cols if cols is True else cols, schema)
else Float64
)
for nm, cols in row_totals.items()
}
row_total_funcs = {
Expand Down

0 comments on commit a9e4cec

Please sign in to comment.