print df.shape[1] # Show dimension of thecolumns print range(df.shape[1]) # Show range of the columns df.columns = range(df.shape[1]) # Delete headers