Skip to content

Commit

Permalink
More helpful Stata string length error. (pandas-dev#23629)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkiley authored and JustinZhengBC committed Nov 14, 2018
1 parent 3b87703 commit 999ef43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/io/stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ def parse_dates_safe(dates, delta=False, year=False, days=False):

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


Expand Down

0 comments on commit 999ef43

Please sign in to comment.