Skip to content

Commit 335f600

Browse files
DOC: fix SA01,ES01 for pandas.io.stata.StataWriter.write_file (#60449)
1 parent fef205a commit 335f600

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
113113
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
114114
-i "pandas.infer_freq SA01" \
115115
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
116-
-i "pandas.io.stata.StataWriter.write_file SA01" \
117116
-i "pandas.plotting.andrews_curves RT03,SA01" \
118117
-i "pandas.plotting.scatter_matrix PR07,SA01" \
119118
-i "pandas.tseries.offsets.BDay PR02,SA01" \

pandas/io/stata.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,6 +2748,18 @@ def write_file(self) -> None:
27482748
"""
27492749
Export DataFrame object to Stata dta format.
27502750
2751+
This method writes the contents of a pandas DataFrame to a `.dta` file
2752+
compatible with Stata. It includes features for handling value labels,
2753+
variable types, and metadata like timestamps and data labels. The output
2754+
file can then be read and used in Stata or other compatible statistical
2755+
tools.
2756+
2757+
See Also
2758+
--------
2759+
read_stata : Read Stata file into DataFrame.
2760+
DataFrame.to_stata : Export DataFrame object to Stata dta format.
2761+
io.stata.StataWriter : A class for writing Stata binary dta files.
2762+
27512763
Examples
27522764
--------
27532765
>>> df = pd.DataFrame(

0 commit comments

Comments
 (0)