Perfect Plots_ Matrix of corelation

April 24, 2020 admin 0

281120190000 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 data points collected from a Combined Cycle […]

Perfect plot Joyplot

April 24, 2020 admin 0

100420201543 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 Plot: Classification charts

March 28, 2020 admin 0

280320200859 data source: https://archive.ics.uci.edu/ml/datasets/Air+Quality In [1]: import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from sklearn.preprocessing import LabelEncoder, […]

Perfect Plots: Bubble Plot

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

Perfect Plots: Subplots

November 5, 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 uempmed unemploy […]

Perfect Plots: Individuals Control Chart I-MR

November 5, 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

November 5, 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 df = […]

Perfect Plots: Combiplot

November 5, 2019 admin 0

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 numpy as np import seaborn as sns df […]

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