Machine Learning and Python Tutorials

PEP8 in Python: Main Rules You Need To Know

Every programming language has its own guidelines and best practices. The official style guide in Python is defined in PEP 8. In this tutorial, I will list the most common and practical rules from it.

6 minutes read

Pandas DataFrames: Search and Fill/Drop Empty Values

When working on Pandas DataFrame, it is common to find empty columns or even rows. This tutorial will show you how to search for them and process them by deleting or replacing them with new values.

7 minutes read

Calculate Cost of OpenAI API Calls from Python

When working with OpenAI and GPT models, it's crucial to calculate the costs. In this tutorial, I will show you how to check the costs of the API calls, both humanly and automatically, with Python and LangChain.

4 minutes read