Perfect Plots: Bubble Plot

07/11/2019 admin 0

In [1]: import pandas as pd import matplotlib.pyplot as plt import numpy as np   Autos Source of data: https://datahub.io/machine-learning/autos In [2]: df2= pd.read_csv(’c:/1/autos.csv’) df2.head() Out[2]: […]

Dendrogram and clustering 3d

25/10/2019 admin 0

In [1]: import scipy.cluster.hierarchy as shc import pandas as pd import matplotlib.pyplot as plt # Import Data df = pd.read_csv(’c:/1/USArrests.csv’) USArrests Source of data: https://www.kaggle.com/deepakg/usarrests […]

Perfect Plots: Calendarplot

24/10/2019 admin 0

In [1]: import matplotlib as mpl import calmap import pandas as pd import matplotlib.pyplot as plt   yahoo In [2]: df = pd.read_csv(’c:/1/yahoo.txt’, parse_dates=[’date’]) df.set_index(’date’, inplace=True) […]

Perfect Plots: Waffle plot

22/10/2019 admin 0

  https://www.machinelearningplus.com/plots/top-50-matplotlib-visualizations-the-master-plots-python/   pip install pywaffle In [1]: from pywaffle import Waffle import squarify import pandas as pd import matplotlib.pyplot as plt   Car market analysis […]

Perfect Plots: Slope Chart

22/10/2019 admin 0

Feel free to read the code on GitHub   In [1]: import pandas as pd import matplotlib.pyplot as plt import matplotlib.lines as mlines import numpy […]

Perfect Plot: Treemap

22/10/2019 admin 0

An old Chinese proverb says: one picture says more than one thousands words.   One good plot can rescue entire presentation. One poor picture can […]

Perfect Plots: Pie Plot

17/10/2019 admin 0

  An old Chinese proverb says: one picture says more than one thousands words. One good plot can rescue entire presentation. One poor picture can […]