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

Commit 81dd6f1

Browse files
Update batches.py
1 parent e585ea1 commit 81dd6f1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

labelpandas/batches.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
"""
2+
batches.py holds the function create_batches_dict() -- which creates the following style dictionary:
3+
{
4+
project_id :
5+
[
6+
data_row_id,
7+
data_row_id,
8+
data_row_id,
9+
],
10+
project_id :
11+
[
12+
data_row_id,
13+
data_row_id,
14+
data_row_id,
15+
],
16+
}
17+
This is the format that labelbase.uploader.batch_rows_to_project() expects
18+
"""
19+
120
import pandas as pd
221

322
def create_batches_dict(table: pandas.core.frame.DataFrame, table_dict:dict,

0 commit comments

Comments
 (0)