General Social Survey

norc.org-gss-2021-1.1.1 Last Update: 2023-03-04T17:10:44

General Social Survey collects information and keeps a historical record of the concerns, experiences, attitudes, and practices of residents of the United States.

Caveats

This package is an extract meant for a specific workflow. For general analysis, you should almost certainly use an extract generated from the GSS website.

Using the Data Files

The variables in this package are almost entirely categorical, but the data is stored with codes, with the categorical labels stored seperately in the _labels reference. When opening the file with Metapack, the convert_categorical argument ( which defaults to True ) controls converting the codes to labels.

pkg.resource('gss_2021').dataframe(convert_categorical=True)

Because the default is True this should happen automatically when using .dataframe, but it is good to know what is happening behind the scenes.

Documentation Links

Contacts

Resources

References