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

Commit 81af533

Browse files
Update connector.py
1 parent c9951c9 commit 81af533

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

labelpandas/connector.py

+10
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,13 @@ def create_data_rows(
3232
value = row[metadata_field_name] if name_key not in metadata_name_key_to_schema.keys() else metadata_name_key_to_schema[name_key]
3333
data_row_dict['metadata_fields'].append({"schema_id" : metadata_schema_to_name_key[metadata_field_name], "value" : value})
3434
return data_row_dict
35+
36+
def get_columns_function(table):
37+
return [col for col in table.columns]
38+
39+
def get_unique_values_function(table, column_name:str):
40+
return list(table[column_name].unique())
41+
42+
def add_column_function(table, column_name:str):
43+
table[column_name] = ""
44+
return table

0 commit comments

Comments
 (0)