File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -775,7 +775,8 @@ def style(self):
775
775
Iterates over the DataFrame columns, returning a tuple with
776
776
the column name and the content as a Series.
777
777
778
- %s
778
+ Yields
779
+ ------
779
780
label : object
780
781
The column names for the DataFrame being iterated over.
781
782
content : Series
@@ -816,7 +817,7 @@ def style(self):
816
817
Name: population, dtype: int64
817
818
"""
818
819
819
- @Appender (_shared_docs ["items" ] % "Yields \n ------" )
820
+ @Appender (_shared_docs ["items" ])
820
821
def items (self ):
821
822
if self .columns .is_unique and hasattr (self , "_item_cache" ):
822
823
for k in self .columns :
@@ -825,9 +826,9 @@ def items(self):
825
826
for i , k in enumerate (self .columns ):
826
827
yield k , self ._ixs (i , axis = 1 )
827
828
828
- @Appender (_shared_docs ["items" ] % "Returns \n -------" )
829
+ @Appender (_shared_docs ["items" ])
829
830
def iteritems (self ):
830
- return self .items ()
831
+ yield from self .items ()
831
832
832
833
def iterrows (self ):
833
834
"""
You can’t perform that action at this time.
0 commit comments