Perfect Plots: Violinplot

October 31, 2019 admin 0

In [1]: import pandas as pd import matplotlib.pyplot as plt import numpy as np import matplotlib.patches as mpatches Titanic disaster Source of data: https://www.kaggle.com/shivamp629/traincsv In [2]: […]

Dendrogram and clustering 3d

October 25, 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

October 24, 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) df.head(3) […]

Perfect plots: Dendrogram

October 23, 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 […]

Perfect Plots: Waffle plot

October 22, 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 Source of data: […]

Perfect Plot: Treemap

October 22, 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 drown […]

Perfect Plots: H_line plot

October 22, 2019 admin 0

In [1]: import numpy as np import pandas as pd import seaborn as sns from sklearn.preprocessing import LabelEncoder import matplotlib.pylab as plt from pylab import […]

Perfect Plots: Slope Chart

October 22, 2019 admin 0

  In [1]: import pandas as pd import matplotlib.pyplot as plt import matplotlib.lines as mlines import numpy as np # Import Data df = pd.read_csv(‘c:/2/gdppercap.txt’) […]

Perfect Plots: Joyplot Plot

October 22, 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: https://yagisanatode.com/2019/08/06/google-apps-script-hexadecimal-color-codes-for-google-docs-sheets-and-slides-standart-palette/ In [2]: […]