How to get the value of a column in a CSV in Python

Posted on: February 26th, 2023
By: Tadeo Martinez

You have to access by adding .item() once you’ve located the specific row and column you want

letter_a = nato_alphabet[nato_alphabet['letter'] == 'A'].code.item()

Have any questions or comments? Write them below!

Leave a Reply

Your email address will not be published. Required fields are marked *