Skip to content

Commit

Permalink
remove = for float
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Nov 19, 2014
1 parent 13f7b05 commit ee17d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/rddsampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def func(self, split, iterator):
yield obj
else:
for obj in iterator:
if self.getUniformSample() <= self._fraction:
if self.getUniformSample() < self._fraction:
yield obj


Expand Down Expand Up @@ -106,5 +106,5 @@ def func(self, split, iterator):
yield key, val
else:
for key, val in iterator:
if self.getUniformSample() <= self._fractions[key]:
if self.getUniformSample() < self._fractions[key]:
yield key, val

0 comments on commit ee17d78

Please sign in to comment.