@@ -48,8 +48,10 @@ from pandas._typing import (
48
48
Axes ,
49
49
Axis ,
50
50
AxisType ,
51
+ CompressionOptions ,
51
52
Dtype ,
52
53
DtypeNp ,
54
+ FilePath ,
53
55
FilePathOrBuffer ,
54
56
FilePathOrBytesBuffer ,
55
57
GroupByObjectNonScalar ,
@@ -67,8 +69,10 @@ from pandas._typing import (
67
69
Scalar ,
68
70
ScalarT ,
69
71
SeriesAxisType ,
72
+ StorageOptions ,
70
73
StrLike ,
71
74
T as TType ,
75
+ WriteBuffer ,
72
76
np_ndarray_bool ,
73
77
np_ndarray_str ,
74
78
num ,
@@ -236,15 +240,19 @@ class DataFrame(NDFrame, OpsMixin):
236
240
) -> np .recarray : ...
237
241
def to_stata (
238
242
self ,
239
- path : FilePathOrBuffer ,
240
- convert_dates : dict | None = ...,
243
+ path : FilePath | WriteBuffer [ bytes ] ,
244
+ convert_dates : dict [ Hashable , str ] | None = ...,
241
245
write_index : _bool = ...,
242
- byteorder : _str | Literal ["<" , ">" , "little" , "big" ] | None = ...,
243
- time_stamp = ...,
246
+ byteorder : Literal ["<" , ">" , "little" , "big" ] | None = ...,
247
+ time_stamp : _dt . datetime | None = ...,
244
248
data_label : _str | None = ...,
245
- variable_labels : dict | None = ...,
246
- version : int = ...,
247
- convert_strl : list [_str ] | None = ...,
249
+ variable_labels : dict [Hashable , str ] | None = ...,
250
+ version : int | None = ...,
251
+ convert_strl : list [HashableT ] | None = ...,
252
+ compression : CompressionOptions = ...,
253
+ storage_options : StorageOptions = ...,
254
+ * ,
255
+ value_labels : dict [Hashable , dict [float , str ]] | None = ...,
248
256
) -> None : ...
249
257
def to_feather (self , path : FilePathOrBuffer , ** kwargs ) -> None : ...
250
258
@overload
0 commit comments