Skip to content

Commit eb19fe9

Browse files
jtkileyjreback
authored andcommitted
More helpful Stata string length error. (pandas-dev#23629)
1 parent a5127b1 commit eb19fe9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/stata.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,8 @@ def parse_dates_safe(dates, delta=False, year=False, days=False):
461461

462462
excessive_string_length_error = """
463463
Fixed width strings in Stata .dta files are limited to 244 (or fewer)
464-
characters. Column '%s' does not satisfy this restriction.
464+
characters. Column '%s' does not satisfy this restriction. Use the
465+
'version=117' parameter to write the newer (Stata 13 and later) format.
465466
"""
466467

467468

0 commit comments

Comments
 (0)