import pandas as pd mydict={'A':[1,2,3,4,5,6],'B':[2,5,1,1,5,1]} df = pd.DataFrame(*[mydict]) df.head()
Output: