Skip to content

ENH: Add a Parser to read fixed-width ASCII data using a data description file or dictionary file #7030

Closed
@AllenDowney

Description

@AllenDowney

As an example, I would like to be able to read a dataset like this one:

http://www.cdc.gov/nchs/nsfg/nsfg_cycle6.htm

The data files themselves are ASCII with fixed-width fields. The variables names, types, and indices are in a separate data description file, available for SAS, SPSS and STATA. I would like to add a parser that reads at least one of these description files and then parses the data file. Since two files are used, it might require changes in the Parser API.

I am happy to write a parser that reads the dictionary file and then the data file. I could use help with either setting up the new parser ahead of time or (after the fact) integrating my code with the existing structure.

Also, is there a preference for the SAS, SPSS, or Stata format?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions