Is it possible to reset columns so they becomes first row of DataFrame. For example,
DataFrame
import pandas as pd df = pd.DataFrame({\'a\': [1, 2, 3], \'b\'
Use
In [57]: pd.DataFrame(np.vstack([df.columns, df])) Out[57]: 0 1 0 a b 1 1 4 2 2 5 3 3 6