title: Pig: Group by ranges/ binning data
body: <p>I have a set of integer values that I would like to group into a bunch of bins.</p>
  
  <p>Example:  Say I have a thousand points between 1 and 1000, and I want to do 20 bins.  </p>
  
  <p>Is there anyway to group them into a bin/array?  </p>
  
  <p>Also, I will not know ahead of time how wide the range will be, so I can't hardcode any specific values.  </p>