Scikit-learn, a machine learning toolkit in Python, offers a number of datasets ready to use for learning ML and developing new methodologies. If you are new to sklearn, it may be little harder to wrap your head around knowing the available datasets, what information is available as part of the dataset and how to access […]
How to Change the Order of Columns in a Pandas Dataframe
In this tutorial, we will learn how to change the order of columns in Pandas dataframe. We can change the order of the columns in multiple. Here, we will see two ways to change the order of the columns. First, let us load Pandas. We will use gapminder dataset to change the column orders. Let […]
How to Change the Position of Legend in Seaborn
Seaborn v0.11.2 is here. It is a minor release that fixes issues and also has a few features. One of the useful features is the new convenient function “move_legend()” to change the position of legend in Seaborn. Before Seaborn v0.11.2, Matplotlib’s plt.legend() has been the go to function to change the position of legend in […]
Pandas pct_change(): Add Colors to Percent with style
Pandas pct_change() function is a handy function that lets us calculate percent change between two rows or two columns easily. By default, pct_change() function works with adjacent rows and columns, but it can compute percent change for user defined period as well. One of the useful features of Pandas pct_change is to add annotation with […]
Lesser known Seaborn Tips and Tricks
Want to learn lesser known Seaborn tips and tricks from Micheal Waskom, the developer of Seaborn? Check out his periodical tweets since early this year. Stumbled upon this thread while searching for a specific Seaborn help and worked through some of the tips. Here are a few examples of lesser known Seaborn tips and tricks. […]