wesm/pandas — Issue #614: Indicate index of rows for which an apply() statement fails
Author: hammer
Created: 2012-01-12 03:01:29+00:00
State: open

I'm writing some code to transform a column of my data frame. I expect all string values in this column, and I'm using x.startswith() on the column contents as part of the transformation logic. When I try to apply this transformation to each column in the data frame using df.apply(), the transformation is failing, claiming that it's trying to look up the startswith attribute on a float object. It would be useful for me to know on which row this transformation is failing; could that information be added to the traceback?