How to find the value of a row in a csv file in python and print column and row of that value ?

0 votes
I have this csv file,

when i do a math like 61%60 = 1

Then i find that number 1 in cvs like this:

0  One  Two

a    1        3

b    2        4

and print out name of column and row of it like [A-One]

Please help me.

Thank all. Wish you a best.
Oct 15 in Python by Khanhh
• 150 points
188 views

1 answer to this question.

0 votes
Best answer

Hello @Khanhh ,
Use panda to find the value of a row in a csv file in python and print column and row of that value.
Use a for loop with two variables and iterrows one variable will give you the row number and loop through each column.

answered Oct 15 by Niroj
• 76,780 points

selected Oct 15 by Khanhh
Thank you.

I understand but i mean how can i code it

Related Questions In Python

0 votes
1 answer

How to find the value of a row in a csv file in python?

If you want to find the value ...READ MORE

answered May 20, 2019 in Python by Sanam
1,144 views
0 votes
2 answers
0 votes
1 answer

How can I find out the index of an element from row and column in Python?

You probably want to use np.ravel_multi_index: [code] import numpy ...READ MORE

answered Apr 16, 2018 in Python by charlie_brown
• 7,780 points
397 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,557 views
0 votes
0 answers
0 votes
1 answer

How to get the latest file in a folder using python?

Hello @kartik,  would suggest using glob.iglob() instead of the glob.glob(), as ...READ MORE

answered May 27 in Python by Niroj
• 76,780 points
2,193 views
0 votes
1 answer

How do I get the path and name of the file that is currently executing?

Hello @kartik, Since Python 3 is fairly mainstream, ...READ MORE

answered May 11 in Python by Niroj
• 76,780 points
168 views