File tree 3 files changed +4
-25
lines changed
3 files changed +4
-25
lines changed Original file line number Diff line number Diff line change 206
206
format as fmt ,
207
207
)
208
208
from pandas .io .formats .info import (
209
+ INFO_DOCSTRING ,
209
210
DataFrameInfo ,
210
211
frame_sub_kwargs ,
211
212
)
@@ -3138,7 +3139,7 @@ def to_xml(
3138
3139
return xml_formatter .write_output ()
3139
3140
3140
3141
# ----------------------------------------------------------------------
3141
- @doc (DataFrameInfo . render , ** frame_sub_kwargs )
3142
+ @doc (INFO_DOCSTRING , ** frame_sub_kwargs )
3142
3143
def info (
3143
3144
self ,
3144
3145
verbose : bool | None = None ,
Original file line number Diff line number Diff line change 140
140
141
141
import pandas .io .formats .format as fmt
142
142
from pandas .io .formats .info import (
143
+ INFO_DOCSTRING ,
143
144
SeriesInfo ,
144
145
series_sub_kwargs ,
145
146
)
@@ -4918,7 +4919,7 @@ def replace(
4918
4919
method = method ,
4919
4920
)
4920
4921
4921
- @doc (SeriesInfo . render , ** series_sub_kwargs )
4922
+ @doc (INFO_DOCSTRING , ** series_sub_kwargs )
4922
4923
def info (
4923
4924
self ,
4924
4925
verbose : bool | None = None ,
Original file line number Diff line number Diff line change 20
20
Dtype ,
21
21
WriteBuffer ,
22
22
)
23
- from pandas .util ._decorators import doc
24
23
25
24
from pandas .core .indexes .api import Index
26
25
@@ -509,17 +508,6 @@ def memory_usage_bytes(self) -> int:
509
508
deep = False
510
509
return self .data .memory_usage (index = True , deep = deep ).sum ()
511
510
512
- @doc (
513
- INFO_DOCSTRING ,
514
- klass = "DataFrame" ,
515
- type_sub = " and columns" ,
516
- max_cols_sub = frame_max_cols_sub ,
517
- show_counts_sub = show_counts_sub ,
518
- null_counts_sub = null_counts_sub ,
519
- examples_sub = frame_examples_sub ,
520
- see_also_sub = frame_see_also_sub ,
521
- version_added_sub = "" ,
522
- )
523
511
def render (
524
512
self ,
525
513
* ,
@@ -550,17 +538,6 @@ def __init__(
550
538
self .data : Series = data
551
539
self .memory_usage = _initialize_memory_usage (memory_usage )
552
540
553
- @doc (
554
- INFO_DOCSTRING ,
555
- klass = "Series" ,
556
- type_sub = "" ,
557
- max_cols_sub = "" ,
558
- show_counts_sub = show_counts_sub ,
559
- null_counts_sub = "" ,
560
- examples_sub = series_examples_sub ,
561
- see_also_sub = series_see_also_sub ,
562
- version_added_sub = "\n .. versionadded:: 1.4.0\n " ,
563
- )
564
541
def render (
565
542
self ,
566
543
* ,
You can’t perform that action at this time.
0 commit comments