I have a list of dictionaries that look like this.
d = [{'a': 1, 'b': 2}, {'a': 2, 'b': 3}....]
I am trying to construct a DataFrame from this as follows:
df = pd.DataFrame(d, index=['a'])
But I get this error:
ValueError: Shape of passed values is (X, 2), indices imply (1, 2)
(X is a number of items I have in d)