cell_styles when you know exactly which cell you want to change. Each entry names a position and carries any combination of font, fill, border, alignment, and number format.
Font
bool
bool
bool
float
Point size.
str
Hex color. Six or eight digits both work.
str
Typeface, such as
"Arial".Fill
"solid" | "gray125" | "none"
Use
solid for a flat background. gray125 gives light stippled shading.str
The fill color for
solid.str
The background color behind a pattern.
Border
Setleft, right, top, and bottom independently. Each takes a style and a color.
"thin" | "medium" | "thick" | "double" | "dotted" | "dashed"
str
Hex color.
Alignment
"left" | "center" | "right" | "justify"
"top" | "center" | "bottom"
bool
Wraps long text inside the cell instead of letting it overflow.
int
Degrees, 0 to 180, or
255 for vertical text.0
0
No rotation. This is the default.
1 to 90
1 to 90
Counterclockwise. Use
45 to angle text up and to the right, which fits more header text into a narrow column.91 to 180
91 to 180
Clockwise.
91 sits one degree below horizontal and 180 points straight down.255
255
Vertical. Letters stack top to bottom without rotating.
Number format
str
Any built-in name or Excel format code. See Number formats.
column_formats for that one cell.