import pandas as pd d = {'col_1_index': [1, 2, 3], 'col_2_index': [3, 4, 5]} df = pd.DataFrame(data=d)