Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit c6c81eb

Browse files
Update connector.py
1 parent d97e515 commit c6c81eb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

labelpandas/connector.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,19 @@ def create_upload_dict(df:pandas.core.frame.DataFrame, local_files:bool, lb_clie
2727
for index, row in df.iterrows():
2828
futures.append(
2929
exc.submit(
30-
create_data_rows, local_files, lb_client, row, row_data_col,
31-
global_key_col, external_id_col, metadata_index, metadata_name_key_to_schema,
32-
metadata_schema_to_name_key, divider
30+
create_data_rows, local_files, lb_client, row,
31+
metadata_name_key_to_schema, metadata_schema_to_name_key,
32+
row_data_col, global_key_col, external_id_col, metadata_index, divider
3333
)
3434
)
3535
for f in as_completed(futures):
3636
res = f.result()
3737
global_key_to_upload_dict[str(res["global_key"])] = res
3838
return global_key_to_upload_dict
3939

40-
def create_data_rows(local_files:bool, lb_client:Client, row:pandas.core.series.Series, row_data_col:str, global_key_col:str="", external_id_col:str="",
41-
metadata_index:dict={}, metadata_name_key_to_schema:dict, metadata_schema_to_name_key:dict, divider:str="///"):
40+
def create_data_rows(local_files:bool, lb_client:Client, row:pandas.core.series.Series,
41+
metadata_name_key_to_schema:dict, metadata_schema_to_name_key:dict,
42+
row_data_col:str, global_key_col:str="", external_id_col:str="", metadata_index:dict={}, divider:str="///"):
4243
""" Function to-be-multithreaded to create data row dictionaries from a Pandas table
4344
Args:
4445
local_files : Required (bool) - If True, will create urls for local files / If False, treats the values in `row_data_col` as urls

0 commit comments

Comments
 (0)