diff --git a/gov_uk_dashboards/components/plotly/table.py b/gov_uk_dashboards/components/plotly/table.py index ccd48e2..20e0a7a 100644 --- a/gov_uk_dashboards/components/plotly/table.py +++ b/gov_uk_dashboards/components/plotly/table.py @@ -75,7 +75,7 @@ def table_from_dataframe( html.Tbody( [ html.Tr( - [html.Th(row[0], scope="row", className="govuk-table__header")] + [html.Th(row.iloc[0], scope="row", className="govuk-table__header")] + [html.Td(cell, className="govuk-table__cell") for cell in row[1:]] ) if first_column_is_header and index != last_row_index diff --git a/setup.py b/setup.py index 3a99add..70d934b 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ author="Department for Levelling Up, Housing and Communities", description="Provides access to functionality common to creating a data dashboard.", name="gov_uk_dashboards", - version="9.16.3", + version="9.16.4", long_description=long_description, long_description_content_type="text/markdown", packages=find_packages(),