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, 2020 in Python by Khanhh
• 150 points
6,234 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, 2020 by Niroj
• 82,880 points

selected Oct 15, 2020 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
18,567 views
–1 vote
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,720 points
2,035 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,061 views
0 votes
1 answer
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, 2020 in Python by Niroj
• 82,880 points
10,994 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, 2020 in Python by Niroj
• 82,880 points
2,325 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP