[Solved]: ValueError: If using all scalar values, you must pass an index

dict ={"Name":"Rahul","Age":25}
df = pd.DataFrame(dict)

df will give this ERROR

ValueError: If using all scalar values, you must pass an index

Put dict on [ ] :

dict ={"Name":"Rahul","Age":25}
df = pd.DataFrame([dict])
df

    Name         Age

0 Rahul        25