Matplotlib add value labels on a bar chart using bar_label
We want to add the value labels in a bar chart, which is the value of each label on the top or center of a bar in a plot. We have bar_label() method in matpl...
We want to add the value labels in a bar chart, which is the value of each label on the top or center of a bar in a plot. We have bar_label() method in matpl...
In this post we will see how to create a new column based on values in other columns with multiple if/else-if conditions. It’s bit straight forward to create...
In this post we will see how to sort a dataframe by month name(string) column. It’s bit straight forward to sort a number or string alphabetically using sort...
Pandas Crosstabs
In this post we will see how to select specific rows in each group of pandas groupby object. There are certain cases where we are interested to select only t...
In this post we will create tensorflow dataset(tf.data.Dataset) from MNIST image dataset using image_dataset_from_directory function
In this post we will create tfrecord files from images and the dataset that we will be using is google colab MNIST sample_data for training.
As data comes in many shapes and forms, Missing values in pandas are denoted as NaN, It is a special floating-point value. There are also other ways to repre...
There is a crop function in PIL to crop the image if you know the crop area coordinates. How would you crop the central region of Image if you want certain f...