Linear Regression is one of the most commonly used statistical methods. Linear modeling and Linear regression helps us understand the relationship between multiple variables. In the simplest case, linear regression is about understanding the relation between two variables, X and Y. One of the ways to understand linear regression is that we have the observed […]
Data Science From Scratch 2nd Edition: Book Review
The second edition of Data Science from Scratch, First Principles with Python from Joel Grus is here (since the summer of 2019). The first edition of the book came about 4-5 years ago when data science as a field was nascent and majority of Python was in 2.7. There are two aspects to learn data […]
How to Make a Plot with Two Different Y-axis in Python with Matplotlib ?
Sometimes, as part of a quick exploratory data analysis, you may want to make a single plot containing two variables with different scales. One of the options is to make a single plot with two different y-axis, such that the y-axis on the left is for one variable and the y-axis on the right is […]
8 tips to make better barplots with ggplot2 in R
Barplots or barcharts are extremely handy visualization technique for a variety of situations. It is of great use when you have multiple of categories and quickly visualize the counts of each category. In this post, we will start with how to make simple barplots using ggplot2 in R. Then we will see many examples of […]
How To Change Legend Title in ggplot2?
In this post, we will see multiple examples of how to change the legend title in ggplot2. When you make a plot with ggplot2 and color/highlight data points by a variable in the input dataframe, ggplot2 uses the name of the variable present in the dataframe. However, sometimes you might want to change the legend […]




