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

import pandas as pd
 
#Scalar values
a = 34
b = 54
c = 12
d = 23
 
# creating DataFrame by transforming Scalar Values to List
dataFrame= pd.DataFrame({'Value of A': [a], 'Value of B': [b], 'Value of C': [c], 'Value of D': [d]})
print(dataFrame)
Content Protection by DMCA.com
Please Share