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

Commit 0e7ad7c

Browse files
Update data_rows.py
1 parent 2102cc2 commit 0e7ad7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

labelpandas/data_rows.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ def create_data_row_upload_dict(client:labelboxClient, table:pd.core.frame.DataF
1313
Args:
1414
table : Required (pandas.core.frame.DataFrame) - Pandas DataFrame
1515
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
1717
global_key_col : Required (str) - Column name containing the data row global key - defaults to row data
1818
external_id_col : Required (str) - Column name containing the data row external ID - defaults to global key
1919
metadata_index : Required (dict) - Dictonary where {key=column_name : value=metadata_type}
2020
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
2222
verbose : Required (bool) - If True, prints details about code execution; if False, prints minimal information
2323
Returns:
2424
Two values:
@@ -79,12 +79,12 @@ def create_data_rows(client:labelboxClient, row:pandas.core.series.Series,
7979
row : Required (pandas.core.series.Series) - Pandas Series object, corresponds to one row in a df.iterrow()
8080
metadata_name_key_to_schema : Required (dict) - Dictionary where {key=metadata_field_name_key : value=metadata_schema_id}
8181
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
8383
global_key_col : Required (str) - Column name containing the data row global key
8484
external_id_col : Required (str) - Column name containing the data row external ID
8585
metadata_index : Required (dict) - Dictonary where {key=column_name : value=metadata_type}
8686
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
8888
Returns:
8989
A dictionary with "error" and "data_row" keys:
9090
- "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

Comments
 (0)