{"id":240,"date":"2021-09-15T07:12:32","date_gmt":"2021-09-15T07:12:32","guid":{"rendered":"https:\/\/www.kindsonthegenius.com\/data-science\/?p=240"},"modified":"2021-09-25T13:48:37","modified_gmt":"2021-09-25T13:48:37","slug":"a-class-on-data-visualization-with-python-a-data-science-primer","status":"publish","type":"post","link":"https:\/\/www.kindsonthegenius.com\/data-science\/a-class-on-data-visualization-with-python-a-data-science-primer\/","title":{"rendered":"Class 2 &#8211; A Class on Data Visualization with Python &#8211; A Data Science Primer"},"content":{"rendered":"<p>In this class we would cover Data Visualization with Python. This class follows from <a href=\"https:\/\/www.kindsonthegenius.com\/data-science\/practical-data-science-class-for-data-science-beginners\/\" target=\"_blank\" rel=\"noopener\">Part 1: Your First Data Science Class<\/a>. I recommend you check out that first if you are a beginner.<\/p>\n<p>The following is covered in this class:<\/p>\n<ol>\n<li><a href=\"#t1\">Our Dataset<\/a><\/li>\n<li><a href=\"#t2\">Univariate Plots: Understanding Attributes Independently<\/a><\/li>\n<li><a href=\"#t3\">Histogram<\/a><\/li>\n<li><a href=\"#t4\">Density Plots<\/a><\/li>\n<li><a href=\"#t5\">Box Plots (Whisker Plot)<\/a><\/li>\n<li><a href=\"#t6\">Multivariate Plots: Relationship Variables<\/a><\/li>\n<li><a href=\"#t7\">Correlation Matrix Plot<\/a><\/li>\n<li><a href=\"#t8\">Scatter Matrix Plot<\/a><\/li>\n<li><a href=\"#t8\">Using Heatmap &#8211; Seaborn<\/a><\/li>\n<li><a href=\"#t8\">Using Matshow<\/a><\/li>\n<li><a href=\"#t8\">Pairplot<\/a><\/li>\n<\/ol>\n<p><a href=\"https:\/\/youtu.be\/p_NnYRcPeRU\" target=\"_blank\" rel=\"noopener\">Class 2 Video of Data Visualization<\/a><\/p>\n<h4><strong id=\"t1\">1. Our Datatset &#8211; The Wine Dataset<\/strong><\/h4>\n<p><span style=\"font-family: 'Source Sans Pro', Graphik, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 1.125rem;\">The dataset of wine was obtained from the UCI Machine Learning Repository. <\/span>We would use the <a href=\"https:\/\/raw.githubusercontent.com\/MateLabs\/Public-Datasets\/master\/Datasets\/wine.csv\" target=\"_blank\" rel=\"noopener\">wine.csv file which is available for free from here<\/a>. According to the documentation of this dataset, the data consists of 13 physiochemical parameters measured in 178 different wine samples from three distinct cultivars(variety produced by selective breeding) grown in Italy.<\/p>\n<p>Use the code below to import your dataset:<\/p>\n<p><!-- HTML generated using hilite.me --><\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">from<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">pandas<\/span> <span style=\"color: #008800; font-weight: bold;\">import<\/span> ExcelWriter\r\n<span style=\"color: #008800; font-weight: bold;\">from<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">pandas<\/span> <span style=\"color: #008800; font-weight: bold;\">import<\/span> ExcelFile\r\npath <span style=\"color: #333333;\">=<\/span> <span style=\"background-color: #fff0f0;\">r\"\/Users\/kindsonmunonye\/Datasets\/wine.xlsx\"<\/span>\r\nwine_data <span style=\"color: #333333;\">=<\/span> pd<span style=\"color: #333333;\">.<\/span>read_excel(path, header<span style=\"color: #333333;\">=<\/span><span style=\"color: #0000dd; font-weight: bold;\">0<\/span>)\r\n<\/pre>\n<p>The parameters are given below:<\/p>\n<ol>\n<li>Alcohol<\/li>\n<li>Metallic Acid<\/li>\n<li>Ash<\/li>\n<li>Alkalinity of Ash<\/li>\n<li>Magnesium<\/li>\n<li>Total Phenols<\/li>\n<li>Flavanoids<\/li>\n<li>Flavanoid Phnols<\/li>\n<li>Proanthocyanins<\/li>\n<li>Color Intensity<\/li>\n<li>Hue<\/li>\n<li>OD280\/OD315 of Diluted wines<\/li>\n<li>Prolines<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t2\">2. Univariate Plots: Visualising\u00a0Individual Features<\/strong><\/h4>\n<p>This type of plots help use understand individual variables of our dataset independent of other variables. Some of the univariate plots we would use in this class includes, histograms, univariate scatter plots, line plots.<\/p>\n<p>We begin with histogram<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t3\">3. Histograms<\/strong><\/h4>\n<p>A histogram is a plot that groups the data into bins or vertical bars. Each attributes is represented with bin whose height represents the values of the attribute. An example of use of histogram is to get the count of observations in given category of the totals of certain columns.<\/p>\n<p>Use the code below to get a histogram plot of the wine dataset:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\"># HISTOGRAM<\/span>\r\nfig <span style=\"color: #333333;\">=<\/span> plt<span style=\"color: #333333;\">.<\/span>figure(figsize <span style=\"color: #333333;\">=<\/span> (<span style=\"color: #0000dd; font-weight: bold;\">15<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">20<\/span>))\r\nax <span style=\"color: #333333;\">=<\/span> fig<span style=\"color: #333333;\">.<\/span>gca()\r\nwine_data<span style=\"color: #333333;\">.<\/span>hist(ax <span style=\"color: #333333;\">=<\/span> ax)\r\n<span style=\"color: #888888;\"># wine_data.hist(ax = ax, column='Wine') for a single data column<\/span>\r\nplt<span style=\"color: #333333;\">.<\/span>show()\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t4\">4. Density Plot<\/strong><\/h4>\n<p>A density plot is similar to a histogram bu it uses a smooth curve to represent the data attributes. It uses the kernel density estimate to show the probability density function (PDF) of the variables.<\/p>\n<p>The code below provides the density plot of the wine dataset<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\"># DENSITY PLOT<\/span>\r\nfig <span style=\"color: #333333;\">=<\/span> plt<span style=\"color: #333333;\">.<\/span>figure(figsize <span style=\"color: #333333;\">=<\/span> (<span style=\"color: #0000dd; font-weight: bold;\">15<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">20<\/span>))\r\nax <span style=\"color: #333333;\">=<\/span> fig<span style=\"color: #333333;\">.<\/span>gca()\r\nwine_data<span style=\"color: #333333;\">.<\/span>plot(ax <span style=\"color: #333333;\">=<\/span> ax, kind<span style=\"color: #333333;\">=<\/span><span style=\"background-color: #fff0f0;\">'density'<\/span>, subplots<span style=\"color: #333333;\">=<\/span><span style=\"color: #008800; font-weight: bold;\">True<\/span>, layout<span style=\"color: #333333;\">=<\/span>(<span style=\"color: #0000dd; font-weight: bold;\">4<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">4<\/span>), sharex<span style=\"color: #333333;\">=<\/span><span style=\"color: #008800; font-weight: bold;\">False<\/span>)\r\nplt<span style=\"color: #333333;\">.<\/span>show()\r\n<\/pre>\n<p>The kinds of plot can be changes into any of the following.<\/p>\n<ul class=\"simple\">\n<li>\u2018line\u2019 : line plot (default)<\/li>\n<li>\u2018bar\u2019 : vertical bar plot<\/li>\n<li>\u2018barh\u2019 : horizontal bar plot<\/li>\n<li>\u2018hist\u2019 : histogram<\/li>\n<li>\u2018box\u2019 : boxplot<\/li>\n<li>\u2018kde\u2019 : Kernel Density Estimation plot<\/li>\n<li>\u2018density\u2019 : same as \u2018kde\u2019<\/li>\n<li>\u2018area\u2019 : area plot<\/li>\n<li>\u2018pie\u2019 : pie plot<\/li>\n<li>\u2018scatter\u2019 : scatter plot (DataFrame only)<\/li>\n<li>\u2018hexbin\u2019 : hexbin plot (DataFrame only)<\/li>\n<\/ul>\n<p>I recommend you try them out yourself to see what you get<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t5\">5. Box Plots<\/strong><\/h4>\n<p>This is also called box and whisker plot. It provides a visualization of the distribution of each attribute in the dataset. It draws a line in the middle value of the attribute and a box around the 25% and 75% (1st and 3rd quartiles). Then it also draws a whisker to indicate the spread of the data.<\/p>\n<p>Use the code below to get a box plot of the wine dataset.<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\"># BOX AND WHISKER PLOT<\/span>\r\nfig <span style=\"color: #333333;\">=<\/span> plt<span style=\"color: #333333;\">.<\/span>figure(figsize <span style=\"color: #333333;\">=<\/span> (<span style=\"color: #0000dd; font-weight: bold;\">15<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">20<\/span>))\r\nax <span style=\"color: #333333;\">=<\/span> fig<span style=\"color: #333333;\">.<\/span>gca()\r\nwine_data<span style=\"color: #333333;\">.<\/span>plot(ax <span style=\"color: #333333;\">=<\/span> ax, kind<span style=\"color: #333333;\">=<\/span><span style=\"background-color: #fff0f0;\">'box'<\/span>, subplots<span style=\"color: #333333;\">=<\/span><span style=\"color: #008800; font-weight: bold;\">True<\/span>, layout<span style=\"color: #333333;\">=<\/span>(<span style=\"color: #0000dd; font-weight: bold;\">4<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">4<\/span>), sharex<span style=\"color: #333333;\">=<\/span><span style=\"color: #008800; font-weight: bold;\">False<\/span>)\r\nplt<span style=\"color: #333333;\">.<\/span>show()\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t6\">6. Multivariate Plots<\/strong><\/h4>\n<p>This kind of plots are used for multi-variable visualization. Multivariate plots provides an insight into the relationship and interaction between the variables in a dataset.<\/p>\n<p>Some multivariate plots includes corelation matrix plot, scatter matrix plot and pairwise plot (pairplot)<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t7\">7. Correlation Matrix<\/strong><\/h4>\n<p>Correlation is provides an insight into the relationship between two variables. So how does changes in one variable affect the other variables(s)? A correlation matrix plot uses the correlation coefficient (Pearson&#8217;s Correlation coefficient). This value indicates how strong or weak a relationship is between two variables.<\/p>\n<p>Correlation matrix plot can be created using matshow from matplotlib or the seaborn module.<\/p>\n<p>Using seaborn:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\"># Plot using Seaborn<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">import<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">seaborn<\/span> <span style=\"color: #008800; font-weight: bold;\">as<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">sb<\/span>\r\nfig <span style=\"color: #333333;\">=<\/span> plt<span style=\"color: #333333;\">.<\/span>figure(figsize <span style=\"color: #333333;\">=<\/span> (<span style=\"color: #0000dd; font-weight: bold;\">15<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">15<\/span>))\r\nax <span style=\"color: #333333;\">=<\/span> fig<span style=\"color: #333333;\">.<\/span>gca()\r\nsb<span style=\"color: #333333;\">.<\/span>heatmap(correlations, annot<span style=\"color: #333333;\">=<\/span><span style=\"color: #008800; font-weight: bold;\">True<\/span>, ax<span style=\"color: #333333;\">=<\/span>ax)\r\n\r\nplt<span style=\"color: #333333;\">.<\/span>show()\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Using matshow:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\"># Using matshow<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">import<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">numpy<\/span> <span style=\"color: #008800; font-weight: bold;\">as<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">np<\/span>\r\nfig <span style=\"color: #333333;\">=<\/span> plt<span style=\"color: #333333;\">.<\/span>figure(figsize <span style=\"color: #333333;\">=<\/span> (<span style=\"color: #0000dd; font-weight: bold;\">15<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">15<\/span>))\r\nax <span style=\"color: #333333;\">=<\/span> fig<span style=\"color: #333333;\">.<\/span>gca() <span style=\"color: #888888;\"># The gca() method figure module of matplotlib library is used to get the current axes.<\/span>\r\ncax <span style=\"color: #333333;\">=<\/span> ax<span style=\"color: #333333;\">.<\/span>matshow(correlations, vmin<span style=\"color: #333333;\">=-<\/span><span style=\"color: #0000dd; font-weight: bold;\">1<\/span>, vmax<span style=\"color: #333333;\">=<\/span><span style=\"color: #0000dd; font-weight: bold;\">1<\/span>) <span style=\"color: #888888;\"># matshow() function is used to represent an array as a matrix <\/span>\r\nfig<span style=\"color: #333333;\">.<\/span>colorbar(cax)\r\n\r\nticks <span style=\"color: #333333;\">=<\/span> np<span style=\"color: #333333;\">.<\/span>arange(<span style=\"color: #0000dd; font-weight: bold;\">0<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">14<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">1<\/span>) \r\nax<span style=\"color: #333333;\">.<\/span>set_xticks(ticks)\r\nax<span style=\"color: #333333;\">.<\/span>set_yticks(ticks)\r\nax<span style=\"color: #333333;\">.<\/span>set_xticklabels(correlations<span style=\"color: #333333;\">.<\/span>columns)\r\nax<span style=\"color: #333333;\">.<\/span>set_yticklabels(correlations<span style=\"color: #333333;\">.<\/span>columns)\r\n\r\nplt<span style=\"color: #333333;\">.<\/span>show()\r\n<\/pre>\n<p>The outputs from the codes above is also referred to as a &#8216;heatmap&#8217;.<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t8\">8. Scatter Matrix Plot<\/strong><\/h4>\n<p>The scatter plot or scatter matrix shows how much one variable is affected by another variable or the relationship between the variables. This represented using dots in two dimensions. Scatter plots are similar to x-y graphs since they use the horizontal(x) and the vertical(y) axis.<\/p>\n<p>The code below produces a scatter matrix.<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\"># Using Scatter matrix from pandas<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">import<\/span>  <span style=\"color: #0e84b5; font-weight: bold;\">pandas.plotting<\/span> <span style=\"color: #008800; font-weight: bold;\">as<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">pp<\/span>\r\nfig <span style=\"color: #333333;\">=<\/span> plt<span style=\"color: #333333;\">.<\/span>figure(figsize <span style=\"color: #333333;\">=<\/span> (<span style=\"color: #0000dd; font-weight: bold;\">15<\/span>,<span style=\"color: #0000dd; font-weight: bold;\">15<\/span>))\r\nax <span style=\"color: #333333;\">=<\/span> fig<span style=\"color: #333333;\">.<\/span>gca()\r\npp<span style=\"color: #333333;\">.<\/span>scatter_matrix(wine_data, ax<span style=\"color: #333333;\">=<\/span>ax)\r\n<span style=\"color: #888888;\"># pp.scatter_matrix(wine_data[['Wine','Alcohol', 'Ash', 'Malic.acid']], ax=ax) # Taking a subset<\/span>\r\nplt<span style=\"color: #333333;\">.<\/span>show()\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Scatter matrix plot using seaborn<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\"># Using Seaborn<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">import<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">seaborn<\/span> <span style=\"color: #008800; font-weight: bold;\">as<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">sb<\/span>\r\nsb<span style=\"color: #333333;\">.<\/span>pairplot(wine_data[[<span style=\"background-color: #fff0f0;\">'Ash'<\/span>, <span style=\"background-color: #fff0f0;\">'Wine'<\/span>, <span style=\"background-color: #fff0f0;\">'Hue'<\/span>, <span style=\"background-color: #fff0f0;\">'Acl'<\/span>]]) <span style=\"color: #888888;\"># Taking Subset<\/span>\r\nplt<span style=\"color: #333333;\">.<\/span>show()\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Complete Video Tutorial on Plotting<\/strong><\/p>\n<ul>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\"> Tutorial 1 &#8211; Introduction and Basics of Plotting <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=gWieyVShHHk&amp;t=0s\">https:\/\/youtu.be\/gWieyVShHHk<\/a><\/li>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\">Tutorial 2 &#8211; Formatting Your Plot <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=IgzpJ8C2cRo&amp;t=0s\">https:\/\/youtu.be\/IgzpJ8C2cRo<\/a><\/li>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\">Tutorial 3 &#8211; Formatting Your Plot Using shorthand <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=4yExxAqRkc8&amp;t=0s\">https:\/\/youtu.be\/4yExxAqRkc8<\/a><\/li>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\">Tutorial 4 &#8211; PyPlot Functions <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=x8nd4knAtXI&amp;t=0s\">https:\/\/youtu.be\/x8nd4knAtXI<\/a><\/li>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\">Tutorial 5 &#8211; Plotting the Heart Curve <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=JtAXEaiOdwo&amp;t=0s\">https:\/\/youtu.be\/JtAXEaiOdwo<\/a><\/li>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\">Tutorial 6 &#8211; Plotting the Figure 8 Shape <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=p3B7SKipNTA&amp;t=0s\">https:\/\/youtu.be\/p3B7SKipNTA<\/a><\/li>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\">Tutorial 7 &#8211; Working with Subplots <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=qMYum724N8g&amp;t=0s\">https:\/\/youtu.be\/qMYum724N8g<\/a><\/li>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\">Tutorial 8 &#8211; Creating as Scatterplot <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=D3rJwgY2R8E&amp;t=0s\">https:\/\/youtu.be\/D3rJwgY2R8E<\/a><\/li>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\">Tutorial 9 &#8211; Creating a Histogram <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=dEWKFi7TIyY&amp;t=0s\">https:\/\/youtu.be\/dEWKFi7TIyY<\/a><\/li>\n<li><span class=\"style-scope yt-formatted-string\" dir=\"auto\">Tutorial 10 &#8211; Creating a Bar Chart <\/span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" dir=\"auto\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/watch?v=sannLieIIPU&amp;t=0s\">https:\/\/youtu.be\/sannLieIIPU<\/a><\/li>\n<\/ul>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>In this class we would cover Data Visualization with Python. This class follows from Part 1: Your First Data Science Class. I recommend you check &hellip; <!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":242,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,43],"tags":[50,49,52,48,51,47],"class_list":["post-240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science","category-python","tag-box-plot","tag-density-plot","tag-multivariate-plot","tag-scatter-plot","tag-univariate-plot","tag-visualization"],"jetpack_featured_media_url":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-content\/uploads\/sites\/12\/2021\/09\/A-Class-on-Data-Visualization-in-Python.jpg","_links":{"self":[{"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":6,"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/posts\/240\/revisions\/279"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/media\/242"}],"wp:attachment":[{"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/data-science\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}