def test_fmt_nanoplot_accept_pl_uint():
    """
    https://github.com/posit-dev/great-tables/issues/571
    """
    single_vals_df = pl.DataFrame({"bars": [1, 2, 3, 5]})

    # Call `as_raw_html()` to trigger `_generate_nanoplot()` and expose the rendering issue.
    single_vals_df.select("bars").cast(pl.UInt32).style.fmt_nanoplot(
        columns="bars", plot_type="bar"
    ).as_raw_html()

    https://github.com/posit-dev/great-tables/issues/571
    
tests/test_formats.py