Skip to content

Commit

Permalink
geo_utils: replaced seq
Browse files Browse the repository at this point in the history
  • Loading branch information
amandaha8 committed Sep 25, 2023
1 parent d4778f4 commit 9dfb7c1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Utility functions for geospatial data.
Some functions for dealing with census tract or other geographic unit dfs.
"""
from typing import Literal, Optional, Sequence, Union, cast
from typing import Literal, Sequence, Union, cast

import dask.dataframe as dd
import geopandas as gpd # type: ignore
Expand All @@ -21,10 +21,10 @@
def aggregate_by_geography(
df: Union[pd.DataFrame, gpd.GeoDataFrame],
group_cols: list,
sum_cols: Sequence[str],
mean_cols: Sequence[str],
count_cols: Sequence[str],
nunique_cols: Sequence[str],
sum_cols: Sequence,
mean_cols: Sequence,
count_cols: Sequence,
nunique_cols: Sequence,
rename_cols: bool = False,
) -> pd.DataFrame:
"""
Expand Down Expand Up @@ -55,7 +55,7 @@ def aggregate_and_merge(
df: Union[pd.DataFrame, gpd.GeoDataFrame],
final_df: pd.DataFrame,
group_cols: list,
agg_cols: Optional[str],
agg_cols: Sequence,
aggregate_function: str,
):
agg_df = df.pivot_table(
Expand Down

0 comments on commit 9dfb7c1

Please sign in to comment.