Month: July 2020

Python Data Visualisation for Business Analyst – How to do Jittering with stripplot

(Python Data Visualisation Tutorials) How to do Jittering with stripplot In this data visualisation tutorial, you will learn How to do Jittering with stripplot in Python. Often multiple datapoints have exactly the same X and Y values. As a result, multiple points get plotted over each other and hide. To avoid this, jitter the points …

Python Data Visualisation for Business Analyst – Scatter plot with linear regression line of best fit

(Python Data Visualisation Tutorials) Scatter plot with linear regression line of best fit In this data visualisation tutorial, you will learn how to do scatter plot with linear regression using seaborn package in Python. If you want to understand how two variables change with respect to each other, the line of best fit is the …

Python Data Visualisation for Business Analyst – Bubble plot in Python

(Python Data Visualisation Tutorials) How to do a Bubble Plot in Python? Sometimes you want to show a group of points within a boundary to emphasize their importance. In this example, you get the records from the dataframe that should be encircled and pass it to the encircle() described in the code below. Setup Run this once …

Python Data Visualisation for Business Analyst – Scatter Plot in Python

(Python Data Visualisation Tutorials) How to do a Scatter Plot in Python? Scatteplot is a classic and fundamental plot used to study the relationship between two variables. If you have multiple groups in your data you may want to visualise each group in a different color. In matplotlib, you can conveniently do this using plt.scatterplot(). Setup Run …

Python tutorials for Business Analyst – Python sleep()

(Python Tutorial – 050) Python sleep() The sleep() function suspends (waits) execution of the current thread for a given number of seconds. Python has a module named time which provides several useful functions to handle time-related tasks. One of the popular functions among them is sleep(). The sleep() function suspends execution of the current thread for a given number …

Python tutorials for Business Analyst – Python time Module

(Python Tutorial – 049) Python time Module In this article, we will explore time module in detail. We will learn to use different time-related functions defined in the time module with the help of examples. Python has a module named time to handle time-related tasks. To use functions defined in the module, we need to import …

Python tutorials for Business Analyst – Python timestamp to datetime and vice-versa

(Python Tutorial – 048) Python timestamp to datetime and vice-versa In this article, you will learn to convert timestamp to datetime object and datetime object to timestamp (with the help of examples). It’s pretty common to store date and time as a timestamp in a database. A Unix timestamp is the number of seconds between …

Python tutorials for Business Analyst – Python Get Current time

(Python Tutorial – 047) Python Get Current time In this article, you will learn to get current time of your locale as well as different time zones in Python. There are a number of ways you can take to get current time in Python.   Example 1: Current time using datetime object from datetime import …

Python tutorials for Business Analyst – How to get current date and time in Python?

(Python Tutorial – 046) How to get current date and time in Python? In this article, you will learn to get today’s date and current date and time in Python. We will also format the date and time in different formats using strftime() method. There are a number of ways you can take to get …