Skip to content

Commit

Permalink
DOC: fix SA01,ES01 for pandas.io.stata.StataWriter.write_file (#60449)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Dec 2, 2024
1 parent fef205a commit 335f600
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
-i "pandas.infer_freq SA01" \
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
-i "pandas.io.stata.StataWriter.write_file SA01" \
-i "pandas.plotting.andrews_curves RT03,SA01" \
-i "pandas.plotting.scatter_matrix PR07,SA01" \
-i "pandas.tseries.offsets.BDay PR02,SA01" \
Expand Down
12 changes: 12 additions & 0 deletions pandas/io/stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2748,6 +2748,18 @@ def write_file(self) -> None:
"""
Export DataFrame object to Stata dta format.
This method writes the contents of a pandas DataFrame to a `.dta` file
compatible with Stata. It includes features for handling value labels,
variable types, and metadata like timestamps and data labels. The output
file can then be read and used in Stata or other compatible statistical
tools.
See Also
--------
read_stata : Read Stata file into DataFrame.
DataFrame.to_stata : Export DataFrame object to Stata dta format.
io.stata.StataWriter : A class for writing Stata binary dta files.
Examples
--------
>>> df = pd.DataFrame(
Expand Down

0 comments on commit 335f600

Please sign in to comment.