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

Commit f0d9ff3

Browse files
Update connector.py
1 parent fcb63e0 commit f0d9ff3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

labelpandas/connector.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
from labelbox import Client
22
import pandas
33

4-
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:str="", external_id_col:str="", metadata_index:dict={}, divider:str="///"):
4+
def create_upload_dict(df:pandas.core.frame.DataFrame, local_files:bool, lb_client:Client, row_data_col:str,
5+
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
99
local_files : Required (bool) - If True, will create urls for local files / If False, treats the values in `row_data_col` as urls
1010
lb_client : Required (labelbox.client.Client) - Labelbox Client object
11-
row : Required (pandas.core.series.Series) - Pandas row object
1211
row_data_col : Required (str) - Column name where the data row row data URL is located
1312
global_key_col : Optional (str) - Column name where the data row global key is located - defaults to the row_data_col
1413
external_id_col : Optional (str) - Column name where the data row external ID is located - defaults to the global_key_col

0 commit comments

Comments
 (0)