Skip to content

Commit b114bad

Browse files
committed
ENH: Update exception message to resolve #10515
1 parent bbec57d commit b114bad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/parser.pyx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,8 @@ cdef class TextReader:
10741074
na_filter, na_hashset)
10751075
if user_dtype and na_count is not None:
10761076
if na_count > 0:
1077-
raise Exception('Integer column has NA values')
1077+
raise Exception("Integer column has NA values in "
1078+
"column {column}".format(column=i))
10781079

10791080
if result is not None and dtype[1:] != 'i8':
10801081
result = result.astype(dtype)

0 commit comments

Comments
 (0)