pandas 1.4.2

NotesParameters

Stata StrLs map 8 byte values to strings which are stored using a dictionary-like format where strings are keyed to two values.

Notes

Supports creation of the StrL block of a dta file for dta versions 117, 118 and 119. These differ in how the GSO is stored. 118 and 119 store the GSO lookup value as a uint32 and a uint64, while 117 uses two uint32s. 118 and 119 also encode all strings as unicode which is required by the format. 117 uses 'latin-1' a fixed width encoding that extends the 7-bit ascii table with an additional 128 characters.

Parameters

df : DataFrame

DataFrame to convert

columns : Sequence[str]

List of columns names to convert to StrL

version : int, optional

dta version. Currently supports 117, 118 and 119

byteorder : str, optional

Can be ">", "<", "little", or "big". default is :None:None:`sys.byteorder`

Converter for Stata StrLs

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/io/stata.py#2910
type: <class 'type'>
Commit: