Calling a row of a table in python

403 Views Asked by At

I extracted a table from python using tabula and have the table printed. I named the table 'test' so when I use ptint(test) it returns the table:

Year Last First
2001 Doe Jane
2003 Smith John
2008 Ludlow Edward
2020 Peterson Andrew

Where Jane Doe is row 0 and Andrew Peterson is row 3. Instead of printing the whole table, can I just print the row with John Smith? Can I also print just the column with the first names?

Thank you!

0

There are 0 best solutions below