Skip to content

Commit e5dc064

Browse files
DOC: fix RT03,SA01,ES01 for pandas.io.stata.StataReader.value_labels (#59991)
1 parent 2d9c95d commit e5dc064

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
174174
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
175175
-i "pandas.infer_freq SA01" \
176176
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
177-
-i "pandas.io.stata.StataReader.value_labels RT03,SA01" \
178177
-i "pandas.io.stata.StataReader.variable_labels RT03,SA01" \
179178
-i "pandas.io.stata.StataWriter.write_file SA01" \
180179
-i "pandas.json_normalize RT03,SA01" \

pandas/io/stata.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,9 +2076,19 @@ def value_labels(self) -> dict[str, dict[int, str]]:
20762076
"""
20772077
Return a nested dict associating each variable name to its value and label.
20782078
2079+
This method retrieves the value labels from a Stata file. Value labels are
2080+
mappings between the coded values and their corresponding descriptive labels
2081+
in a Stata dataset.
2082+
20792083
Returns
20802084
-------
20812085
dict
2086+
A python dictionary.
2087+
2088+
See Also
2089+
--------
2090+
read_stata : Read Stata file into DataFrame.
2091+
DataFrame.to_stata : Export DataFrame object to Stata dta format.
20822092
20832093
Examples
20842094
--------

0 commit comments

Comments
 (0)