File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
python/src/lazylearn/ingestion/ingestion_pipeline_steps Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments