📜  for loop pandas range - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:12.902000             🧑  作者: Mango

代码示例1
for i in range(5):
    b = current_tracks.rel_values.iloc[i] # by standard 0-based sequence index
or

for i in range(1, 6):
    b = current_tracks.rel_values.loc[i] # by 1-based track number