79535845

Date: 2025-03-26 08:55:08
Score: 0.5
Natty:
Report link

Here is the answer.

df = pd.DataFrame(index=[-1, 0, 1, 2], data={'foo': [7, 85, 14, 5]})

for index, value in df['foo'].items():
    print(index, value)

The output is below.

-1   7
 0  85
 1  14
 2   5
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: GH KIM