Skip to content

Commit 1e107c8

Browse files
docstrings
1 parent d83f167 commit 1e107c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

python/src/lazylearn/ingestion/ingestion_pipeline_steps/interpreter_step.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def categorical_test(values: list):
4747
less than 5% of the total number of values in the column.
4848
4949
:param values: list of values of any type
50-
:return: True if attr is categorical, False otherwise
50+
:return: True if column is categorical, False otherwise
5151
"""
5252
n_total = len(values)
5353
n_unique = len(set(values))
@@ -60,9 +60,12 @@ def categorical_test(values: list):
6060
@staticmethod
6161
def numeric_test(types: list):
6262
"""
63+
Tests whether a column is of numeric tyoe.
64+
This is decided as the case if all values
65+
of a column is either float or int.
6366
64-
:param types:
65-
:return:
67+
:param types: list of type objects
68+
:return: True if column is numeric, False otherwise
6669
"""
6770
return all([item == float or item == int for item in set(types)])
6871

0 commit comments

Comments
 (0)