2019-12-03

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 […]
2019-11-16

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. […]
2019-11-14

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 […]
2019-11-13

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 […]
2019-11-12

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 […]
2019-11-05

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 […]
2019-11-04

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 […]
2019-08-04

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 […]
2019-07-02

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 […]
2019-05-23

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 […]
2019-05-12

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, […]
2019-05-08

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 […]
2019-03-26

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 […]
2019-03-25

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. […]
2017-11-08

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 […]
2017-06-17

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 […]
2017-06-17

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 […]
2017-06-17

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 […]
2017-06-14

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 […]
2017-06-14

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 […]