Skip to content

DOC: Add caveat to to_stata with version=119 #37700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

hongshaoyang
Copy link
Contributor

Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM cc @bashtage

@@ -2129,7 +2129,7 @@ def to_stata(
characters or fewer while versions 117 and later allow strings
with lengths up to 2,000,000 characters. Versions 118 and 119
support Unicode characters, and version 119 supports more than
32,767 variables.
Copy link
Contributor

@bashtage bashtage Nov 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't say "for now". Something along the lines of

"Version 119 should usually only be used when the number of variables exceeds the capacity of dta format 118. Exporting smaller datasets in format 119 may have unintended consequences, and, as of November 2020, Stata SE cannot read version 119 files. "

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks,

I copied your suggestion verbatim.

@jreback jreback added the IO Stata read_stata, to_stata label Nov 9, 2020
@jreback jreback added this to the 1.2 milestone Nov 9, 2020
@jreback jreback added the Docs label Nov 9, 2020
@bashtage
Copy link
Contributor

bashtage commented Nov 9, 2020

LGTM.

@jreback jreback merged commit bdf6434 into pandas-dev:master Nov 10, 2020
@jreback
Copy link
Contributor

jreback commented Nov 10, 2020

thanks @hongshaoyang

@hongshaoyang hongshaoyang deleted the 37490-docstata branch November 10, 2020 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs IO Stata read_stata, to_stata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: File saved with to_stata and version=119 cannot be opened with STATA 15.1 SE
4 participants