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
113
113
-i " pandas.errors.ValueLabelTypeMismatch SA01" \
114
114
-i " pandas.infer_freq SA01" \
115
115
-i " pandas.io.json.build_table_schema PR07,RT03,SA01" \
116
- -i " pandas.io.stata.StataWriter.write_file SA01" \
117
116
-i " pandas.plotting.andrews_curves RT03,SA01" \
118
117
-i " pandas.plotting.scatter_matrix PR07,SA01" \
119
118
-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:
2748
2748
"""
2749
2749
Export DataFrame object to Stata dta format.
2750
2750
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
+
2751
2763
Examples
2752
2764
--------
2753
2765
>>> df = pd.DataFrame(
You can’t perform that action at this time.
0 commit comments