DotMap: A Better Alternative to Python Dictionary
Python dictionaries are great, but they have many limitations.
It is difficult to create dynamic hierarchical data. Also, they don't offer the widely adopted dot notation to access values.
Instead, use DotMap. It behaves like a Python dictionary but also addresses the above limitations.
What's more, it also has a built-in pretty print method to display it as a dict/JSON for debugging large objects.
Read more: GitHub.
Share this post on LinkedIn: link.
Find the code for my tips here: GitHub.
I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn.