pandas pd.DataFrame aus Liste von Dicts erstellen
English
Deutsch
Ein pandas pd.DataFrame kann aus einer Liste von Dicts (lst) mit dem Konstruktor pd.DataFrame(lst) erstellt werden.
create_dataframe_from_list.py
a = {"x": 1, "y": 2}
b = {"x": 3, "y": 2}
c = {"x": 6, "y": 9}
df = pd.DataFrame([a,b,c])df sieht dann so aus:

If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow