After extracting tables from a PDF using tabulizer
, my table looks like:
A | King | Blue |
---|---|---|
D | Queen | Red |
T | Prince | Black |
I want to move the variable names down as observations and replace them with a vector of strings with the actual column names:
letter | rank | colour |
---|---|---|
A | King | Blue |
D | Queen | Red |
T | Prince | Black |