sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28178
[Question #254347]: Fetching of data from csv file
New question #254347 on Sikuli:
https://answers.launchpad.net/sikuli/+question/254347
Hope you guys doing well!!!!
say my csv is like this :
name, anurag , rajeev, bhaskar, rhonda
age, 23,24,25,28
marks, 23, 45,67,76
out = open("c:\\temp1\\et.csv","rb")
data = csv.reader(out)
data=[row[1] for row in data]
print(data[0])
print(data[1])
print(data[2])
Now i have to call row value like anurag from name , 23 age and 23 from marks individually like 'anurag' at specific location in script and i am able to do so easliy by calling data[0], data[1], data[2]
but now i have to call rajeev, 24, 45 and use in script at same location where i used the value of first ones.
means i have to repeat steps of my script after the successful completion using values of row 1(anurag,23,23 at their respective location like anurag at their location and 23 at their and 23 at their) and then it use value of row 2 and then row 3
hope you got my question !!!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.