File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
_shared_utils/shared_utils Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 77import dask_geopandas as dg
88import gcsfs
99import geopandas as gpd
10+ import google .auth
1011import pandas as pd
1112from calitp_data_analysis import utils
1213from dask import compute , delayed
1314from dask .delayed import Delayed # type hint
1415from shared_utils import time_helpers
15- import google . auth
16+
1617credentials , project = google .auth .default ()
1718
1819fs = gcsfs .GCSFileSystem ()
@@ -129,9 +130,7 @@ def import_df_func(
129130 """
130131 if data_type == "gdf" :
131132 df = gpd .read_parquet (
132- f"{ path } _{ one_date } .parquet" ,
133- ** kwargs ,
134- storage_options = {"token" : credentials .token }
133+ f"{ path } _{ one_date } .parquet" , ** kwargs , storage_options = {"token" : credentials .token }
135134 ).drop_duplicates ()
136135
137136 else :
You can’t perform that action at this time.
0 commit comments