You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2021/08/26 00:55:16 UTC

[spark] branch branch-3.2 updated: [MINOR][3.2] Remove unused `numpy` import

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new d841679  [MINOR][3.2] Remove unused `numpy` import
d841679 is described below

commit d841679ecce180d20090b8e15c129741a6175f87
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Thu Aug 26 09:52:54 2021 +0900

    [MINOR][3.2] Remove unused `numpy` import
    
    ### What changes were proposed in this pull request?
    
    This fixed Python linter failure.
    
    ### Why are the changes needed?
    
    ```
    flake8 checks failed:
    ./python/pyspark/ml/tests/test_tuning.py:21:1: F401 'numpy as np' imported but unused
    import numpy as np
    F401 'numpy as np' imported but unused
    Error: Process completed with exit code 1.
    ```
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the GitHub Action Linter job.
    
    Closes #33841 from dongjoon-hyun/unused_import.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
 python/pyspark/ml/tests/test_tuning.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/python/pyspark/ml/tests/test_tuning.py b/python/pyspark/ml/tests/test_tuning.py
index c685dcc..3cde34f 100644
--- a/python/pyspark/ml/tests/test_tuning.py
+++ b/python/pyspark/ml/tests/test_tuning.py
@@ -18,7 +18,6 @@
 import tempfile
 import unittest
 
-import numpy as np
 from pyspark.ml.feature import HashingTF, Tokenizer
 from pyspark.ml import Estimator, Pipeline, Model
 from pyspark.ml.classification import LogisticRegression, LogisticRegressionModel, OneVsRest

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org