python - How can I catch a pandas DataError? -
python - How can I catch a pandas DataError? -
i have since fixed bug caused dataerror, can not life of me figure out how grab explicitly:
try: df["my column"] = df.baddata + df.morebaddata except dataerror: print "caught error!"
gives: nameerror: name 'dataerror' not defined
then tried pd.core.frame.dataerror
, received attributeerror
. tried googling not find list of pandas error types. right path dataerror
?
python pandas error-handling
Comments
Post a Comment