I want to convert Python dictionary into DataFrame. Dictionary value is a List with different length.
Example:
import pandas as pd
data = {'A': [1], 'B': [1,2], 'C': [1,2,3]}
df = pd.DataFrame.from_dict(data)
But, the above code doesn't work with the following error:
ValueError: All arrays must be of the same length
The output that I would like to get is as follows:
name value
'A' [1]
'B' [1,2]
'C' [1,2,3]