Python! Converting Between a pandas DataFrame and a Dictionary
Adrian Dolinay
Tutorial on converting a Python dictionary to a pandas DataFrame and back.
Python Dictionary Tutorial - https://www.youtube.com/watch?v=EKWkRfbFRts&t=603s
GitHub repo containing the notebook under the "Python" directory - https://github.com/ad17171717/YouTube-Tutorials
CONNECT: LinkedIn: https://www.linkedin.com/in/adrian-dolinay-frm-96a289106/ GitHub: https://github.com/ad17171717 Twitter: https://twitter.com/DolinayG Odysee: https://odysee.com/@adriandolinay:0
|-Video Chapters-| 0:00 - Intro 0:13 - Definition of a Python dictionary 0:31 - Converting a Python dictionary to a pandas DataFrame 1:17 - to_dict function to convert a DataFrame to a dictionary 2:29 - to_dict('records') function to convert a DataFrame to a dictionary 3:17 - to_dict('index') function to convert a DataFrame to a dictionary 3:45 - DataFrame to original dictionary using dictionary comprehension 5:17 - References and additional learning ... https://www.youtube.com/watch?v=8okxsQC36V8
21858785 Bytes