I have this python list and I need to convert it into pandas dataframe.
This is how my list looks like:
thisdict = {}
thisdict["Column1"] = 1
thisdict["Column2"] = 2
thisdict # this print
{'Column1': 1, 'Column2': 2}
And I need to convert this to pandas dataframe.
I tried:
df = pd.DataFrame(thisdict)
and I got the error as below:
ValueError: If using all scalar values, you must pass an index
Can someone please help me?


1and2as liststhisdict["Column1"] = [1]andthisdict["Column2"] = [2]twocolumns andonerow