import pandas as pd import numpy as np df = pd.DataFrame(np.array([[1, 2, 3, 5], [4, 5, 6, 7], [7, 8, 9, 1]]), columns=['a', 'b', 'c', 'd'])