Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added underscore to getBucket
  • Loading branch information
dwmclary committed Mar 12, 2014
commit 1e7056db8a9ce0364e46ad0e269bc1de9f9925f4
4 changes: 2 additions & 2 deletions python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def sampleVariance(self):
"""
return self.stats().sampleVariance()

def getBuckets(self, bucketCount):
def _getBuckets(self, bucketCount):
#use the statscounter as a quick way of getting max and min
mm_stats = self.stats()
min = mm_stats.min()
Expand All @@ -637,7 +637,7 @@ def histogram(self, bucketCount, buckets=None):
max = float("inf")
evenBuckets = False
if not buckets:
b = self.getBuckets(bucketCount)
b = self._getBuckets(bucketCount)
buckets = b["buckets"]
min = b["min"]
max = b["max"]
Expand Down