Perfect Plots Bubble Plot

24/04/2020 admin 0

  Perfect Plots: Bubble Plot Feel free to read the code on GitHub In [1]: import pandas as pd import matplotlib.pyplot as plt import numpy as […]

Perfect Plots_ Matrix of corelation

24/04/2020 admin 0

Feel free to read the code on GitHub Source of data: https://archive.ics.uci.edu/ml/datasets/combined+cycle+power+plant Combined Cycle Power Plant Data Set¶ Data Set Information:¶ The dataset contains 9568 […]

Perfect plot Joyplot

24/04/2020 admin 0

Feel free to read the code on GitHub In [1]: import joypy import pandas as pd import matplotlib.pyplot as plt Car market analysis¶ Source of […]

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

Perfect Plots: Subplots

05/11/2019 admin 0

In [1]: import pandas as pd import matplotlib.pyplot as plt import numpy as np   Economics In [2]: df=pd.read_csv(’c:/1/economics.txt’) df.head() Out[2]:   date pce pop psavert […]

Perfect Plots: Individuals Control Chart I-MR

05/11/2019 admin 0

Energy Source of data: https://github.com/pyviz/holoviews/blob/master/examples/assets/energy.csv In [1]: import pandas as pd import matplotlib.pyplot as plt import numpy as np In [2]: df=pd.read_csv(’c:/2/Energy.csv’) df.head() Out[2]: Unnamed: 0 Date […]

Perfect Plots: Bar plots

05/11/2019 admin 0

  In [1]: import pandas as pd import matplotlib.pyplot as plt import numpy as np import matplotlib.patches as mpatches   Car statistics In [2]: # Prepare Data […]

Perfect Plots: Combiplot

05/11/2019 admin 0

Feel free to read the code on GitHub Global market sales Source of data: https://github.com/vkrit/data-science-class/blob/master/WA_Fn-UseC_-Sales-Win-Loss.csv In [1]: import pandas as pd import matplotlib.pyplot as plt import […]

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