In my previous post, we have seen how we can plot multiple bar graph on a single plot. In this post, we will see how we can plot a stacked bar graph using Python’s Matplotlib library. A stacked bar graph also known as a stacked bar chart is a graph that is used to break down and compare parts […]
Plotting multiple bar graph using Python’s Matplotlib library
Here in this post, we will see how to plot a two bar graph on a different axis and multiple bar graph using Python’s Matplotlib library on a single axis. Let’s first understand what is a bar graph. We can use a bar graph to compare numeric values or data of different groups or we can say […]
3 comparisons between List Comprehension and Generator Expression in Python
Here in this post, we’ll see what is generator expression and most important we will compare List Comprehension and Generator Expression to know the difference between them and which one we should use and why. Let’s take List comprehension and generator expression one by one. First, let’s recall what we know about list comprehension. If […]
Setting up Python Development Environment for Data Analysis
Nowadays, you have seen everyone talking about learning python for data science and data analysis. Here in this post, we will see how to set up Python Development Environment and packages especially for Data Analysis. Why Python? Python is an open source, easy to pick up, general programming language and it doesn’t matter whether you’re […]
10 Basic Python fundamentals for Data Scientist aspirants and Data Analysis
When you want to learn Data Science or Data Analysis, you have to learn either Python or R and after that using basic python/R functions with other statistical packages you can easily start analysing data and get some insight from your data. As i too have both the options, i chose Python over R as […]
Using List and Dictionary Comprehensions in Python
List Comprehensions and Dictionary Comprehensions in Python are the important expressions you must know. Using comprehensions in the code will help us in making our code short and precise. Comprehensions in Python can achieve the output with a single line of code. Let’s consider an example below where we used a for loop to multiply […]