Skip to content

Commit

Permalink
Merge pull request #134 from communitiesuk/fix-pandas-warning
Browse files Browse the repository at this point in the history
Fix pandas warning
  • Loading branch information
tom-clarke-dluhc authored Sep 12, 2023
2 parents 9e62dcc + b44530b commit de61d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gov_uk_dashboards/components/plotly/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit de61d3a

Please sign in to comment.