Everything you should know about Python Decorators – A complete tutorial on Python Decorators

49 mins read A decorator takes in a function, adds some functionality, and returns it. In this article, you will learn how you […]

Deploy Django with Postgres, Nginx, and Gunicorn on Ubuntu 18.04

17 mins read Introduction Django is a powerful web framework that can help you get your Python application or website off the ground. […]

Machine Learning From Scratch Series: Gradient Descent

9 mins read Gradient Descent is an iterative algorithm that is used to minimize a function by finding the optimal parameters. Gradient Descent can […]

Logistic Regression Implementation From Scratch in Python

4 mins read The objective of this tutorial is to implement our own Logistic Regression from scratch. This is going to be different […]

Machine Learning From Scratch Series: K-means Clustering: K-Nearest Neighbors (KNN) Algorithm

8 mins read Introduction A famous quote states: “You are the average of the five people you spend the most time with.” Although […]

Deploying Django application to a production server

12 mins read If you have been developing your web application with Django on a development server and wondered, how I’m going to put […]

Steps to Deploy Django with Postgres, Nginx, and Gunicorn on Ubuntu 18.04

6 mins read In this guide, I will go through all the steps to create a VPS, secure it and deploy a Django […]

How to transfer files to Google Colab from different sources

13 mins read Google Colaboratory is a free Jupyter notebook environment that runs on Google’s cloud servers, letting the user leverage backend hardware like […]

Seaborn charts for plotting categorical features

12 mins read Data In this post, we will use one of Seaborn’s conveniently available datasets about the Titanic, which I’m sure many […]

Tutorial on Crosstab Operations (pivot_table and crosstab methods) in Pandas

8 mins read Introduction Pandas offers several options for grouping and summarizing data but this variety of options can be a blessing and […]

Kafka Producer and Consumer example in Python

3 mins read Till now we have seen the basics of Apache Kafka and created Producer and Consumer using Java. In this tutorial, […]

Avro for Big Data, Data Streaming Architectures, and Kafka

16 mins read Introduction Apache Avro™ is a data serialization system. Avro provides: Rich data structures. A compact, fast, binary data format. A […]

Complete guide on Logging in Python

17 mins read The Logging Module The logging module in Python is a ready-to-use and powerful module that is designed to meet the needs of […]

Best practices for Python exceptions

9 mins read How do I manually throw/raise an exception in Python? Use the most specific Exception constructor that semantically fits your issue. […]

Difference between sessions and cookies – Djnago Example

15 mins read Cookie A cookie is just a key-value pair that is stored in the user’s browser. A cookie is sent to […]

Tutorial on basics of Cython

6 mins read The fundamental nature of Cython can be summed up as follows: Cython is Python with C data types. Cython is […]

Compiling C extension modules on Windows (Cython)

10 mins read This page describes how to compile a Cython extension (works for CPython extensions also) for Windows. If you encounter one […]

Cythonize setup.py for several .pyx files

3 mins read Concept Distutils is the standard way to build Cython extension modules for large projects. Typically one invokes setup(…) which then […]

Kernel Density Estimation (KDE) in Python

10 mins read Nonparametric Density Estimation In some cases, a data sample may not resemble a common probability distribution or cannot be easily […]

Implementations of Mutual Information (MI) and Entropy in Python

8 mins read In probability theory and information theory, the mutual information (MI) of two random variables is a measure of the mutual […]