In this step-by-step tutorial, you'll learn how the Python defaultdict type works and how to use it for handling missing keys when you're working with dictionaries. You'll also learn how to use a defaultdict to solve problems like grouping or counting the... (more…)
Read more »
I’ve recently started using the starmap function in python quite frequently
in my analyses. I think it has several advantages
including readability, flexability, and above all, very simple parallelism.
In this post I’ll cover what the starmap function...
Read more »
Web scraping using Python and BeautifulSoup. Scrap a web page in 20 lines of code using Python, BeautifulSoup and Requests libraries. (more…)
Read more »
… and Python objects in general — None of the existing articles [1] give a comprehensive explanation of how metaclasses work in Python so I'm making my own. Metaclasses are a... (more…)
Read more »
The official Python library for the OpenAI API. Contribute to openai/openai-python development by creating an account on GitHub. (more…)
Read more »