From e51a64b1ee1c3cb6f2f861e1b3d480976311a2d2 Mon Sep 17 00:00:00 2001 From: Mustafa Bal Date: Wed, 13 Nov 2019 13:45:32 -0800 Subject: [PATCH] Removed unnecessary invoking of .sum() --- .../tests/feature_extraction/text/test_ngramfeaturizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/nimbusml/tests/feature_extraction/text/test_ngramfeaturizer.py b/src/python/nimbusml/tests/feature_extraction/text/test_ngramfeaturizer.py index 2f3ddd9a..daf60bb0 100644 --- a/src/python/nimbusml/tests/feature_extraction/text/test_ngramfeaturizer.py +++ b/src/python/nimbusml/tests/feature_extraction/text/test_ngramfeaturizer.py @@ -34,7 +34,7 @@ def test_ngramfeaturizer(self): word_feature_extractor=n_gram(), vector_normalizer='None') << 'SentimentText' X_train = texttransform.fit_transform(X_train[:100]) - sum = X_train.iloc[:].sum().sum() + sum = X_train.iloc[:].sum() print(sum) assert_equal(sum, 30513, "sum of all features is incorrect!")