We will first learn how to create discrete colormaps, followed by continuous colormaps.
Import the following required libraries:
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from matplotlib.colors import LinearSegmentedColormap