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

Commit b4700b9

Browse files
Merge pull request #1 from Labelbox/small_edits
minor edits
2 parents 42c9bb4 + 32c0855 commit b4700b9

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

notebooks/create_data_rows_example.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
"tags": []
1818
},
1919
"source": [
20-
"# Labelpandas - The Labelbox <> Pandas Connector\n",
21-
"**Instantly Load CSVs (and other Tables) into Labelbox**\n",
20+
"# LabelPandas - The Labelbox <> Pandas Connector\n",
21+
"**Instantly load CSVs (and other tables) into Labelbox**\n",
2222
"\n",
2323
"---\n",
2424
"\n",
25-
"This notebook is used to go over the basic use of the Labelpandas Python SDK. \n",
25+
"This notebook demonstrates the basic use of the LabelPandas Python SDK. \n",
2626
"\n",
2727
"**Pandas** is a Python library that helps in loading and manipulating CSVs and tabular data more efficiently. It is one of the most widely used Python libraries in the world.\n",
2828
"\n",
29-
"**Labelpandas** incorporates both Labelbox and Pandas to make uploading CSVs and tabular data to Labelbox straightforward. It can handle both local file assets as well as cloud-hosted assets. "
29+
"**LabelPandas** incorporates both Labelbox and Pandas to make uploading CSVs and tabular data to Labelbox straightforward. It can handle both local file assets as well as cloud-hosted assets. "
3030
]
3131
},
3232
{
@@ -54,7 +54,7 @@
5454
"id": "1dfe1eae-e28f-4928-9058-796d097f38cc",
5555
"metadata": {},
5656
"source": [
57-
"# Set up Labelpandas Client"
57+
"## Set up LabelPandas Client"
5858
]
5959
},
6060
{
@@ -84,14 +84,14 @@
8484
"source": [
8585
"# Load CSV\n",
8686
"\n",
87-
"To upload data rows from a csv, your csv **must** have the following:\n",
87+
"To upload data rows from a `.csv`, your .`csv` **must** have the following:\n",
8888
"\n",
89-
"- Column consisting of your **row data** as a string value - this pertains to either your asset URL (pointing to cloud storage) or a local file path\n",
89+
"- Column consisting of your **row data** as a string value - this pertains to either your asset URL (pointing to cloud storage) or a local file path.\n",
9090
" \n",
91-
"- Column consisting of your **global key** as a string value - this is an externally facing ID that must be unique (Labelbox enforces it)\n",
92-
" - If you attempt to upload a data row with an existing global key, it will either auto-generate a suffix such as \"_1\" or it will skip it entirely\n",
91+
"- Column consisting of your **global key** as a string value - this is an externally facing ID that must be unique (Labelbox enforces uniqueness).\n",
92+
" - If you attempt to upload a data row with an existing global key, it will either auto-generate a suffix such as \"_1\" or it will skip it entirely.\n",
9393
" \n",
94-
"**To upload data rows with metadta, your csv must have one column per metadata field name**. Labelpandas matches the column names to Labelbox metadata names when uploading metadata."
94+
"**To upload data rows with metadata, your `.csv` must have one column per metadata field name**. LabelPandas matches the column names to Labelbox metadata names when uploading metadata."
9595
]
9696
},
9797
{
@@ -218,11 +218,11 @@
218218
"id": "8031341e-b42f-4838-9a8a-ad06271fdcdf",
219219
"metadata": {},
220220
"source": [
221-
"# Create a `metadata_index`\n",
221+
"## Create a `metadata_index`\n",
222222
"\n",
223-
"* Your metadata_index is a dictionary where {key=`column_name` : value=`metadata_field_type`}\n",
223+
"* Your `metadata_index` is a dictionary where `{key=column_name : value=metadata_field_type`}\n",
224224
" * `column_name` must correspond to Labelbox metadata field names. Labelpandas uses these names to sync data.\n",
225-
" * `metadata_field_type` must be one of the following string values: **\"datetime\" \"enum\" \"string\" \"number\"**"
225+
" * `metadata_field_type` must be one of the following string values: `datetime` | `enum` | `string` | `number`"
226226
]
227227
},
228228
{
@@ -242,9 +242,9 @@
242242
"id": "e7e2121e-a3db-4734-b034-77f365a1c20a",
243243
"metadata": {},
244244
"source": [
245-
"# Get or Create a Labelbox Dataset\n",
245+
"## Get or create a Labelbox dataset\n",
246246
"\n",
247-
"* Labelpandas will create data rows for you in existing datasets. If you don't have a dataset, create one."
247+
"* LabelPandas will create data rows for you in existing datasets. If you don't have a dataset, create one."
248248
]
249249
},
250250
{
@@ -274,7 +274,7 @@
274274
"id": "c6ad8272-1eb2-4ac3-ae44-072c40675646",
275275
"metadata": {},
276276
"source": [
277-
"# Upload Data Rows from CSV to Labelbox\n",
277+
"## Upload Data Rows from CSV to Labelbox\n",
278278
"\n",
279279
"**`client.create_data_rows_from_table()`** has the following arguments:\n",
280280
"```\n",
@@ -288,7 +288,7 @@
288288
"skip_duplicates : Optional (bool) - If True, will skip duplicate global_keys, otherwise will generate a unique global_key with a suffix \n",
289289
"verbose : Optional (bool) - If True, prints information about code execution\n",
290290
"```\n",
291-
"This function will return a list of errors, if any"
291+
"This function will return a list of errors, if any."
292292
]
293293
},
294294
{

0 commit comments

Comments
 (0)