Skip to content

FIX: Enable fixed width strings to be read from Stata 13 (117) files #7450

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 2 commits into from
Jun 16, 2014

Conversation

bashtage
Copy link
Contributor

Fixes a bug which prevented files containing fixed width string data from being read. Stata 13 files also allow variable length strings, which are not supported in the current version, and an explicit exception regarding this type is now given. Added tests which cover these cases, and Stata 13 format files.

fixes #7360

@jreback jreback added this to the 0.14.1 milestone Jun 13, 2014
bashtage added 2 commits June 15, 2014 00:17
Fixes a bug which prevented files containing fixed width string data from being read.  Stata 13 files also allow variable length strings, which are not supported in the current version, and an explicit exception regarding this type is now given.  Added tests which cover these cases, and Stata 13 format files. fixes pandas-dev#7360
The encoding was not used when writing strings. Fixes pandas-dev#7286
@bashtage
Copy link
Contributor Author

I think this fix is ready - it is a bit ugly due to some existing PY3 compatibility code that probably has string encoding in the wrong place, but it is working.

jreback added a commit that referenced this pull request Jun 16, 2014
FIX: Enable fixed width strings to be read from Stata 13 (117) files
@jreback jreback merged commit a367e9b into pandas-dev:master Jun 16, 2014
@jreback
Copy link
Contributor

jreback commented Jun 16, 2014

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO Stata read_stata, to_stata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to import Stata 13 database files with read_stata()
2 participants