I've looked around but can't find an exact solution, though it should be easily accomplished task:
I have a DataFrame and I just want to move one of the columns to the front. How do I do this without having to pass the columns to a list, or is there currently no way around that?
Input:
1  2  3  4 
 C  C  C  C
 G  N  D  A
 K  M  I  L
 C  C  L  C
 G  N  D  A
 Y  F  V  H
 G  N  D  A
 G  Y  D  A
Expected output:
4  1  2  3 
C  C  C  C
A  G  N  D
L  K  M  I
C  C  C  L
A  G  N  D
H  Y  F  V
A  G  N  D
A  G  Y  D
 
    