1 - Introduction - Data Visualization
1 - Introduction - Data Visualization
In the world of Big Data, data visualization tools and technologies are essential to
analyze massive amounts of information and make data-driven decisions.
Advantages:
Our eyes are drawn to colors and patterns. We can quickly identify red from blue, and
squares from circles. Our culture is visual, including everything from art and
advertisements to TV and movies. Data visualization is another form of visual art that
grabs our interest and keeps our eyes on the message.
Disadvantages
While there are many advantages, some of the disadvantages may seem less obvious.
For example, when viewing a visualization with many different datapoints, it’s easy to
make an inaccurate assumption. Or sometimes the visualization is just designed wrong
so that it’s biased or confusing.
Python provides various libraries that come with different features for visualizing
data. All these libraries come with different features and can support various
types of graphs. In this tutorial, we will be discussing four such libraries.
- Matplotlib
- Bar Charts
- Line Charts
- Scatterplots
a). Matplotlib:
Key Features:
o line graphs,
o bar graphs,
o histograms.
It can work with the NumPy arrays and border SciPy stack.
It accepts data in the form of lists, numpy arrays, and pandas dataframes.
The Matplotlib bar() function is the easiest way to create a bar chart. We import
the library as plt and use.
import numpy as np
The bar width in bar charts can be controlled or specified using the “width”
parameter in the bar() function of the Matplotlib library.
The “width” parameter determines the width of each bar in the bar chart
https://www.oreilly.com/library/view/data-science-from/9781491901410/
ch07.html#:~:text=In%20the%20classical%20setup%2C%20we,more%20sense
%20with%20an%20example.