Header and Cell Alignment in Plotly `go.Table`

What should I do if I want to change the alignments of headers and cells in Solution 2? e.g I want to make the contents shown in the center of cells/headers instead of to the left of them. Thank you