@@ -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 ,
@@ -61,12 +63,15 @@ from pandas._typing import (
61
63
Label ,
62
64
Level ,
63
65
MaskType ,
66
+ ReadBuffer ,
64
67
Renamer ,
65
68
Scalar ,
66
69
ScalarT ,
67
70
SeriesAxisType ,
71
+ StorageOptions ,
68
72
StrLike ,
69
73
T as TType ,
74
+ WriteBuffer ,
70
75
np_ndarray_bool ,
71
76
np_ndarray_str ,
72
77
num ,
@@ -332,6 +337,25 @@ class DataFrame(NDFrame, OpsMixin):
332
337
render_links : _bool = ...,
333
338
encoding : _str | None = ...,
334
339
) -> _str : ...
340
+ def to_xml (
341
+ self ,
342
+ path_or_buffer : FilePath | WriteBuffer [bytes ] | WriteBuffer [str ] | None = ...,
343
+ index : bool = ...,
344
+ root_name : str | None = ...,
345
+ row_name : str | None = ...,
346
+ na_rep : str | None = ...,
347
+ attr_cols : list [str ] | None = ...,
348
+ elem_cols : list [str ] | None = ...,
349
+ namespaces : dict [str | None , str ] | None = ...,
350
+ prefix : str | None = ...,
351
+ encoding : str = ...,
352
+ xml_declaration : bool | None = ...,
353
+ pretty_print : bool | None = ...,
354
+ parser : str | None = ...,
355
+ stylesheet : FilePath | ReadBuffer [str ] | ReadBuffer [bytes ] | None = ...,
356
+ compression : CompressionOptions = ...,
357
+ storage_options : StorageOptions = ...,
358
+ ) -> str | None : ...
335
359
def info (
336
360
self , verbose = ..., buf = ..., max_cols = ..., memory_usage = ..., null_counts = ...
337
361
) -> None : ...
0 commit comments