Skip to content

Commit aec10ca

Browse files
committed
[SPARK-13019] re-organize python import
1 parent f945222 commit aec10ca

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/src/main/python/mllib/correlations_example.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
from __future__ import print_function
1919

20-
from pyspark import SparkContext
2120
import numpy as np
21+
22+
from pyspark import SparkContext
2223
# $example on$
2324
from pyspark.mllib.stat import Statistics
2425
# $example off$

examples/src/main/python/mllib/hypothesis_testing_example.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
from __future__ import print_function
1919

2020
from pyspark import SparkContext
21-
from pyspark.mllib.linalg import Vectors
2221
# $example on$
23-
from pyspark import SparkContext
2422
from pyspark.mllib.linalg import Vectors, Matrices
2523
from pyspark.mllib.regression import LabeledPoint
2624
from pyspark.mllib.stat import Statistics

examples/src/main/python/mllib/summary_statistics_example.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
from __future__ import print_function
1919

20-
from pyspark import SparkContext
2120
import numpy as np
21+
22+
from pyspark import SparkContext
2223
# $example on$
2324
from pyspark.mllib.stat import Statistics
2425
# $example off$

0 commit comments

Comments
 (0)