Excel Datei in Dictionary unwandeln Python?
Wie wandelt man eine Excel Datei in ein Dictionary um. Ich habe mit import Pandas as pd eine Excel Datei importiert, nun möchte ich dies in ein Dictionary um wandeln. Wie bekomme ich das hin mit dem Befehl df.to_dict()? Am besten mit unkomplizierten Befehlen..
Mein Ansatz bis jetzt:
import pandas as pd
Tabelle=pd.read_excel(“Tabelle.xlsx”)
……
The read_excel– Method provides Dataframe– Objects. In turn, one knows to_dict-Method.
What order do I have to use?…
The necessary methods are in my answer.
Example:
Compare your associated code section with that of me. Except for the names of variables, there should be no major differences.
The next step would be to check exactly what is going on across.
I only give help here on the public platform.
Maybe I could send you my Python code by DM, I can’t get it.