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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -