Skip to content

Add support for reading Stata .dta file format 119 #28250

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

Closed
chrisyeh96 opened this issue Sep 2, 2019 · 7 comments · Fixed by #28542
Closed

Add support for reading Stata .dta file format 119 #28250

chrisyeh96 opened this issue Sep 2, 2019 · 7 comments · Fixed by #28542
Labels
IO Stata read_stata, to_stata
Milestone

Comments

@chrisyeh96
Copy link
Contributor

Please add functionality to read format 119 .dta Stata files! See file format here: https://www.stata.com/help.cgi?dta#versions

Currently, even though Pandas can write format 119 files (

dta version. Currently supports 117, 118 and 119
), it seems unable to read format 119 files (
_version_error = (
"Version of given Stata file is not 104, 105, 108, "
"111 (Stata 7SE), 113 (Stata 8/9), 114 (Stata 10/11), "
"115 (Stata 12), 117 (Stata 13), or 118 (Stata 14)"
)
).

@chrisyeh96 chrisyeh96 changed the title Add support for Stata .dta file format 119 Add support for reading Stata .dta file format 119 Sep 2, 2019
@TomAugspurger
Copy link
Contributor

Do we support writing 119? We raise when trying to use version=119 from DataFrame.to_stata` cc @bashtage

@bashtage
Copy link
Contributor

bashtage commented Sep 3, 2019

No support for 119.

@bashtage
Copy link
Contributor

bashtage commented Sep 3, 2019

I don't think writing for 119 has been implemented either, unless there have been some commits I haven't seen.

@bashtage
Copy link
Contributor

bashtage commented Sep 3, 2019

dta version. Currently supports 117, 118 and 119

Is only a comment about the StrL formatting, which was forward compat. The actual writer is not.

@TomAugspurger
Copy link
Contributor

OK, that's my understanding too.

We'll keep this open as a general "support Stata 119" issue.

@chrisyeh96 are you interested in working on it? Even just sketching out what needs to be done would be helpful.

@TomAugspurger TomAugspurger added this to the Contributions Welcome milestone Sep 3, 2019
@TomAugspurger TomAugspurger added the IO Stata read_stata, to_stata label Sep 3, 2019
@chrisyeh96
Copy link
Contributor Author

As much as I would love to contribute, unfortunately I won't have time for the next couple of months. I think it's probably better if someone else who actually has experience working with Stata file formats (I have zero experience on this matter) gives this a shot.

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Sep 4, 2019 via email

@jreback jreback modified the milestones: Contributions Welcome, 1.0 Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Stata read_stata, to_stata
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants