Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
janbaykara committed Jan 9, 2025
1 parent 1bf12ad commit 70fe8fc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions hub/graphql/types/model_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1732,11 +1732,15 @@ def choropleth_data_for_source(
gss=row.gss,
count=row.count,
formatted_count=(
# pretty percentage
f"{row.count:.0%}"
) if is_percentage else (
# comma-separated integer
f"{row.count:,.0f}"
(
# pretty percentage
f"{row.count:.0%}"
)
if is_percentage
else (
# comma-separated integer
f"{row.count:,.0f}"
)
),
)
for row in df.itertuples()
Expand Down

0 comments on commit 70fe8fc

Please sign in to comment.