From b114bad68b8f83e7f157016618408ae6a4623b6a Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Thu, 9 Jul 2015 19:52:45 -0700 Subject: [PATCH] ENH: Update exception message to resolve #10515 --- pandas/parser.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/parser.pyx b/pandas/parser.pyx index b28e0587264d4..5baef2e4f0225 100644 --- a/pandas/parser.pyx +++ b/pandas/parser.pyx @@ -1074,7 +1074,8 @@ cdef class TextReader: na_filter, na_hashset) if user_dtype and na_count is not None: if na_count > 0: - raise Exception('Integer column has NA values') + raise Exception("Integer column has NA values in " + "column {column}".format(column=i)) if result is not None and dtype[1:] != 'i8': result = result.astype(dtype)