File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff 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" \
Original file line number Diff line number Diff 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(
You can’t perform that action at this time.
0 commit comments