Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 23, 2023
1 parent 4da3fee commit 0668ad1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/build_base_industry_totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,17 @@ def create_industry_base_totals(df):

if include_other:
# Loop through the columns in the list and sum them if they exist
print("other industries are included, check thoroughly as data sometimes is not accurate")
print(
"other industries are included, check thoroughly as data sometimes is not accurate"
)
for col_name in other_list:
if col_name in industry_totals_base.columns:
industry_totals_base["other"] += industry_totals_base[col_name]
industry_totals_base.drop(col_name, axis=1, inplace=True)
else:
print("other industries are included, check thoroughly as data sometimes is not accurate")
print(
"other industries are included, check thoroughly as data sometimes is not accurate"
)
industry_totals_base.drop(
columns=[col for col in other_list if col in industry_totals_base.columns],
inplace=True,
Expand Down

0 comments on commit 0668ad1

Please sign in to comment.