Skip to content
Snippets Groups Projects
Commit 4530250f authored by Zheng RuiFeng's avatar Zheng RuiFeng Committed by Davies Liu
Browse files

[MINOR] Add python3 compatibility in python examples

## What changes were proposed in this pull request?
Add python3 compatibility in python examples

## How was this patch tested?
manual tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes #12868 from zhengruifeng/fix_gmm_py.
parent b85d21fb
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,10 @@
from __future__ import print_function
import sys
if sys.version >= '3':
long = int
from pyspark import SparkContext
from pyspark.sql import SQLContext
......
......@@ -20,6 +20,10 @@ A Gaussian Mixture Model clustering program using MLlib.
"""
from __future__ import print_function
import sys
if sys.version >= '3':
long = int
import random
import argparse
import numpy as np
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment