title: grouped data analysis in python with pandas
body: <p>I have a large dataframe. One of the columns is time (just integers representing seconds). I would like to do a groupBy where each group represents say 2 seconds of data. Doing this would allow me to use the std or mean functions on all of the groups with one line of code. The goal is to be able to throw out time increments of data that don't meet a certain criteria. the following pseudo code hopefully represents what I want to do. Please excuse the crudeness as i'm pretty new to pandas. </p>
  
  <pre><code> grouped = df.groupBy(df['time'])  #grouped for say 2 second increments. 
   groupStd = grouped.std()
   df.drop( items in group where groupStd&gt; val)
   convert back to dataframe after the rows have been removed. 
  </code></pre>
  
  <p>If someone could help me fill in the blanks that would be extremely helpful. Thank you!</p>