Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas iterate over a series

>>> s = pd.Series(['A', 'B', 'C'])
>>> for index, value in s.items():
...     print(f"Index : {index}, Value : {value}")

Index : 0, Value : A
Index : 1, Value : B
Index : 2, Value : C
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #iterate #series
ADD COMMENT
Topic
Name
1+6 =