Apr-04-2022, 08:00 AM
(This post was last modified: Apr-04-2022, 08:00 AM by Pedroski55.)
I don't know what your column header names are.
Either call the columns col1, col2, col3 etc., or put your column header names in here, for any columns you want to single out.
If there are no column headers, I believe Pandas will set something like col1, col2 ... but I don't really use Pandas for my little amounts of data.
Best set the names you want in row 1.
Either call the columns col1, col2, col3 etc., or put your column header names in here, for any columns you want to single out.
# get each column columns = ['col1', 'col2', 'col3'] # put your column headersThat is to say, look in row 1 of your csv and see what the names of the columns you want to get are.
If there are no column headers, I believe Pandas will set something like col1, col2 ... but I don't really use Pandas for my little amounts of data.
Best set the names you want in row 1.