Posts

A Simple Visualization with Plotly

Image
In this blog post, we will discuss how to create a simple visualisation with python library - plotly. Plotly is an open source library of python. It is widely used in data visualisations and offers a variety of visualisations. Knowledge of python is a prerequisite for this. Let us create a simple column chart based on below fictitious sales data: Month Product Items Sold Item Price Sales Amount Jan 22 Product A 51 10 510 Feb 22 Product A 71 10 710 Mar 22 Product A 72 10 720 Jan 22 Product B 95 20 1900 Feb 22 Product B 76 20 1520 Mar 22 Product B 60 20 1200 Jan 22 Product C 16 30 480 Feb 22 Product C 41 30 1230 Mar 22 Product C 34 30 1020 We will use Google Colab   for this activity.  Create a new notebook with Google Colab. From the left sidebar, click on files and then upload this csv to the session Then we will import the necessary python packages - pandas and plotly express. import pandas as pd import plotly.express as px   We have this data in a csv file.  W...