2021-08-01

Make Python faster using Numba

15 mins read As you may know, python is an interpreted language. This means that python code is not directly compiled to machine […]
2021-07-24

Python Modules and Packages tutorial

45 mins read Modules If you quit the Python interpreter and enter it again, the definitions you have made (functions and variables) are […]
2021-07-21

Fourier Transform basics and its applications

18 mins read The frequency domain Sound is a mechanical wave, a vibration in the air or another medium. Musical notes correspond to […]
2021-07-10

Predicting Customer Churn with Machine Learning: From EDA to Classification

27 mins read Table of Contents Introduction Objective Libraries Parameters and Variables Functions A Quick Look at our Data Creating a Test Set […]
2021-07-09

Performance evaluation metrics for binary classification with Python code

30 mins read Classification metrics let you assess the performance of machine learning models but there are so many of them, each one has its […]
2021-07-04

Feature Scaling with Scikit-Learn

9 mins read 1 Introduction 2 Loading the libraries 3 Scaling methods 3.1 Standard Scaler 3.2 Min-Max Scaler 3.3 Robust Scaler 3.4 Comparison […]
2021-07-03

Understating and discovering multicollinearity in regression analysis with Python code

9 mins read In this post, I will explain the concept of collinearity and multicollinearity and why it is important to understand them […]
2021-07-01

Speed up Pandas using Numba

20 mins read Numba is a very commonly used library nowadays to speed up computations in Python code. It let us speed up […]
2021-06-27

Understanding Dates, Times, Periods, and Time Zones in Pandas

15 mins read Introduction  Time-series data is quite common among many datasets related to fields like finance, geography, earthquakes, healthcare, etc. Properly interpreting […]
2021-06-27

Resampling time series in Pandas: resample and asfreq methods

23 mins read This article is an introductory dive into the technical aspects of resampling methods in pandas. 1. Resampling  Resampling is necessary […]
2021-06-26

Time series analysis with Pandas: Power consumption case study

24 mins read Originally developed for financial time series such as daily stock market prices, the robust and flexible data structures in pandas […]
2021-06-26

Labeling financial data for Machine Learning

24 mins read In this article, we’ll be looking at one method for labeling our data and getting it ready for our model. By the […]
2021-06-24

A complete guide on Pandas Hierarchical Indexing (MultiIndex)

31 mins read Pandas is the go-to library when for data analysis when working with tabular datasets. It is the best solution available for […]
2021-06-24

Data selection (indexing and slicing) in Pandas MultiIndex DataFrames

6 mins read A MultiIndex (also known as a hierarchical index) DataFrame allows you to have multiple columns acting as a row identifier and multiple […]
2021-06-21

Data Science and Machine Learning Cheat Sheets

5 mins read Click on the links to get the high-resolution cheat sheets. Algebra Linear Algebra Calculus Probability Statistics Python R Machine Learning […]
2021-06-18

Positional-only and Keyword-only arguments in Python

4 mins read In this lesson, you’ll learn about how to add positional-only arguments to your functions in Python 3.8. The built-in function float() can be used […]
2021-06-15

Understanding Contiguous vs Non-Contiguous Tensors in PyTorch

13 mins read Tensor and View View uses the same data chunk from the original tensor, just a different way to ‘view’ its […]
2021-06-12

Introduction to advanced candlesticks in finance: tick bars, dollar bars, volume bars, and imbalance bars

56 mins read In this article, we will explore why traditional time-based candlesticks are an inefficient method to aggregate price data, especially under […]
2021-06-06

Python __getattr__ and __getattribute__ magic methods

6 mins read Python Magic Methods Magic Methods are a broad and general term that refers to “special” methods in a Python class. […]
2021-06-05

Python filter() method tutorial

7 mins read Introduction The Python built-in filter() function can be used to create a new iterator from an existing iterable (like a list or dictionary) that will […]