Increment numbers in a string for several iterations
0
0
Entering edit mode
4.5 years ago
JulianC ▴ 30

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 • 626 views
ADD COMMENT
0
Entering edit mode

what is that code ? what is that language ? what are those files ? what is the context ? how is it related to bioinformatics ? [ Please read before posting a question ] -- How To Ask A Good Question

ADD REPLY

Login before adding your answer.

Traffic: 2891 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6