4

I have an xlsx file having about 100 columns. When I use df.columns function then it display some of the first and some last columns but not all of them. I want to display(print) all of the column name (headings) though for loop. How can I do it?

Khan
  • 95
  • 1
  • 8

1 Answers1

2
for col in df.columns:
    print(col)
bb1
  • 7,174
  • 2
  • 8
  • 23