Skip to content

Commit

Permalink
[SPARK-13814] [PYSPARK] Delete unnecessary imports in python examples…
Browse files Browse the repository at this point in the history
… files

JIRA:  https://issues.apache.org/jira/browse/SPARK-13814

## What changes were proposed in this pull request?

delete unnecessary imports in python examples files

## How was this patch tested?

manual tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes apache#11651 from zhengruifeng/del_import_pe.
  • Loading branch information
zhengruifeng authored and roygao94 committed Mar 22, 2016
1 parent 3050c55 commit 63b1928
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions examples/src/main/python/ml/als_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
from pyspark.sql import SQLContext

# $example on$
import math

from pyspark.ml.evaluation import RegressionEvaluator
from pyspark.ml.recommendation import ALS
from pyspark.sql import Row
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

# $example on$
from pyspark import SparkContext, SQLContext
from pyspark.ml import Pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext, SQLContext
# $example on$
from pyspark.ml import Pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext, SQLContext
# $example on$
from pyspark.ml import Pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext, SQLContext
# $example on$
from pyspark.ml import Pipeline
Expand Down
1 change: 0 additions & 1 deletion examples/src/main/python/ml/kmeans_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from __future__ import print_function

import sys
import re

import numpy as np
from pyspark import SparkContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext, SQLContext
# $example on$
from pyspark.ml import Pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext, SQLContext
# $example on$
from pyspark.ml import Pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
Binary Classification Metrics Example.
"""
from __future__ import print_function
import sys
from pyspark import SparkContext, SQLContext
# $example on$
from pyspark.mllib.classification import LogisticRegressionWithLBFGS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext
# $example on$
from pyspark.mllib.tree import GradientBoostedTrees, GradientBoostedTreesModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext
# $example on$
from pyspark.mllib.tree import GradientBoostedTrees, GradientBoostedTreesModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext
# $example on$
from pyspark.mllib.tree import RandomForest, RandomForestModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext
# $example on$
from pyspark.mllib.tree import RandomForest, RandomForestModel
Expand Down
2 changes: 0 additions & 2 deletions examples/src/main/python/mllib/recommendation_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
from __future__ import print_function

import sys

from pyspark import SparkContext

# $example on$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"""
from __future__ import print_function

import os
import sys

from pyspark import SparkContext
Expand Down

0 comments on commit 63b1928

Please sign in to comment.