I was reading an article and I came across this below-given piece of code. I ran it and it worked for me:
x = df.columns x_labels = [v for v in sorted(x.uniqu