[Solved]: ValueError: DataFrame constructor not properly called!

dict type to list 

Change:

df_attr = df_attr.from_dict(attr_type.items())

TO

df_attr = df_attr.from_dict(list(attr_type.items()))