@@ -13,12 +13,12 @@ def create_data_row_upload_dict(client:labelboxClient, table:pd.core.frame.DataF
13
13
Args:
14
14
table : Required (pandas.core.frame.DataFrame) - Pandas DataFrame
15
15
client : Required (labelbox.client.Client) - Labelbox Client object
16
- row_data_col : Required (str) - Column containing asset URL or file path
16
+ row_data_col : Required (str) - Column containing asset URL or raw text
17
17
global_key_col : Required (str) - Column name containing the data row global key - defaults to row data
18
18
external_id_col : Required (str) - Column name containing the data row external ID - defaults to global key
19
19
metadata_index : Required (dict) - Dictonary where {key=column_name : value=metadata_type}
20
20
attachment_index : Required (dict) - Dictonary where {key=column_name : value=attachment_type}
21
- divider : Required (str) - String delimiter for all name keys generated for parent/child schemas
21
+ divider : Required (str) - String delimiter for all name keys generated
22
22
verbose : Required (bool) - If True, prints details about code execution; if False, prints minimal information
23
23
Returns:
24
24
Two values:
@@ -79,12 +79,12 @@ def create_data_rows(client:labelboxClient, row:pandas.core.series.Series,
79
79
row : Required (pandas.core.series.Series) - Pandas Series object, corresponds to one row in a df.iterrow()
80
80
metadata_name_key_to_schema : Required (dict) - Dictionary where {key=metadata_field_name_key : value=metadata_schema_id}
81
81
metadata_schema_to_name_key : Required (dict) - Inverse of metadata_name_key_to_schema
82
- row_data_col : Required (str) - Column containing asset URL or file path
82
+ row_data_col : Required (str) - Column containing asset URL or raw text
83
83
global_key_col : Required (str) - Column name containing the data row global key
84
84
external_id_col : Required (str) - Column name containing the data row external ID
85
85
metadata_index : Required (dict) - Dictonary where {key=column_name : value=metadata_type}
86
86
attachment_index : Required (dict) - Dictonary where {key=column_name : value=attachment_type}
87
- divider : Required (str) - String delimiter for all name keys generated for parent/child schemas
87
+ divider : Required (str) - String delimiter for all name keys generated
88
88
Returns:
89
89
A dictionary with "error" and "data_row" keys:
90
90
- "error" - If there's value in the "error" key, the script will scip it on upload and return the error at the end
0 commit comments