title: Pandas groupby object back to a data frame
body: <p>So I'm trying to split a pandas Dataframe into two separate data frames by a single binary variable. Accordingly, the groupby function seems a decent option except it doesn't return a data frame but rather a groupby object which isn't nearly as useful to me. Moreover, I can't access any values from within the groupby object. I ran a simple df.groupby('Type') statement and would like to partition the data from here meaning output those two groups to two new data frames. Any help would be sincerely appreciated. The last question I posted was met with ridiculously childish admonitions not to post homework questions. Needless to say, this as well as the aforementioned were/are NOT homework so please spare me of such remarks. As always thanks so much. </p>