Python

Python

Handling datetime in Pandas DataFrame

Create a Year-Month column year_month = pd.date_range(start='2020-04', end='2021-09', freq='M') df = pd.DataFrame({...
Python

How to split data into training, validation, and test sets

In this post, I am going to introduce several ways to split data into training, validation, and test sets for your mach...
Python

Handling a large tabular dataset using Vaex

When you have to handle a large tabular dataset (for example, 100 GB dataset with one billion rows), which cannot fit i...
Python

Plotting functions in Python

Here I'm going to plot several machine learning-related functions in Python. First, import necessary modules: imp...
Python

Predicting mortality in heart failure patients using machine learning (PyCaret)

In this post, I'm going to develop machine learning models to predict death in heart failure patients. Dataset Th...
Python

Analyzing emails in Python

Open EML files Create a list of paths to .eml files in a directory and extract their file names and texts. from p...
Image Analysis

Quantifying pixel intensities of an confocal image in Python

In this post, you are going to learn how to read an image acquired by a confocal microscope and how to measure pixel in...
Python

Count the number of files in subdirectories in Python

Assume the you have the following directory tree: directory - subdirectoryA - image1.png - image2.png ...
Copied title and URL