great-tables icon indicating copy to clipboard operation
great-tables copied to clipboard

TypeError from a simple table render (from concatenation of int values)

Open rich-iannone opened this issue 1 year ago • 0 comments

A relatively simple table rendering yields a TypeError. Here's code that results in the error:

from great_tables import GT, md
from great_tables.data import constants

constants_mini = constants[["name", "value", "uncert", "sf_value", "sf_uncert", "units"]].tail(6)

GT(constants_mini, rowname_col="name", groupname_col="sf_value")

Results in the error:

TypeError: can only concatenate str (not "numpy.int64") to str

rich-iannone avatar Dec 19 '23 21:12 rich-iannone