apply function to groupby-ed dataframe, can't take args
TypeError: getTrans12() got an unexpected keyword argument 'args'
File "d:\Scripts\new model parameters\genNewParametersFromDb.py", line 99, in <module>
  df.groupby(['pooltype1','CollType','ltv_buc', 'ltv']).apply(getTrans12,args=(6,)),
File "C:\Anaconda\Lib\site-packages\pandas\core\groupby.py", line 331, in apply
  return self._python_apply_general(f)
File "C:\Anaconda\Lib\site-packages\pandas\core\groupby.py", line 378, in _python_apply_general
  keys, values, mutated = self.grouper.apply(f, self.obj, self.axis)
File "C:\Anaconda\Lib\site-packages\pandas\core\groupby.py", line 674, in apply
  res = f(group)
File "C:\Anaconda\Lib\site-packages\pandas\core\groupby.py", line 330, in <lambda>
  f = lambda g: func(g, _args, *_kwargs)

modified a little bit and it works...

```
def xapply(self, func, args=(), **kwargs):

    func = _intercept_function(func)
    if args:
        f = lambda g: func(g, *args, **kwargs)
    else:
        f = func        
    return self._python_apply_general(f)
```
