I have output file like this from a pandas function. I’m trying to get an output with just the second column, i.e., by deleting top and bottom rows, first column. How do I do that? Answer You want just the .values attribute: You can convert to a list or access each value: