1

I have excell file and I used table = pd.read_excel('file.xlsx') in python. I really can not figure it out how to get concrete content o cell - it must be so simple!

I want to write something like table['orange]['addr'] and I want to get 0x8080004 or table['banana']['value'] and get 12

enter image description here

1 Answer 1

2

You can do set_index

table = table.set_index('name')

Then you can do your slice with loc

table.loc['orange','addr']
'0x8080004'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.