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

Commit 83099eb

Browse files
Update connector.py
1 parent 7fae9d5 commit 83099eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelpandas/connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pandas
33

44
def create_upload_dict(df:pandas.core.frame.DataFrame, local_files:bool, lb_client:Client, row:pandas.core.series.Series,
5-
row_data_col:str, global_key_col=None, external_id_col=None, metadata_index:dict={}, divider:str="///"):
5+
row_data_col:str, global_key_col:str="", external_id_col:str="", metadata_index:dict={}, divider:str="///"):
66
""" Multithreads over a Pandas DataFrame, calling create_data_rows() on each row to return an upload dictionary
77
Args:
88
df : Required (pandas.core.frame.DataFrame) - Pandas DataFrame
@@ -37,7 +37,7 @@ def create_upload_dict(df:pandas.core.frame.DataFrame, local_files:bool, lb_clie
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=None, external_id_col=None,
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="",
4141
metadata_index:dict={}, metadata_name_key_to_schema:dict, metadata_schema_to_name_key:dict, divider:str="///"):
4242
""" Function to-be-multithreaded to create data row dictionaries from a Pandas table
4343
Args:

0 commit comments

Comments
 (0)