I have the following DataFrame (df):
DataFrame
df
import numpy as np import pandas as pd df = pd.DataFrame(np.random.rand(10, 5))
Here's a way to move one existing column that will modify the existing data frame in place.
my_column = df.pop('column name') df.insert(3, my_column.name, my_column)