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

Commit e836553

Browse files
Update connector.py
1 parent f5b1554 commit e836553

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

labelpandas/connector.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
import pandas
1+
"""
2+
connector.py holds the following helper functions specific to pandas DataFrames:
3+
4+
- get_columns_function(table) : Gets all column names
5+
- get_unique_values_function(table, column_name) : Gets all unique values in a given column
6+
- add_column_function(table, column_name, default_value) : Creates a column where all values equal the default value
7+
- get_table_length_function(table) : Gets the length of a DataFrame
8+
9+
"""
10+
import pandas
211

312
def get_columns_function(table:pandas.core.frame.DataFrame, extra_client=None):
413
"""Grabs all column names from a Pandas DataFrame

0 commit comments

Comments
 (0)