2

I have an Ibis table named t. Its column names are all lowercase. I want to change them all to uppercase. How can I do that?

ianmcook
  • 537
  • 4
  • 10

1 Answers1

2

The relabel method of Ibis table objects renames columns. It can be used to make all the column names uppercase like this:

t = t.relabel(dict(zip(t.columns, [x.upper() for x in t.columns])))
ianmcook
  • 537
  • 4
  • 10