Perfect Plots: Violinplot

31/10/2019 admin 0

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

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: Dendrogram

23/10/2019 admin 0

Dendrograms is used to count number of clusters.Dendrogram works on the distance between point of dataframe. In [ ]: import scipy.cluster.hierarchy as shc import pandas as pd […]

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: Joyplot Plot

22/10/2019 admin 0

In [1]: import joypy import pandas as pd import matplotlib.pyplot as plt   Car market analysis Source of data: https://github.com/selva86/datasets/blob/master/mpg_ggplot2.csv   GSuite Text and Background Palette: […]

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 […]