Skip to content

agg() swallows exceptions. #3238

@blais

Description

@blais

agg() appears to swallow exceptions.
This was the source of a hard-to-find bug today.
Here's a program that replicates the problem.

#!/usr/bin/env python                                                                                                                                                                                                                         
from pandas import *
from numpy.random import randint

df = DataFrame(randint(10, size=(20, 10)))

def raiseException(df):
  print '----------------------------------------'
  print df.to_string()
  raise TypeError

df.groupby(0).agg(raiseException)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions