Get table column names with iterrows | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Get table column names with iterrows

I am in a fix on how to get this done. I querry data from SQL, I want to use the data to make a pdf in reportlab. The pdf comes without the column names. How can I make the pdf have the column names. This is what I want... SUBJ A A- B+ B B- C+ C C- D+ D D- E X Z TOTAL MEAN GRD EAGLE 0 0 0 0 2 2 1 4 5 11 15 7 0 0 47 3.1064 D HAWK 0 0 0 0 1 0 3 3 4 7 17 11 0 0 46 2.6739 D TOTAL 0 0 0 0 3 2 4 7 9 18 32 18 0 0 93 2.8925 D

9th Jun 2020, 1:07 PM
Ptar*
Ptar* - avatar
1 Answer
+ 5
Without having seen the complete code it is very difficult to get the problem(s). Can you please put it in playground and link it here? Thanks!
9th Jun 2020, 4:09 PM
Lothar
Lothar - avatar