Skip to content

Commit

Permalink
Merge pull request #902 from cal-itp/passing-utils
Browse files Browse the repository at this point in the history
pass precommit
  • Loading branch information
tiffanychu90 authored Sep 22, 2023
2 parents 3fb2a16 + 0372aec commit 3dc4e6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _shared_utils/shared_utils/portfolio_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def style_table(

return df_style


def aggregate_by_geography(
df: Union[pd.DataFrame, gpd.GeoDataFrame],
group_cols: list,
Expand Down Expand Up @@ -237,4 +238,4 @@ def aggregate_and_merge(
if len(nunique_cols) > 0:
final_df = aggregate_and_merge(df, final_df, group_cols, nunique_cols, "nunique")

return final_df.drop(columns="index")
return final_df.drop(columns="index")

0 comments on commit 3dc4e6d

Please sign in to comment.