Formatting specific rows in Pandas Dataframe with string formatting and heatmap
Here I have a code for a function that creates a formatted table.It currently works but I want to optimise it considering “Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas.”