This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Increment numbers in a string for several iterations

Hi!

I am trying to extract specific data from different files. my code is:

f1 = df1.loc[df1["ID"] == var1]
f1 = df2.loc[df2["ID"] == var1]
f1 = df3.loc[df3["ID"] == var1]
f1 = dfn.loc[dfn["ID"] == var1]

So I would like to iterate this code till df200, but the remaining part of the code should remain the same. The code is written in Python3 Do you have some ideas? Thank you!

software error

0 answers

No answers yet.

Log in to answer this question.