<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[databites.tech: Visual Bites]]></title><description><![CDATA[Get all my cheatsheets organized in a single place!]]></description><link>https://reads.databites.tech/s/cheatsheets</link><image><url>https://substackcdn.com/image/fetch/$s_!nYiM!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F151064b1-1b76-4f6d-adaf-0efcacff80d1_281x281.png</url><title>databites.tech: Visual Bites</title><link>https://reads.databites.tech/s/cheatsheets</link></image><generator>Substack</generator><lastBuildDate>Tue, 09 Jun 2026 19:38:04 GMT</lastBuildDate><atom:link href="https://reads.databites.tech/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Josep Ferrer]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[databites.hi@gmail.com]]></webMaster><itunes:owner><itunes:email><![CDATA[databites.hi@gmail.com]]></itunes:email><itunes:name><![CDATA[Josep Ferrer]]></itunes:name></itunes:owner><itunes:author><![CDATA[Josep Ferrer]]></itunes:author><googleplay:owner><![CDATA[databites.hi@gmail.com]]></googleplay:owner><googleplay:email><![CDATA[databites.hi@gmail.com]]></googleplay:email><googleplay:author><![CDATA[Josep Ferrer]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Mastering SQL Execution Order with JOINs]]></title><description><![CDATA[Mastering SQL Execution Order: How Queries Really Run Behind the Scenes]]></description><link>https://reads.databites.tech/p/mastering-sql-execution-order-with-fbd</link><guid isPermaLink="false">https://reads.databites.tech/p/mastering-sql-execution-order-with-fbd</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Sun, 07 Jun 2026 10:53:30 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/f4c250ac-d319-4962-a19b-ebd904699056_1465x1057.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Last week we broke down SQL&#8217;s execution order: your clauses don&#8217;t run in the order you write them. <code>FROM</code> first, <code>SELECT</code> fifth.</p><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;1999acf4-d3b4-4e61-9460-4424a272ec6d&quot;,&quot;caption&quot;:&quot;Every SQL query runs in two different orders.&quot;,&quot;cta&quot;:null,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;sm&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;You write SELECT first. SQL runs it fifth.&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:132707413,&quot;name&quot;:&quot;Josep Ferrer&quot;,&quot;bio&quot;:&quot;Outstand using data -- Data Science, Design and Tech Tech Writer @KDnuggets @DataCamp &#128073;&#127995;Inquiries in rfeers@gmail.com&quot;,&quot;photo_url&quot;:&quot;https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd196b5a6-59f2-46dd-99b3-e10ab1bbd27d_604x604.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2026-05-31T09:30:56.677Z&quot;,&quot;cover_image&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/900e252c-6d06-4959-a1c7-056a30f82ccb_1465x1057.png&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://reads.databites.tech/p/sql-execution-order-declarative-language-data&quot;,&quot;section_name&quot;:&quot;Visual Bites&quot;,&quot;video_upload_id&quot;:null,&quot;id&quot;:199918147,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:12,&quot;comment_count&quot;:0,&quot;publication_id&quot;:2143185,&quot;publication_name&quot;:&quot;databites.tech&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/$s_!nYiM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F151064b1-1b76-4f6d-adaf-0efcacff80d1_281x281.png&quot;,&quot;belowTheFold&quot;:false,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><p>With one table, that&#8217;s easy to hold in your head. Add a <code>JOIN</code>, and one question trips up almost everyone: when you combine two tables and then filter them, what runs first?</p><p>The <code>JOIN</code>. It builds the combined table before any filter touches a row, and missing that is the source of most multi-table bugs.</p><p>So today we trace it step by step, on one real query.</p><p>The order, with a JOIN in it</p><p><code>FROM</code> / <code>JOIN</code> &#8594; <code>WHERE</code> &#8594; <code>GROUP BY</code> &#8594; <code>HAVING</code> &#8594; <code>SELECT</code> &#8594; <code>ORDER BY</code> &#8594; <code>LIMIT</code></p><p>JOINs don&#8217;t add a new step. They live <em>inside</em> step one. Everything after that runs on the joined result, not on your original tables.</p><h3>The query</h3><p>Two tables. <code>employees</code> has each person&#8217;s name and field. <code>employee_company_data</code> has their salary and experience.</p><p>The goal: <strong>find the field with the highest average salary, among employees with 5+ years of experience.</strong></p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;sql&quot;,&quot;nodeId&quot;:&quot;93813fcd-6a09-40eb-be0d-a64179ca2235&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-sql">SELECT
      e.Field,
      AVG(ed.Salary) AS Avg_salary,
      COUNT(e.ID)    AS num_answers
FROM employees AS e
LEFT JOIN employee_company_data AS ed
  ON e.ID = ed.ID
WHERE ed.Experience_years &gt; 5
GROUP BY e.Field
HAVING COUNT(e.ID) &gt;= 5
ORDER BY Avg_salary DESC
LIMIT 1</code></pre></div><p>Here's the order SQL actually runs it in.</p><h4><strong>#1 FROM - Defining the Base Table(s)</strong></h4><p>This is where SQL <strong>starts everything</strong>. It determines which table(s) we&#8217;re working with.</p><p>&#10145;&#65039; If we&#8217;re using <strong>JOINs</strong>, SQL <strong>processes them here</strong> before doing any filtering!</p><pre><code><code>FROM employees AS e
LEFT JOIN employee_company_data AS ed
  ON e.ID = ed.ID</code></code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9cJy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9cJy!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png 424w, https://substackcdn.com/image/fetch/$s_!9cJy!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png 848w, https://substackcdn.com/image/fetch/$s_!9cJy!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png 1272w, https://substackcdn.com/image/fetch/$s_!9cJy!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9cJy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png" width="1456" height="735" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:735,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:187869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!9cJy!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png 424w, https://substackcdn.com/image/fetch/$s_!9cJy!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png 848w, https://substackcdn.com/image/fetch/$s_!9cJy!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png 1272w, https://substackcdn.com/image/fetch/$s_!9cJy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e52e350-d90a-4915-9273-52aea946b89b_1781x899.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>At this point, SQL <strong>combines</strong> the tables based on the JOIN condition. The <strong>type of JOIN</strong> (INNER, LEFT, RIGHT, FULL) affects which rows stay in the result set.</p><h4><strong>#2 WHERE - Filtering Rows</strong></h4><p>Now that we have a <strong>combined dataset</strong>, SQL <strong>filters</strong> individual rows <strong>before aggregation</strong>.</p><p>If you filter <strong>before</strong> the JOIN, you might accidentally remove rows you actually need.</p><pre><code><code>WHERE ed.Experience_years &gt; 5</code></code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9Rhe!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9Rhe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png 424w, https://substackcdn.com/image/fetch/$s_!9Rhe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png 848w, https://substackcdn.com/image/fetch/$s_!9Rhe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png 1272w, https://substackcdn.com/image/fetch/$s_!9Rhe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9Rhe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png" width="1456" height="586" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:586,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:135935,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!9Rhe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png 424w, https://substackcdn.com/image/fetch/$s_!9Rhe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png 848w, https://substackcdn.com/image/fetch/$s_!9Rhe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png 1272w, https://substackcdn.com/image/fetch/$s_!9Rhe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88cb2bdd-4e5d-4499-a21d-4b2fcf5fb90e_1624x654.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h4><strong>#3 GROUP BY - Aggregating Data</strong></h4><p>Once SQL has the <strong>right rows</strong>, it groups similar data <strong>into categories</strong>.</p><p>This is especially useful when calculating <strong>averages, totals, or counts per category</strong>.</p><pre><code><code>GROUP BY e.Field</code></code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!s8t3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!s8t3!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png 424w, https://substackcdn.com/image/fetch/$s_!s8t3!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png 848w, https://substackcdn.com/image/fetch/$s_!s8t3!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png 1272w, https://substackcdn.com/image/fetch/$s_!s8t3!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!s8t3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png" width="1456" height="961" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:961,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:208688,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!s8t3!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png 424w, https://substackcdn.com/image/fetch/$s_!s8t3!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png 848w, https://substackcdn.com/image/fetch/$s_!s8t3!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png 1272w, https://substackcdn.com/image/fetch/$s_!s8t3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21cf3f5d-7263-46cf-806a-b51f9fa5a69b_1624x1072.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h4><strong>#4 HAVING - Filtering Groups</strong></h4><p>HAVING is like <strong>WHERE&#8217;s big sibling</strong>, but for <strong>grouped data</strong>.</p><p>&#10145;&#65039; It filters <strong>after</strong> GROUP BY, meaning it only works with <strong>aggregated values</strong>.</p><pre><code><code>HAVING COUNT(e.ID) &gt;= 5</code></code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!8S48!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!8S48!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png 424w, https://substackcdn.com/image/fetch/$s_!8S48!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png 848w, https://substackcdn.com/image/fetch/$s_!8S48!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png 1272w, https://substackcdn.com/image/fetch/$s_!8S48!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!8S48!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png" width="1456" height="784" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:784,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:170167,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/199916862?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!8S48!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png 424w, https://substackcdn.com/image/fetch/$s_!8S48!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png 848w, https://substackcdn.com/image/fetch/$s_!8S48!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png 1272w, https://substackcdn.com/image/fetch/$s_!8S48!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bfbccf6-5f1b-4dc1-871f-659dcb2c09e5_1704x918.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This keeps only fields with 5 employees or more, enough for the average to mean something.</p><h4><strong>#5 SELECT - Picking the Columns</strong></h4><p>Now SQL <strong>decides what to show</strong> in the final output.</p><p>You can only select columns that are in GROUP BY or are <strong>aggregated values</strong>.</p><pre><code><code>SELECT
Field,
AVG(ed.Salary)  AS Avg_salary,
COUNT(e.ID)     AS num_answers
</code></code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ZZey!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZZey!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png 424w, https://substackcdn.com/image/fetch/$s_!ZZey!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png 848w, https://substackcdn.com/image/fetch/$s_!ZZey!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png 1272w, https://substackcdn.com/image/fetch/$s_!ZZey!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZZey!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png" width="1456" height="728" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:728,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:150141,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/199916862?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ZZey!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png 424w, https://substackcdn.com/image/fetch/$s_!ZZey!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png 848w, https://substackcdn.com/image/fetch/$s_!ZZey!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png 1272w, https://substackcdn.com/image/fetch/$s_!ZZey!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F70dac785-a77a-45de-a999-2911f99ec71f_1815x907.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h4><strong>#6 ORDER BY - Sorting the Output</strong></h4><p>Now that we <strong>have our final dataset</strong>, SQL <strong>sorts the results</strong> based on our preferences.</p><pre><code><code>ORDER BY Avg_salary DESC</code></code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!KA7B!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!KA7B!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png 424w, https://substackcdn.com/image/fetch/$s_!KA7B!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png 848w, https://substackcdn.com/image/fetch/$s_!KA7B!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png 1272w, https://substackcdn.com/image/fetch/$s_!KA7B!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!KA7B!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png" width="1169" height="886" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:886,&quot;width&quot;:1169,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:137440,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/199916862?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!KA7B!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png 424w, https://substackcdn.com/image/fetch/$s_!KA7B!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png 848w, https://substackcdn.com/image/fetch/$s_!KA7B!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png 1272w, https://substackcdn.com/image/fetch/$s_!KA7B!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9db73f1a-df1a-4441-a986-952cca0c5e56_1169x886.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This arranges fields <strong>from highest to lowest average salary</strong>.</p><h4><strong>#7 LIMIT - Keeping it Concise &#128290;</strong></h4><p>If we only want to see a single result, we <strong>limit the number of rows</strong> returned.</p><pre><code><code>LIMIT 1</code></code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!6ATY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!6ATY!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png 424w, https://substackcdn.com/image/fetch/$s_!6ATY!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png 848w, https://substackcdn.com/image/fetch/$s_!6ATY!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png 1272w, https://substackcdn.com/image/fetch/$s_!6ATY!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!6ATY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png" width="1169" height="841" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:841,&quot;width&quot;:1169,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:110285,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/199916862?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!6ATY!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png 424w, https://substackcdn.com/image/fetch/$s_!6ATY!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png 848w, https://substackcdn.com/image/fetch/$s_!6ATY!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png 1272w, https://substackcdn.com/image/fetch/$s_!6ATY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc52ffe54-ff7a-4ea2-9c48-f1c8d15ad266_1169x841.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>And we land on the answer: Engineering, the field with the highest average salary.</p><p>Same query, a completely different order from the one on the page, with every step running on what the one before it produced. That is execution order in action.</p><p>Once you can picture that flow, the JOIN mistakes that trip most people up become easy to spot before they happen. Here are three.</p><h3><strong>Three mistakes this prevents</strong></h3><ol><li><p><strong>Filtering before you picture the join.</strong> A <code>JOIN</code> can add or drop rows. Build the combined table in your head first, then reason about <code>WHERE</code>.</p></li><li><p><strong>Using </strong><code>WHERE</code><strong> for grouped data.</strong> Any condition on <code>COUNT</code>, <code>SUM</code>, or <code>AVG</code> belongs in <code>HAVING</code>. <code>WHERE</code> runs before the aggregate exists.</p></li><li><p><strong>Selecting ungrouped columns.</strong> After <code>GROUP BY</code>, every column in <code>SELECT</code> must be in the <code>GROUP BY</code> or wrapped in an aggregate.</p></li></ol><p><strong>Build the joined table first, then filter, group, and filter the groups. Hold that order and multi-table queries stop surprising you.</strong></p><p>Here's this week's cheatsheet &#128071;&#127995;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Aa1Z!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Aa1Z!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png 424w, https://substackcdn.com/image/fetch/$s_!Aa1Z!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png 848w, https://substackcdn.com/image/fetch/$s_!Aa1Z!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png 1272w, https://substackcdn.com/image/fetch/$s_!Aa1Z!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Aa1Z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png" width="1456" height="1779" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1779,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2357767,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/199916862?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!Aa1Z!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png 424w, https://substackcdn.com/image/fetch/$s_!Aa1Z!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png 848w, https://substackcdn.com/image/fetch/$s_!Aa1Z!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png 1272w, https://substackcdn.com/image/fetch/$s_!Aa1Z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5041c7b-dd3b-444a-87ab-4c03ba613912_3693x4512.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>&#8212;Josep</p><div><hr></div><h2>Are you still here? &#129488;</h2><p>&#128073;&#127995; I want this newsletter to be useful, so please let me know your feedback!</p><div class="poll-embed" data-attrs="{&quot;id&quot;:544938}" data-component-name="PollToDOM"></div><p>Before you go,<strong> tap the &#128154; button at the bottom of this email to show your support</strong>&#8212;<em>it really helps and means a lot!</em></p><p><strong>Any doubt? Let&#8217;s start a conversation! &#128071;&#127995;</strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.databites.tech/p/the-transformers-architecture/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://www.databites.tech/p/the-transformers-architecture/comments"><span>Leave a comment</span></a></p><div><hr></div><h2>Want to get more of my content? &#128587;&#127995;&#8205;&#9794;&#65039;</h2><p>Reach me on:</p><ul><li><p><strong><a href="https://www.linkedin.com/in/iamjosepferrer/">LinkedIn</a> and</strong> <strong><a href="https://x.com/iamjosepferrer">X (Twitter)</a> to get daily posts about Data Science.</strong></p></li><li><p>My <strong><a href="https://medium.com/@iamjosepferrer">Medium</a></strong><a href="https://medium.com/@rfeers"> </a><strong><a href="https://medium.com/@rfeers">Blog</a></strong> to learn more about Data Science, Machine Learning, and AI.</p></li><li><p>Just email me at rfeers@gmail.com for any inquiries or to ask for help! &#129299;</p></li></ul>]]></content:encoded></item><item><title><![CDATA[You write SELECT first. SQL runs it fifth.]]></title><description><![CDATA[The hidden order your database uses to run every query, and why it explains your most confusing errors.]]></description><link>https://reads.databites.tech/p/sql-execution-order-declarative-language-data</link><guid isPermaLink="false">https://reads.databites.tech/p/sql-execution-order-declarative-language-data</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Sun, 31 May 2026 09:30:56 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/900e252c-6d06-4959-a1c7-056a30f82ccb_1465x1057.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Every SQL query runs in two different orders.</p><p><strong>The one you wrote. And the one your database actually uses to run it.</strong></p><p>That&#8217;s it. Strip away the syntax, and that&#8217;s what&#8217;s happening underneath: the clauses you typed top to bottom get quietly reshuffled into a completely different sequence before a single row is touched.</p><p>Most people learn to <em>write</em> SQL. Almost no one learns how it <em>runs</em>.</p><p>And that gap (between writing order and execution order) is where the confusing errors live. The alias that &#8220;doesn&#8217;t exist.&#8221; The <code>WHERE</code> clause that refuses to filter your <code>COUNT()</code>. The query that flies on 100 rows and crawls on 100 million.</p><p>None of it is random. It all traces back to one thing: the order in which the engine actually processes your query. </p><p>I&#8217;ve written more SQL than I can remember, and I <em>still</em> run that order in my head every time a query surprises me. It&#8217;s the single mental model that&#8217;s saved me the most debugging time.</p><p>Today&#8217;s issue breaks down what it means for SQL to be declarative, why writing order and execution order diverge, and what happens at each of the seven steps.</p><h2>SQL tells the database <em>what</em>, not <em>how</em></h2><p>SQL is a <strong>declarative</strong> language. You describe the result you want; you don&#8217;t spell out the steps to compute it.</p><p>Think of ordering at a restaurant. You ask for the dish. You don&#8217;t walk into the kitchen and dictate which pan gets heated first, when to salt, how to plate it. You declare the outcome, the kitchen decides the sequence.</p><p>SQL works the same way. You declare the shape of the result, and the engine&#8217;s query planner decides how to get there. Which means it&#8217;s free to evaluate your clauses in whatever order is <em>logically</em> correct, regardless of the order you typed them.</p><p>So before anything else, it&#8217;s worth separating the two orders in your head.</p><h2>Coding order vs. Execution order</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HWZR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HWZR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png 424w, https://substackcdn.com/image/fetch/$s_!HWZR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png 848w, https://substackcdn.com/image/fetch/$s_!HWZR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png 1272w, https://substackcdn.com/image/fetch/$s_!HWZR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HWZR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png" width="728" height="377.5" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:755,&quot;width&quot;:1456,&quot;resizeWidth&quot;:728,&quot;bytes&quot;:227658,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!HWZR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png 424w, https://substackcdn.com/image/fetch/$s_!HWZR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png 848w, https://substackcdn.com/image/fetch/$s_!HWZR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png 1272w, https://substackcdn.com/image/fetch/$s_!HWZR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F978f01ae-151f-49ba-9c77-5b6aa26332e3_1774x920.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This is the structure you write, almost every time:</p><blockquote><p><code>SELECT</code> &#8594; <code>FROM</code> &#8594; <code>WHERE</code> &#8594; <code>GROUP BY</code> &#8594; <code>HAVING</code> &#8594; <code>ORDER BY</code> &#8594; <code>LIMIT</code></p></blockquote><p>And this is the order the engine actually runs it in:</p><blockquote><p><code>FROM</code> / <code>JOIN</code> &#8594; <code>WHERE</code> &#8594; <code>GROUP BY</code> &#8594; <code>HAVING</code> &#8594; <code>SELECT</code> &#8594; <code>ORDER BY</code> &#8594; <code>LIMIT</code></p></blockquote><p>Look at where <code>SELECT</code> lands.</p><p><strong>You write it first. It runs fifth.</strong></p><p>That one detail causes more SQL confusion than anything else, and we&#8217;ll come back to exactly why in a moment. This logical sequence even has a name: <em>logical query processing</em>, the term Itzik Ben-Gan has spent a career teaching. The order in which clauses are <em>evaluated</em>, as opposed to the order you <em>read</em> them. Once it clicks, SQL stops feeling arbitrary.</p><p>Let&#8217;s walk the seven steps.</p><h2>The seven steps, command by command</h2><h4><strong>#1 &#8212; </strong><code>FROM</code><strong> (and </strong><code>JOIN</code><strong>)</strong> </h4><p>The starting point. Before SQL can filter or group anything, it needs the data. <code>FROM</code> identifies the source table, and when your data lives across several tables, <code>JOIN</code> stitches them together right here, first. Everything downstream operates on this assembled result.</p><h4><strong>#2 &#8212; </strong><code>WHERE</code><strong> </strong></h4><p>Now SQL filters individual rows, keeping only the ones that meet your condition. Crucially, this runs on <em>raw rows</em>, before any grouping exists.</p><h4><strong>#3 &#8212; </strong><code>GROUP BY</code> </h4><p>SQL collapses rows into groups: one row per distinct value, or combination of values. This is where aggregation lives: <code>COUNT()</code>, <code>SUM()</code>, <code>AVG()</code>, <code>MIN()</code>, <code>MAX()</code>.</p><h4><strong>#4 &#8212; </strong><code>HAVING</code> </h4><p>A second filter, but this one runs <em>after</em> grouping, so it can filter on aggregated values. &#8220;Only groups with more than five members&#8221; is a <code>HAVING</code> job, never a <code>WHERE</code> job.</p><h4><strong>#5 &#8212; </strong><code>SELECT</code> </h4><p>Only now does SQL pick the columns you asked for, apply your aliases (<code>AS</code>), and compute final expressions. Fifth. Not first.</p><h4><strong>#6 &#8212; </strong><code>ORDER BY</code> </h4><p>With the result assembled, SQL sorts it in ascending (<code>ASC</code>) or descending (<code>DESC</code>) order.</p><h4><strong>#7 &#8212; </strong><code>LIMIT</code> </h4><p>Finally, it trims the output to the number of rows you want. Invaluable when you&#8217;re testing against a huge table and don&#8217;t want the whole thing back.</p><h2>Two bugs that suddenly make sense</h2><p>Here&#8217;s the payoff. Two errors every analyst hits, both explained by a single line on that list.</p><ol><li><p><code>WHERE</code><strong> can&#8217;t filter an aggregate.</strong> </p><p>You try <code>WHERE SUM(minutes) &gt; 100</code> and SQL rejects it. Of course it does: <code>WHERE</code> (step 2) runs <em>before</em> <code>GROUP BY</code> (step 3). At that point the sum doesn&#8217;t exist yet. That&#8217;s the entire reason <code>HAVING</code> exists, it&#8217;s the filter that runs <em>after</em> aggregation.</p></li><li><p><strong>A </strong><code>SELECT</code><strong> alias is invisible to </strong><code>WHERE</code><strong>.</strong> </p><p>You name a column <code>AS total_time</code>, then try to use <code>total_time</code> in your <code>WHERE</code> clause, and you get an error. The alias is born in <code>SELECT</code> (step 5), three steps <em>after</em> <code>WHERE</code> already ran. You&#8217;re reaching for something that doesn&#8217;t exist yet.</p></li></ol><p>Neither is a quirk. Both fall straight out of execution order.</p><h2>Watch it run: a worked example</h2><p>Say a phone company has two tables. <code>CLIENTS</code> holds each customer and their monthly limit. <code>USAGE</code> holds their daily minutes.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!l8o-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!l8o-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png 424w, https://substackcdn.com/image/fetch/$s_!l8o-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png 848w, https://substackcdn.com/image/fetch/$s_!l8o-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png 1272w, https://substackcdn.com/image/fetch/$s_!l8o-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!l8o-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png" width="1288" height="542" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:542,&quot;width&quot;:1288,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Example tables. Clients and Usage.&quot;,&quot;title&quot;:&quot;Example tables. Clients and Usage.&quot;,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Example tables. Clients and Usage." title="Example tables. Clients and Usage." srcset="https://substackcdn.com/image/fetch/$s_!l8o-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png 424w, https://substackcdn.com/image/fetch/$s_!l8o-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png 848w, https://substackcdn.com/image/fetch/$s_!l8o-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png 1272w, https://substackcdn.com/image/fetch/$s_!l8o-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0fa9609e-d660-4128-b8f5-59c318fe701f_1288x542.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The goal: find the clients who blew past their monthly limit.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;sql&quot;,&quot;nodeId&quot;:&quot;558f4317-5771-4c2f-9451-3e073c08d6a1&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-sql">SELECT DISTINCT
       usage.id,
       clients.owner_name,
       SUM(usage.usage_minutes) AS total_browsing_time,
       clients.browsing_minutes_limit
FROM usage
LEFT JOIN clients
  ON clients.ID = usage.ID
WHERE usage.Date &gt; &#8220;2023-05-01&#8221; AND usage.Date &lt; &#8220;2023-06-01&#8221;
GROUP BY 1,2,4
HAVING SUM(usage.usage_minutes) &gt; clients.browsing_minutes_limit
ORDER BY clients.browsing_minutes_limit DESC</code></pre></div><p>You read that from <code>SELECT</code> down. The engine runs it like this:</p><ol><li><p><code>FROM</code><strong> + </strong><code>JOIN</code> merge <code>CLIENTS</code> and <code>USAGE</code> into one combined table.</p></li><li><p><code>WHERE</code> drops every usage record outside of May.</p></li><li><p><code>GROUP BY</code> rolls each client&#8217;s daily rows into a single total.</p></li><li><p><code>HAVING</code> keeps only the clients whose total exceeded their limit &#8212; a filter on an aggregate, only possible now.</p></li><li><p><code>SELECT</code> picks the columns and surfaces the summed minutes.</p></li><li><p><code>ORDER BY</code> sorts the offenders by their limit.</p></li><li><p><code>LIMIT</code> would cap the rows returned (we kept them all here).</p></li></ol><p>Same query. A completely different order from the one on the page &#8212; and every step depends on the one before it.</p><h2>The shift that makes SQL click</h2><p>Stop reading your queries top to bottom. Read them the way the engine does, and the language stops fighting you.</p><p>You&#8217;ll know exactly where each clause can reach: why <code>WHERE</code> can&#8217;t see your groups, why <code>HAVING</code> can, why your alias works in <code>ORDER BY</code> but not in <code>WHERE</code>. The error messages turn from mysteries into signposts.</p><p><strong>Don&#8217;t memorize the order &#8212; internalize the flow: build the data, filter the rows, group them, filter the groups, then select, sort, and trim. Once you see SQL the way SQL sees itself, the bugs stop being bugs.</strong></p><p>Next week: the same order, but with <code>JOIN</code>s and a real dataset &#8212; where execution order goes from useful to essential.</p><p>Here's this week's cheatsheet &#128071;&#127995;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NSOa!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NSOa!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png 424w, https://substackcdn.com/image/fetch/$s_!NSOa!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png 848w, https://substackcdn.com/image/fetch/$s_!NSOa!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png 1272w, https://substackcdn.com/image/fetch/$s_!NSOa!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NSOa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png" width="1456" height="1727" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1727,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1381972,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/199918147?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!NSOa!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png 424w, https://substackcdn.com/image/fetch/$s_!NSOa!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png 848w, https://substackcdn.com/image/fetch/$s_!NSOa!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png 1272w, https://substackcdn.com/image/fetch/$s_!NSOa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F070bb293-1989-49d2-b1b7-043615d32133_3693x4380.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>&#8212;Josep</p><div><hr></div><h2>Are you still here? &#129488;</h2><p>&#128073;&#127995; I want this newsletter to be useful, so please let me know your feedback!</p><div class="poll-embed" data-attrs="{&quot;id&quot;:521725}" data-component-name="PollToDOM"></div><div><hr></div><p>Before you go,<strong> tap the &#128154; button at the bottom of this email to show your support</strong>&#8212;<em>it really helps and means a lot!</em></p><p><strong>Any doubt? Let&#8217;s start a conversation! &#128071;&#127995;</strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.databites.tech/p/the-transformers-architecture/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://www.databites.tech/p/the-transformers-architecture/comments"><span>Leave a comment</span></a></p><div><hr></div><h2>Want to get more of my content? &#128587;&#127995;&#8205;&#9794;&#65039;</h2><p>Reach me on:</p><ul><li><p><strong><a href="https://www.linkedin.com/in/iamjosepferrer/">LinkedIn</a> and</strong> <strong><a href="https://x.com/iamjosepferrer">X (Twitter)</a> to get daily posts about Data Science.</strong></p></li><li><p>My <strong><a href="https://medium.com/@iamjosepferrer">Medium</a></strong><a href="https://medium.com/@rfeers"> </a><strong><a href="https://medium.com/@rfeers">Blog</a></strong> to learn more about Data Science, Machine Learning, and AI.</p></li><li><p>Just email me at rfeers@gmail.com for any inquiries or to ask for help! &#129299;</p></li></ul>]]></content:encoded></item><item><title><![CDATA[The Art and Science of Data Visualization]]></title><description><![CDATA[Transforming raw data into compelling visual stories.]]></description><link>https://reads.databites.tech/p/the-art-and-science-of-data-visualization-92d</link><guid isPermaLink="false">https://reads.databites.tech/p/the-art-and-science-of-data-visualization-92d</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Sun, 24 May 2026 16:23:00 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/ca2b89c0-3d80-4746-b132-a27afda59aab_1465x1057.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Every chart you&#8217;ve ever seen is built from exactly two things.</p><p><strong>Data. And a design decision.</strong></p><p>That&#8217;s it. Strip away the complexity and that&#8217;s what you&#8217;re left with, what information you&#8217;re showing, and how you&#8217;re choosing to show it.</p><p>Most people focus on the &#8220;what.&#8221; The best data communicators obsess over the &#8220;how.&#8221;</p><p>Today&#8217;s issue breaks down the foundation of Data Visualization: what a chart actually is, what types of data exist, and how visual encodings work. </p><p><em>Three cheatsheets. One complete picture.</em></p><p>As Alberto Cairo defines in his book The Functional Art:</p><blockquote><p>Data visualization is a collection of methods that use visual representations to explore, make sense of, and communicate quantitative data.</p></blockquote><p>Think of Data Visualization as our compass, guiding us through this numeric ocean, translating vast datasets into meaningful and understandable insights.</p><div class="pullquote"><p>3 DataViz Cheatsheets in the end &#8252;&#65039;</p></div><p><em>So, what constitutes an effective visualization?</em></p><p><em>What differentiates a visualization that illuminates from one that only adds to the confusion?</em></p><p>In our journey today, we delve into the core principles of Data Visualization.</p><p>This article aims to unravel the mysteries of this crucial skill, uncovering how it illuminates the path through the data-driven landscape we navigate daily.</p><p>So let&#8217;s try to understand together the theory behind Data Visualization &#128071;&#127995;</p><h2>The Basics Behind Data Visualization</h2><p>In the Data Science field, <strong>one of the most vital yet challenging skills is the art of storytelling through data.</strong> And this is precisely the field of Data Visualization. A glance at the dictionary definition gives us a clear starting point:</p><blockquote><p><em>&#8220;The act of representing information as a picture, diagram or chart, or a picture that represents information in this way&#8221;</em></p></blockquote><p>At its core, Data Visualization is about shaping a narrative from a dataset. </p><p><strong>It transforms data into a form that is not only digestible and visually appealing but also delivers a powerful impact.</strong></p><p>While it may not have the same reputation (or appeal) as other fields like Machine Learning, Data Visualization is a fundamental aspect of a data scientist&#8217;s toolkit.</p><p>In our modern, data-centric world, think of Data Visualization as a pair of glasses that brings clarity to a blurry scene.</p><p><em>So&#8230; a natural question that arises is, why do we need Data Visualization?</em></p><h2>A Brief Overview of the Data Visualization Field</h2><p>During the XX century, data was predominantly displayed in stark tables, with little consideration for ease of interpretation.</p><p>Not long ago,<strong> the types of charts and graphs we instantly recognize today would have been foreign to people.</strong></p><p>Modern concepts like Pie Charts, Bar Charts, and trend lines are quite modern developments. William Playfair is heralded as one of the pioneers of modern Data Visualization, credited with creating many of the graphical formats we use today.</p><p>And the big question is&#8230; <em>why did he do so?</em></p><p>When trying to identify Scotland&#8217;s most significant economic ties, Playfair realised that crafting a visualization with bars representing the number of importations and exportations for each partner smoothed the process.</p><p>And this is how the Bar Chart was born.</p><h3>Bar Chart&#8202;&#8212;&#8202;1781</h3><p>Bar Chart Playfair&#8217;s bar chart depicted Scotland&#8217;s trade balance with various European territories and the New World.</p><p>A glance at this chart revealed Scotland&#8217;s major trading partners and their respective trade volumes and balances.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fO0k!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fO0k!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png 424w, https://substackcdn.com/image/fetch/$s_!fO0k!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png 848w, https://substackcdn.com/image/fetch/$s_!fO0k!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png 1272w, https://substackcdn.com/image/fetch/$s_!fO0k!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fO0k!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png" width="500" height="336" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:336,&quot;width&quot;:500,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;William Playfair&#8217;s bar chart representing the most important scottish economic partners.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="William Playfair&#8217;s bar chart representing the most important scottish economic partners." title="William Playfair&#8217;s bar chart representing the most important scottish economic partners." srcset="https://substackcdn.com/image/fetch/$s_!fO0k!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png 424w, https://substackcdn.com/image/fetch/$s_!fO0k!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png 848w, https://substackcdn.com/image/fetch/$s_!fO0k!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png 1272w, https://substackcdn.com/image/fetch/$s_!fO0k!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef07b77f-6ca9-4f93-ac79-f9c6dfffb146_500x336.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">William Playfair&#8217;s bar chart represents the most important Scottish economic partners.</figcaption></figure></div><h3>Line Chart&#8202;&#8212;&#8202;1786</h3><p>For England, with more data at his disposal, Playfair was able to produce time-series graphs.</p><p>At a glance, it highlights that until 1755, England had an unfavorable trade balance, which shifted to a favorable one from that year onwards.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!iad0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!iad0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png 424w, https://substackcdn.com/image/fetch/$s_!iad0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png 848w, https://substackcdn.com/image/fetch/$s_!iad0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png 1272w, https://substackcdn.com/image/fetch/$s_!iad0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!iad0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png" width="1280" height="946" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:946,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;William Playfair&#8217;s line chart representing the trade balance between England and Norway and Denmark.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="William Playfair&#8217;s line chart representing the trade balance between England and Norway and Denmark." title="William Playfair&#8217;s line chart representing the trade balance between England and Norway and Denmark." srcset="https://substackcdn.com/image/fetch/$s_!iad0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png 424w, https://substackcdn.com/image/fetch/$s_!iad0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png 848w, https://substackcdn.com/image/fetch/$s_!iad0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png 1272w, https://substackcdn.com/image/fetch/$s_!iad0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77564ccb-1d29-4f97-ba34-468a97f22b27_1280x946.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">William Playfair&#8217;s line chart represents the trade balance between England, Norway and Denmark.</figcaption></figure></div><h3>Pie Chart&#8202;&#8212;&#8202;1801</h3><p>Fifteen years later, in 1801, Playfair designed the first known pie chart. This chart illustrates the proportions of England&#8217;s total trade volume with various regions of the world.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!-WGb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!-WGb!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png 424w, https://substackcdn.com/image/fetch/$s_!-WGb!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png 848w, https://substackcdn.com/image/fetch/$s_!-WGb!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png 1272w, https://substackcdn.com/image/fetch/$s_!-WGb!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!-WGb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png" width="400" height="462" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c67633fa-c07c-401d-992e-451425163a06_400x462.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:462,&quot;width&quot;:400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;William Playfair&#8217;s pie chart representing Englan&#8217;d total trade volume with different regions.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="William Playfair&#8217;s pie chart representing Englan&#8217;d total trade volume with different regions." title="William Playfair&#8217;s pie chart representing Englan&#8217;d total trade volume with different regions." srcset="https://substackcdn.com/image/fetch/$s_!-WGb!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png 424w, https://substackcdn.com/image/fetch/$s_!-WGb!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png 848w, https://substackcdn.com/image/fetch/$s_!-WGb!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png 1272w, https://substackcdn.com/image/fetch/$s_!-WGb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc67633fa-c07c-401d-992e-451425163a06_400x462.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">William Playfair&#8217;s pie chart represents England's total trade volume with different regions.</figcaption></figure></div><p>So basically, Data Visualization was born as a way to smooth the process of interpreting data.</p><p>It serves as a vital bridge, particularly for those who aren&#8217;t fluent in the complex languages of numbers and algorithms, allowing them to navigate and comprehend intricate data stories with ease.</p><h2>Data Visualization Basics</h2><p>One of the foundational concepts of the field of Data Visualization is that every chart or graphical representation we encounter is fundamentally constructed from two primary elements:</p><ul><li><p>Data</p></li><li><p>Visual elements</p></li></ul><p>It is quite difficult to attribute this specific statement to a single individual, as this is a basic idea held and expressed by many experts in the field.</p><p>However, one notable figure in Data Visualization who has emphasized the importance of combining data and visual elements effectively is Edward Tufte.</p><p>He has extensively written regarding the principles of good graphical representation, highlighting the interplay between data and visuals in creating meaningful and clear presentations of information.</p><h3>1. The key element: Data</h3><p>When contemplating Data Visualization, it&#8217;s common to first think of numerical data. However, this represents just a fraction of the wide variety of data types at our disposal. For effective visualization, it&#8217;s crucial to recognize and utilize the full spectrum of data types available.</p><p>This spectrum includes both continuous and discrete numerical values. According to Clause O. Wilke, beyond these, data can also manifest as discrete categories, temporal elements (like dates and times), and even textual information.</p><p>Each of these data types brings its own nuances and requires different visualization approaches. To categorize these data types further, we can consider:</p><ul><li><p>Numerical data as <strong>Quantitative,</strong> offering measurable and countable characteristics.</p></li><li><p>Categorical data as <strong>Qualitative</strong>, which includes dates, times, and text. It emphasizes non-numeric aspects and qualities.</p></li></ul><p>Recognizing these categories is fundamental in data visualization as it guides us in choosing the most appropriate and effective methods to represent our data.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!q-IB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!q-IB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png 424w, https://substackcdn.com/image/fetch/$s_!q-IB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png 848w, https://substackcdn.com/image/fetch/$s_!q-IB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png 1272w, https://substackcdn.com/image/fetch/$s_!q-IB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!q-IB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png" width="1200" height="685" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:685,&quot;width&quot;:1200,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!q-IB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png 424w, https://substackcdn.com/image/fetch/$s_!q-IB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png 848w, https://substackcdn.com/image/fetch/$s_!q-IB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png 1272w, https://substackcdn.com/image/fetch/$s_!q-IB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7279366d-d45b-46ea-ae48-07e4e50e1862_1200x685.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Image by Author. Classification extracted from Fundamentals of Data Visualization, O&#8217;Reilly.</figcaption></figure></div><h3>2. The Art of Encoding Data&#8202;&#8212;&#8202;Visual Encodings&#127912;</h3><p>At the heart of Data Visualization lies the skill of visual encoding, where abstract numerical data is transformed into easily understandable graphical forms. This is akin to speaking a universal visual language, where everyone, regardless of their background in data analysis, can interpret the information at a glance.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!G3vp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!G3vp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png 424w, https://substackcdn.com/image/fetch/$s_!G3vp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png 848w, https://substackcdn.com/image/fetch/$s_!G3vp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png 1272w, https://substackcdn.com/image/fetch/$s_!G3vp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!G3vp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png" width="1456" height="987" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:987,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Visual Encoding of data. Image by the author.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Visual Encoding of data. Image by the author." title="Visual Encoding of data. Image by the author." srcset="https://substackcdn.com/image/fetch/$s_!G3vp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png 424w, https://substackcdn.com/image/fetch/$s_!G3vp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png 848w, https://substackcdn.com/image/fetch/$s_!G3vp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png 1272w, https://substackcdn.com/image/fetch/$s_!G3vp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8e9b291f-a9d0-49b0-8adf-863dd3edd8b4_1597x1083.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Interestingly, diverse visualization types, such as scatterplots, pie charts, and heatmaps, share a common visual dialect.</p><p>This shared language is all about converting data values into visual elements&#8202;&#8212;&#8202;think of it as turning cold numbers into vivid, colorful representations on your screen or paper.</p><p>Yet, here&#8217;s a fascinating aspect: <em>There&#8217;s an almost endless array of methods to visually represent data!</em></p><p>To simplify these methods, and according to <a href="https://www.cs.ubc.ca/~tmm/">T.Munzner</a>, there is a primary encoding type called Retinal Encoding.</p><ul><li><p><strong>Retinal Encodings: </strong>This category includes visual characteristics like shape, size, color, and intensity. These are the attributes that immediately grab our attention, acting as the visual &#8216;hook&#8217; of the data story. Each element&#8217;s distinct appearance plays a crucial role in how we perceive and interpret the data.</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!BN5m!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!BN5m!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png 424w, https://substackcdn.com/image/fetch/$s_!BN5m!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png 848w, https://substackcdn.com/image/fetch/$s_!BN5m!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png 1272w, https://substackcdn.com/image/fetch/$s_!BN5m!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!BN5m!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png" width="1456" height="961" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:961,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Retinal Encodings. Image by the author.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Retinal Encodings. Image by the author." title="Retinal Encodings. Image by the author." srcset="https://substackcdn.com/image/fetch/$s_!BN5m!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png 424w, https://substackcdn.com/image/fetch/$s_!BN5m!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png 848w, https://substackcdn.com/image/fetch/$s_!BN5m!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png 1272w, https://substackcdn.com/image/fetch/$s_!BN5m!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b9539a-e31d-444d-b593-5ec1ea99cdd5_1795x1185.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Retinal Encodings. Image by the author.</strong></figcaption></figure></div><p>On the other hand, and commonly associated with our brain&#8217;s spatial skills, there is a second group that some people call &#8220;spatial encodings&#8221;.</p><ul><li><p><strong>Spatial Encodings: </strong>These leverage the spatial awareness capabilities of our brain&#8217;s cortex to represent information. This encoding approach can be realized by utilizing a position on a scale, establishing a specific sequence, or employing relative sizes for representation.</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!VcbM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!VcbM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png 424w, https://substackcdn.com/image/fetch/$s_!VcbM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png 848w, https://substackcdn.com/image/fetch/$s_!VcbM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png 1272w, https://substackcdn.com/image/fetch/$s_!VcbM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!VcbM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png" width="1456" height="477" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:477,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Spatial Encodings. Image by the author.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Spatial Encodings. Image by the author." title="Spatial Encodings. Image by the author." srcset="https://substackcdn.com/image/fetch/$s_!VcbM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png 424w, https://substackcdn.com/image/fetch/$s_!VcbM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png 848w, https://substackcdn.com/image/fetch/$s_!VcbM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png 1272w, https://substackcdn.com/image/fetch/$s_!VcbM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e247315-e857-4324-a5e4-7ac00f5db176_1884x617.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Spatial Encodings. Image by the author.</strong></figcaption></figure></div><p>Incorporating various encodings into a single chart is technically feasible, yet it risks overwhelming the viewer. Simplicity in data visualization is key, too many encodings can muddle the message.</p><p>Ideally, limiting to one or two retinal encodings per chart enhances clarity and comprehension.</p><p>Remember, in Data Visualization, embracing minimalism often yields the most impactful results.</p><p><em>It&#8217;s akin to seasoning a meal&#8202;&#8212;&#8202;a judicious sprinkle of salt and pepper can elevate the dish, whereas an excessive amount can spoil it.</em></p><p>The choice of encoding should align with the narrative you aim to convey with your data. Therefore, a more pertinent question to ponder is not just which encoding to use, but how it serves the story your data tells.</p><h2>Choosing the Right Visualization</h2><p>In the wide landscape of Data Visualization, it&#8217;s essential to select the most effective visual encodings that match the nature of your data.</p><p>Not all visualization methods suit every kind of data, so it&#8217;s crucial to pair the right type of visualization with the specific characteristics of the data you&#8217;re working with.</p><p>For instance, when dealing with continuous variables like weight and height, their best representation often comes from positioning them on a scatter plot. This approach effectively communicates variations and relationships within the data.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!MNoN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!MNoN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png 424w, https://substackcdn.com/image/fetch/$s_!MNoN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png 848w, https://substackcdn.com/image/fetch/$s_!MNoN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png 1272w, https://substackcdn.com/image/fetch/$s_!MNoN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!MNoN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png" width="1456" height="1156" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1156,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Image by the author. Scatter plot of numerical variables.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Image by the author. Scatter plot of numerical variables." title="Image by the author. Scatter plot of numerical variables." srcset="https://substackcdn.com/image/fetch/$s_!MNoN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png 424w, https://substackcdn.com/image/fetch/$s_!MNoN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png 848w, https://substackcdn.com/image/fetch/$s_!MNoN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png 1272w, https://substackcdn.com/image/fetch/$s_!MNoN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F477621d4-f24d-46a9-8ed7-edab7893d359_1600x1270.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Image by the author. Scatter plot of numerical variables.</figcaption></figure></div><p>On the other hand, categorical variables, which include categories like gender or nationality, are more effectively represented through distinct visual elements such as color coding or shape. This distinction allows these variables to stand out clearly and be easily interpreted in the context of the visualization.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ZDwA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZDwA!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png 424w, https://substackcdn.com/image/fetch/$s_!ZDwA!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png 848w, https://substackcdn.com/image/fetch/$s_!ZDwA!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png 1272w, https://substackcdn.com/image/fetch/$s_!ZDwA!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZDwA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png" width="1456" height="1194" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1194,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Image by the author. Scatter plot of numerical variables with a categorical variable legend.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Image by the author. Scatter plot of numerical variables with a categorical variable legend." title="Image by the author. Scatter plot of numerical variables with a categorical variable legend." srcset="https://substackcdn.com/image/fetch/$s_!ZDwA!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png 424w, https://substackcdn.com/image/fetch/$s_!ZDwA!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png 848w, https://substackcdn.com/image/fetch/$s_!ZDwA!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png 1272w, https://substackcdn.com/image/fetch/$s_!ZDwA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fe47a09-4487-464b-bf99-a08e82b75fe8_1600x1312.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Image by the author. Scatter plot of numerical variables with a categorical variable legend.</figcaption></figure></div><p>Underpinning the effectiveness of these choices are fundamental theories that explain why certain visual encodings resonate more intuitively with us.</p><p>Understanding these underlying principles can guide us in creating more impactful and comprehensible visualizations.</p><h2>The Core of Effective Data Visualization</h2><p>In Data Visualization, striking a harmonious balance between aesthetic appeal and practical functionality is essential. Sometimes, choosing certain visual encodings, even if they appear less efficient, is intentional to convey a specific message or evoke emotions.</p><p>In our contemporary world, where data streams are ever-expanding, the significance of crafting visual stories that resonate is paramount, particularly when our audience comprises individuals not well-versed in data.</p><p>Effective data visualization transcends mere number presentation, it involves weaving a compelling narrative with our data.</p><p>It&#8217;s about animating our data, interweaving stories that establish a link between abstract figures and tangible, real-world consequences and insights.</p><p>For those of us passionate about technology and data, Data Visualization is more than a skill&#8202;&#8212;<em>&#8202;it&#8217;s an art form, a unique language, and a bridge connecting us to the wider world.</em></p><p>Now&#8230; what you have been waiting all along&#8230; Here goes our weekly cheatsheet(s)&#128071;&#127995;</p><h4><strong>1. The Concept of Chart</strong></h4><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CFG-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CFG-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png 424w, https://substackcdn.com/image/fetch/$s_!CFG-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png 848w, https://substackcdn.com/image/fetch/$s_!CFG-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png 1272w, https://substackcdn.com/image/fetch/$s_!CFG-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CFG-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png" width="1456" height="1629" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1629,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2068920,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/161218886?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CFG-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png 424w, https://substackcdn.com/image/fetch/$s_!CFG-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png 848w, https://substackcdn.com/image/fetch/$s_!CFG-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png 1272w, https://substackcdn.com/image/fetch/$s_!CFG-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9965506-c0d2-4134-b7e3-4c9b0630d6dd_3693x4133.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h4>2. Visual Encodings</h4><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!GWcA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!GWcA!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png 424w, https://substackcdn.com/image/fetch/$s_!GWcA!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png 848w, https://substackcdn.com/image/fetch/$s_!GWcA!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png 1272w, https://substackcdn.com/image/fetch/$s_!GWcA!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!GWcA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png" width="1456" height="1663" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1663,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1931340,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/161218886?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!GWcA!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png 424w, https://substackcdn.com/image/fetch/$s_!GWcA!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png 848w, https://substackcdn.com/image/fetch/$s_!GWcA!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png 1272w, https://substackcdn.com/image/fetch/$s_!GWcA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04d5d6b2-a15b-4048-9a06-7457e1ae77f9_3693x4217.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h4>3. The Data</h4><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Fdkk!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Fdkk!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png 424w, https://substackcdn.com/image/fetch/$s_!Fdkk!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png 848w, https://substackcdn.com/image/fetch/$s_!Fdkk!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png 1272w, https://substackcdn.com/image/fetch/$s_!Fdkk!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Fdkk!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png" width="1456" height="1583" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1583,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:3192809,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/161218886?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Fdkk!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png 424w, https://substackcdn.com/image/fetch/$s_!Fdkk!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png 848w, https://substackcdn.com/image/fetch/$s_!Fdkk!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png 1272w, https://substackcdn.com/image/fetch/$s_!Fdkk!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36c7e75a-22a2-418d-9245-afb391af9d59_3693x4016.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2>Are you still here? &#129488;</h2><p>&#128073;&#127995; I want this newsletter to be useful, so please let me know your feedback!</p><div class="poll-embed" data-attrs="{&quot;id&quot;:517801}" data-component-name="PollToDOM"></div><div><hr></div><p>Before you go,<strong> tap the &#128154; button at the bottom of this email to show your support</strong>&#8212;<em>it really helps and means a lot!</em></p><p><strong>Any doubt? Let&#8217;s start a conversation! &#128071;&#127995;</strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.databites.tech/p/the-transformers-architecture/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://www.databites.tech/p/the-transformers-architecture/comments"><span>Leave a comment</span></a></p><div><hr></div><h2>Want to get more of my content? &#128587;&#127995;&#8205;&#9794;&#65039;</h2><p>Reach me on:</p><ul><li><p><strong><a href="https://www.linkedin.com/in/iamjosepferrer/">LinkedIn</a> and</strong> <strong><a href="https://x.com/iamjosepferrer">X (Twitter)</a> to get daily posts about Data Science.</strong></p></li><li><p>My <strong><a href="https://medium.com/@iamjosepferrer">Medium</a></strong><a href="https://medium.com/@rfeers"> </a><strong><a href="https://medium.com/@rfeers">Blog</a></strong> to learn more about Data Science, Machine Learning, and AI.</p></li><li><p>Just email me at rfeers@gmail.com for any inquiries or to ask for help! &#129299;</p></li></ul>]]></content:encoded></item><item><title><![CDATA[How to Actually Get Started with SQL]]></title><description><![CDATA[A clear (and human) guide to get started without drowning]]></description><link>https://reads.databites.tech/p/how-to-actually-get-started-with-228</link><guid isPermaLink="false">https://reads.databites.tech/p/how-to-actually-get-started-with-228</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Wed, 22 Oct 2025 10:02:42 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/e79bace7-d73f-409e-9830-c05b7103c75a_976x704.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Many of you have been asking how to get started in the data world. I know it can seem <strong>complex</strong> and <strong>intimidating</strong>, <em>but fear often clouds our vision. </em></p><p>That&#8217;s why I want to remind you all that SQL is still the number one data language and the easiest one to learn. </p><p>If you&#8217;re looking to break into this field, there&#8217;s not better advice than&#8230;</p><blockquote><p>START</p><p>LEARNING</p><p>SQL</p><p>RIGHT</p><p>NOW!!</p></blockquote><p>Still not sure? Let&#8217;s give some reasons why &#128071;&#127995;</p><p>Humankind has always been strongly shaped by its ability to store and share information. Studies indicate that a key distinction between humans and other animals lies in our ability to create, preserve, and inherit knowledge and culture across generations.</p><p><em>And guess what&#8230; all of this is just DATA!</em></p><p>Today we are amid a significant shift in how our world works: Data has become the fuel of the XXI century. All fields and sectors rely on it to make decisions. </p><p>One thing is certain: <strong>The need for data-related skills will only keep surging. </strong></p><p>Organisations today gather raw data from both internal and external sources at an unprecedented rate. By analysing this data, they can use reporting applications, dashboards, and other tools to answer questions and gain valuable insights.</p><p><em>So the right question to be done is how to manage all this data? </em></p><p>And the answer is quite simple: <strong>SQL remains the best option to do so.  </strong></p><p>You can go check the latest <a href="https://survey.stackoverflow.co/2025/technology#most-popular-technologies-language-prof">StackOverflow Developer Survey</a> 2025, where SQL stands as the 3rd most used programming language of all developers! </p><p><em>(The first one if we only consider those used in the data science field </em>&#129351;<em>)</em></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UHDl!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UHDl!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png 424w, https://substackcdn.com/image/fetch/$s_!UHDl!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png 848w, https://substackcdn.com/image/fetch/$s_!UHDl!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png 1272w, https://substackcdn.com/image/fetch/$s_!UHDl!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UHDl!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png" width="940" height="226" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:226,&quot;width&quot;:940,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:28513,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.databites.tech/i/176811266?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UHDl!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png 424w, https://substackcdn.com/image/fetch/$s_!UHDl!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png 848w, https://substackcdn.com/image/fetch/$s_!UHDl!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png 1272w, https://substackcdn.com/image/fetch/$s_!UHDl!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6242fddc-58b7-47cf-b213-37f85180ee38_940x226.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>So let&#8217;s try to understand better SQL&#8217;s advantages &#128165;</p><h2>SQL&#8217;s main advantages</h2><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!15us!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!15us!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png 424w, https://substackcdn.com/image/fetch/$s_!15us!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png 848w, https://substackcdn.com/image/fetch/$s_!15us!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png 1272w, https://substackcdn.com/image/fetch/$s_!15us!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!15us!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png" width="1456" height="332" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9aabf713-2434-466d-959e-4116543c06bd_3700x843.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:332,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:390380,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!15us!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png 424w, https://substackcdn.com/image/fetch/$s_!15us!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png 848w, https://substackcdn.com/image/fetch/$s_!15us!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png 1272w, https://substackcdn.com/image/fetch/$s_!15us!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9aabf713-2434-466d-959e-4116543c06bd_3700x843.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><h3><strong>#1. It can deal with big amounts of Data</strong></h3><p>SQL is designed to work with big data and can handle complex queries on large datasets much faster than other tools like spreadsheets or even some programming languages like Python. </p><p>Learning SQL helps you <strong>manage and analyze big data effectively.</strong></p><p>In many organizations, the core of the data environment is typically a data warehouse, where SQL is the primary language for interaction. </p><h3><strong>#2. It can be easily integrated with other tools</strong></h3><p>SQL integrates seamlessly with other data science tools and programming languages, such as Python and R. Libraries like pandas (Python) and dplyr (R) allow you to run SQL queries directly within your code. </p><p>This interoperability makes it easier to combine SQL&#8217;s data handling capabilities with the advanced analytics, visualization and ML features of these languages.</p><h3><strong>#3. It is standardized</strong></h3><p>To query or manipulate data with SQL, you use statements with keywords such as <code>SELECT</code> and <code>FROM</code>. This SQL syntax is standardized by ANSI and ISO-certified, ensuring consistency across the hundreds of databases and data tools that support SQL today.</p><p>While some databases and tools may extend the syntax with specialized operators, commands, or functions, the fundamental principles of SQL remain consistent. </p><p>Once you master the basics of SQL, you can apply this knowledge universally across different platforms.</p><h3><strong>#4. It is easy to understand</strong></h3><p><strong>Basic SQL syntax is highly readable, resembling natural language.</strong> It outlines how data should be retrieved or manipulated. </p><p>Consider the following example query:</p><pre><code><code>SELECT 
    first_name, 
    last_name, 
    date_of_hire
FROM employees
WHERE date_of_hire &gt; &#8216;2018-12-31&#8217;
ORDER BY date_of_hire, last_name</code></code></pre><p>In this query, the SQL keywords <code>SELECT</code>, <code>FROM</code>, <code>WHERE</code>, and <code>ORDER BY</code> define the actions to be performed and any person can understand the main purpose of the query. </p><p>So after all of this information, you might be wondering&#8230;</p><blockquote><p><em><strong>How to (ACTUALLY) get started with SQL?</strong></em></p></blockquote><p>This roadmap will help you to get started, build a strong foundation, and progress through more advanced topics.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Yway!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Yway!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png 424w, https://substackcdn.com/image/fetch/$s_!Yway!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png 848w, https://substackcdn.com/image/fetch/$s_!Yway!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png 1272w, https://substackcdn.com/image/fetch/$s_!Yway!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Yway!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png" width="1456" height="1816" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1816,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1562483,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.databites.tech/i/176811266?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Yway!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png 424w, https://substackcdn.com/image/fetch/$s_!Yway!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png 848w, https://substackcdn.com/image/fetch/$s_!Yway!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png 1272w, https://substackcdn.com/image/fetch/$s_!Yway!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4166f81-c9e5-4104-a90f-a45b8eb77f98_2606x3250.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Let&#8217;s break down each of the previous steps!</p><h3><strong>1. Learning the Basics</strong></h3><p>Before diving deep, it&#8217;s essential to grasp what is SQL. Begin with:</p><ul><li><p><strong>What is a Relational Database?</strong></p></li><li><p><strong>Comparing SQL and NoSQL Databases</strong></p></li><li><p><strong>Understanding SQL Syntax and Basic Commands</strong></p></li></ul><h3><strong>2. Exploring Data Types</strong></h3><p>Once you have a clear image of SQL, you should understand the core data types you will be working with &#128071;&#127995;</p><ul><li><p><strong>Integers, Decimals, and Booleans</strong></p></li><li><p><strong>Character Types: CHAR and VARCHAR</strong></p></li><li><p><strong>Dates and Binary Data</strong></p></li></ul><h3><strong>3. Mastering Basic Keywords</strong></h3><p>The first real step is to familiarize yourself with the commands that form the backbone of SQL querying:</p><ul><li><p><strong>SELECT, FROM, WHERE</strong></p></li><li><p><strong>ORDER BY and LIMIT Clauses</strong></p></li></ul><p>You will see that SQL queries are usually quite easy to understand, as their syntax resembles natural language. The most common SQL query you will find is.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kFBb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kFBb!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png 424w, https://substackcdn.com/image/fetch/$s_!kFBb!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png 848w, https://substackcdn.com/image/fetch/$s_!kFBb!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png 1272w, https://substackcdn.com/image/fetch/$s_!kFBb!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kFBb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png" width="348" height="337.6291390728477" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:879,&quot;width&quot;:906,&quot;resizeWidth&quot;:348,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!kFBb!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png 424w, https://substackcdn.com/image/fetch/$s_!kFBb!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png 848w, https://substackcdn.com/image/fetch/$s_!kFBb!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png 1272w, https://substackcdn.com/image/fetch/$s_!kFBb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e47895a-beed-44c4-90e1-27f09c7746da_906x879.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Already proficient with basic commands? </p><p><em>Now it&#8217;s turn to understand how to manage databases with the following two steps:</em></p><h3><strong>4. Data Definition</strong></h3><p>Learn how to structure and manage your databases with:</p><ul><li><p><strong>CREATE, ALTER, DROP Statements</strong></p></li></ul><h3><strong>5. Data Manipulation</strong></h3><p>Get hands-on with inserting, updating, and deleting data:</p><ul><li><p><strong>INSERT, UPDATE, DELETE Commands</strong></p></li></ul><p><em>Now you should keep getting better with SQL programming language &#128071;&#127995;</em></p><h3><strong>6. Understanding Aggregation</strong></h3><p>Aggregate functions are powerful tools for summarizing data:</p><ul><li><p><strong>SUM, AVG, COUNT, MAX, MIN</strong></p></li></ul><p>This will be one of the most important steps when creating KPIs and specific metrics. </p><h3><strong>7. Enforcing Constraints</strong></h3><p>Ensure data integrity through constraints:</p><ul><li><p><strong>PRIMARY KEY, FOREIGN KEY, UNIQUE</strong></p></li><li><p><strong>NOT NULL and CHECK Constraints</strong></p></li></ul><p><em>Our data will usually be spread across many different tables, this is why being able to merge data from different sources is crucial in SQL. </em></p><h3><strong>8. Mastering JOINs</strong></h3><p>JOINs are critical for combining data from multiple tables:</p><ul><li><p><strong>INNER, LEFT, RIGHT, and FULL OUTER JOINs</strong></p></li></ul><p><em>Your SQL skills here are already really good!! &#128588;&#127995; But learning must go on&#8230;</em></p><h3><strong>9. Leveraging Subqueries</strong></h3><p>As queries keep getting more complex, you need to create subqueries. </p><ul><li><p><strong>Nested and Correlated Subqueries</strong></p></li><li><p><strong>EXISTS and NOT EXISTS</strong></p></li></ul><p><em>Now you should understand advanced syntax like specific functions and new ways of merging data like UNION. </em></p><h3><strong>10. Advanced Syntax</strong></h3><p>Explore more complex SQL operations:</p><ul><li><p><strong>UNION, INTERSECT, EXCEPT</strong></p></li><li><p><strong>CASE, COALESCE, and Functions for NULL Handling</strong></p></li></ul><p><em>Once a result is good, you might want to create a view!</em></p><h3><strong>11. Working with Views</strong></h3><p>Views can simplify complex queries:</p><ul><li><p><strong>Creating, Modifying, and Dropping Views</strong></p></li></ul><p><em>Now you should focus on crafting better queries by leveraging indexes and following best security practices &#128165;</em></p><h3><strong>12. Optimizing with Indexes</strong></h3><p>Indexes improve query performance:</p><ul><li><p><strong>Unique, Clustered, and Non-Clustered Indexes</strong></p></li></ul><h3><strong>13. Data Integrity and Security</strong></h3><p>Now that you are here, I strongly recommend you get familiar with security best practices. Maintain the security and integrity of your database:</p><ul><li><p><strong>Using GRANT and REVOKE</strong></p></li><li><p><strong>Database Security Best Practices</strong></p></li></ul><p><em>The two final steps is learning how to craft better and more optimized SQL queries. You know I am a big fan of modular code with CTEs, so that&#8217;s something we will talk more about in coming issues! </em>&#128521;</p><h3><strong>14. Performance Optimization</strong></h3><p>Techniques to enhance the efficiency of your queries:</p><ul><li><p><strong>Query Analysis, Optimizing JOINS, Reducing Subqueries</strong></p></li></ul><h3><strong>15. Advanced SQL Techniques</strong></h3><p>For seasoned users, explore sophisticated SQL features:</p><ul><li><p><strong>Windows Functions, Recursive Queries</strong></p></li><li><p><strong>Pivot/Unpivot Operations, Common Table Expressions (CTE)</strong></p></li></ul><p><em>And this is all for today!</em></p><p><em>We will see in more detail most of the previous steps, this is just a summary to help you get started with SQL!</em></p><div><hr></div><h2><strong>How to Get Started</strong></h2><ol><li><p><strong>Master the basics:</strong> <code>SELECT</code> &#8594; <code>FROM</code> &#8594; <code>WHERE</code>, then <code>ORDER BY</code>, <code>GROUP BY/HAVING</code>, and core <code>JOIN</code>s (<code>INNER</code>, <code>LEFT</code>).</p></li><li><p><strong>Set up your stack:</strong> Use SQLite/DuckDB locally or a warehouse (BigQuery/Snowflake), with a comfy editor (DB UI or Jupyter + DuckDB); add a simple BI view if helpful.</p></li><li><p><strong>Ship tiny projects:</strong> KPI query pack (WAU/MAU, conversion, revenue by channel), a cohort/retention table, and a customer 360 (users + orders &#8594; first/last order, AOV, LTV).</p></li></ol><div><hr></div><h3>A final note</h3><p>If you&#8217;ve made it this far, you&#8217;ve already done the hardest part: deciding to start.<br>SQL rewards short, consistent reps.</p><p>Ship one tiny query this week, then another next week.<br>A KPI today, a JOIN tomorrow, a view next Friday.</p><p>Momentum compounds.</p><p>Are you in?</p><p>&#8212; Josep</p><div><hr></div><h2><strong>Still with me? &#129488;</strong></h2><p>As fellow data enthusiasts, I&#8217;m sure you&#8217;d be eager to help me shape some impactful KPIs and take this newsletter to the next level!</p><p><em>So here&#8217;s how you can help:</em></p><p>&#128073;&#127995; I want this newsletter to be truly valuable for you, so please share your feedback!</p><div class="poll-embed" data-attrs="{&quot;id&quot;:393913}" data-component-name="PollToDOM"></div><div><hr></div><p>Before you go,<strong> tap the &#128154; and the restack buttons at the bottom of this email to show your support</strong>&#8212;<em>it really helps and means a lot!</em></p><p><em>P.S. Share this with the coworker who &#8220;doesn&#8217;t need SQL&#8221; and spends lunch VLOOKUP-ing.</em></p><p><strong>Any doubt? Let&#8217;s start a conversation! &#128071;&#127995;</strong></p>]]></content:encoded></item><item><title><![CDATA[How to Actually Get Started with Python]]></title><description><![CDATA[CS15 - A clear (and human) guide to get started without drowning]]></description><link>https://reads.databites.tech/p/how-to-actually-get-started-with-5e7</link><guid isPermaLink="false">https://reads.databites.tech/p/how-to-actually-get-started-with-5e7</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Tue, 14 Oct 2025 10:02:52 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/eaa3293c-87f6-405a-985f-7f92a93b27f2_976x704.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><strong>You&#8217;ve wanted to learn Python for a while&#8230;</strong></p><p><em>Too many tabs, not enough progress? </em></p><blockquote><p>This guide cuts the noise and gives you a shippable path. </p></blockquote><p><strong>Only the pieces that actually move you forward.</strong></p><h1>Why this, why now</h1><p>Python is the most versatile &#8220;one language, many careers&#8221; tool: analytics, ML, web, scripting, automation, LLM apps&#8212;you name it.<br>If you learn it now, you compound for the next decade.</p><p>Need more reasons? Then let&#8217;s try to give them!</p><h2><strong>Why Python can supercharge your career?</strong></h2><p>From <strong>data science</strong> and <strong>web development</strong> to <strong>automation</strong> and <strong>artificial intelligence</strong>, Python&#8217;s applications are vast and continue to expand. You can check the latest <a href="https://survey.stackoverflow.co/2025/technology#most-popular-technologies-language">StackOverflow Developer Survey 2025</a>, where Python stands as the 4th most-used programming language of all developers!</p><p>(And the second one if we only consider those used in the data science field &#128293;)</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!gIE7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!gIE7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png 424w, https://substackcdn.com/image/fetch/$s_!gIE7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png 848w, https://substackcdn.com/image/fetch/$s_!gIE7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png 1272w, https://substackcdn.com/image/fetch/$s_!gIE7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!gIE7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png" width="1456" height="430" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:430,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:73676,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.databites.tech/i/176120424?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!gIE7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png 424w, https://substackcdn.com/image/fetch/$s_!gIE7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png 848w, https://substackcdn.com/image/fetch/$s_!gIE7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png 1272w, https://substackcdn.com/image/fetch/$s_!gIE7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0081c64-4843-4ae1-923a-08ee191fda12_1706x504.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>So here are the 5 main reasons why you should start learning Python today&#8230;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!-Qwm!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!-Qwm!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png 424w, https://substackcdn.com/image/fetch/$s_!-Qwm!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png 848w, https://substackcdn.com/image/fetch/$s_!-Qwm!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png 1272w, https://substackcdn.com/image/fetch/$s_!-Qwm!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!-Qwm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png" width="924" height="556" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:556,&quot;width&quot;:924,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:101006,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!-Qwm!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png 424w, https://substackcdn.com/image/fetch/$s_!-Qwm!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png 848w, https://substackcdn.com/image/fetch/$s_!-Qwm!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png 1272w, https://substackcdn.com/image/fetch/$s_!-Qwm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4caa691a-14bf-4303-ad37-a6c0d09dc652_924x556.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3>#1. <strong>Beginner-Friendly</strong></h3><p>Python&#8217;s <strong>clear syntax</strong> resembles English, making it the perfect starting point for beginners. </p><p>The learning curve is gentle, allowing you to focus more on solving problems than wrestling with complex code structures.</p><h3><strong>#2. Extensive Libraries</strong></h3><p>Python&#8217;s ecosystem is rich with libraries. Tools like <strong>Pandas</strong>, <strong>NumPy</strong>, and <strong>Matplotlib</strong> simplify data analysis, while <strong>Django</strong> and <strong>Flask</strong> are great for web development. </p><p>This <strong>wide array of libraries</strong> reduces the need to write code from scratch, speeding up development.</p><h3><strong>#3. High Demand in the Job Market</strong></h3><p>Python developers enjoy <strong>competitive salaries</strong>, thanks to the language&#8217;s popularity across industries like <strong>AI</strong>, <strong>data science</strong>, <strong>software development</strong>, and <strong>automation</strong>. Its applications span across finance, tech, healthcare, and more.</p><h3><strong>#4. Artificial Intelligence</strong></h3><p>Python is <strong>dominant in AI and machine learning</strong>. With libraries such as <strong>TensorFlow</strong> and <strong>Keras</strong>, developers can implement sophisticated AI models for tasks like <strong>natural language processing</strong>, <strong>image recognition</strong>, and even <strong>self-driving car algorithms</strong>.</p><h3><strong>#5. Strong Community Support</strong></h3><p>One of Python&#8217;s greatest strengths is its <strong>active community</strong>. With numerous tutorials, forums, and resources, help is always available. This vibrant support system ensures you won&#8217;t be stuck for long when facing a challenge.</p><p>So after all of this information, you might be wondering&#8230;</p><p></p><blockquote><p><em><strong>How to (ACTUALLY) get started with Python?</strong></em></p></blockquote><p>This roadmap will help you to get started, build a strong foundation, and progress through more advanced topics.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!WIxz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!WIxz!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png 424w, https://substackcdn.com/image/fetch/$s_!WIxz!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png 848w, https://substackcdn.com/image/fetch/$s_!WIxz!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png 1272w, https://substackcdn.com/image/fetch/$s_!WIxz!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!WIxz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png" width="1456" height="1753" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/af8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1753,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1874800,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!WIxz!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png 424w, https://substackcdn.com/image/fetch/$s_!WIxz!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png 848w, https://substackcdn.com/image/fetch/$s_!WIxz!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png 1272w, https://substackcdn.com/image/fetch/$s_!WIxz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf8cc71f-a40f-4f46-9797-770067eead61_3671x4419.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Let&#8217;s break down the steps to mastering Python!</p><h1><strong>Navigate Your Way Through Python </strong></h1><p>Whether you&#8217;re a data enthusiast, a budding analyst, or an experienced developer looking to sharpen your data science coding  skills, understanding Python is crucial.</p><p>So let&#8217;s start by&#8230;</p><h3><strong>1. Learning the Basics</strong></h3><p>Before diving into data-heavy tasks, you need to understand Python fundamentals:</p><ul><li><p><strong>Basic Syntax and Variables</strong></p></li><li><p><strong>Data Types</strong>: Strings, Integers, Floats, etc.</p></li><li><p><strong>Conditionals and Type Casting</strong></p></li><li><p><strong>Error Handling and Functions</strong> (including built-in functions)</p></li><li><p><strong>Data Structures</strong>: Lists, Tuples, Sets, Dictionaries</p></li><li><p><strong>Loops</strong>: for and while loops</p></li></ul><h3>2. Data Structures</h3><p>Once you have a solid foundation of the basics, a good grasp of data structures is crucial for efficient programming:</p><ul><li><p><strong>Arrays and Linked Lists</strong></p></li><li><p><strong>Heaps, Stacks, and Queues</strong></p></li><li><p><strong>Hash Tables</strong></p></li><li><p><strong>Trees</strong>, including Binary Search Trees</p></li></ul><h3><strong>3. Algorithms</strong></h3><p>With data structures covered, it&#8217;s time to explore algorithms:</p><ul><li><p><strong>Sorting Algorithms</strong>: Bubble, Merge, Quick Sort, etc.</p></li><li><p><strong>Searching Algorithms</strong>: Binary Search and Linear Search</p></li><li><p><strong>Recursion</strong> and its applications</p></li></ul><p>Already proficient with Python&#8217;s algorithms? </p><p><em>Now it&#8217;s turn to further understand Python&#8217;s world with its modules and functions. </em></p><h3>4. Modules</h3><p>Python&#8217;s extensive library of modules can make your life easier:</p><ul><li><p><strong>Built-in Modules</strong>: os, sys, math, etc.</p></li><li><p><strong>Creating Custom Modules</strong> for reusability</p></li></ul><h3>5. Advanced Topics</h3><p>Dive deeper with advanced Python techniques:</p><ul><li><p><strong>Lambdas</strong>: Anonymous functions</p></li><li><p><strong>Decorators</strong>: Enhancing functions</p></li><li><p><strong>Iterators</strong> and Generators</p></li><li><p><strong>Regular Expressions</strong> for pattern matching</p></li></ul><p><em>If you have arrived here&#8230; congrats! You are already a mid-level user. Now it&#8217;s turn to spice up your coding abilities with OOP &#128293;</em></p><h3><strong>6. Object-Oriented Programming (OOP)</strong></h3><p>Python is an object-oriented language, so understanding OOP is essential:</p><ul><li><p><strong>Classes and Objects</strong></p></li><li><p><strong>Inheritance</strong></p></li><li><p><strong>Dunder (Magic) Methods</strong> to customize class behavior</p></li></ul><p>Now it&#8217;s turn to start understanding how to install (and why!) Python&#8217;s best libraries. </p><h3>7. Package Managers</h3><p>To install libraries and manage dependencies, you&#8217;ll need to know:</p><ul><li><p><strong>PyPI and pip</strong></p></li><li><p><strong>Conda</strong> for data science environments</p></li><li><p><strong>Poetry</strong> for project management</p></li></ul><p><em>Already bored of essentials concepts? Then Python still has a lot more to offer &#10024;</em></p><h3>8. Comprehensions</h3><p>Python offers elegant ways to create data structures:</p><ul><li><p><strong>List Comprehensions</strong></p></li><li><p><strong>Generator Expressions</strong></p></li></ul><h3>9. Learn a Framework</h3><p>Choose a framework based on your goals:</p><ul><li><p><strong>Web Development</strong>: Django, Flask, Pyramid</p></li><li><p><strong>Data Science/Visualization</strong>: Plotly Dash</p></li><li><p><strong>Asynchronous</strong>: FastAPI, Aiohttp, Tornado</p></li></ul><h3>10. Concurrency</h3><p>For high-performance applications, learn concurrency:</p><ul><li><p><strong>Global Interpreter Lock (GIL)</strong></p></li><li><p><strong>Threading and Multiprocessing</strong></p></li><li><p><strong>Asynchrony</strong> with async/await</p></li></ul><h3>11. Environments</h3><p>Managing different Python environments is critical:</p><ul><li><p><strong>Virtualenv and Pyenv</strong></p></li><li><p><strong>Pipenv</strong> for dependency management</p></li></ul><h3>12. Static Typing</h3><p><em>Add type hints to improve readability and catch errors early:</em></p><ul><li><p><strong>Pydantic</strong> and <strong>Mypy</strong></p></li><li><p><strong>Pyright</strong> and <strong>Pyre</strong></p></li></ul><h3>13. Code Formatting</h3><p>Maintain clean, readable code with formatting tools:</p><ul><li><p><strong>Black, YAPF</strong>, and <strong>Ruff</strong></p></li></ul><h3>14. Documentation</h3><p>Document your code for clarity:</p><ul><li><p><strong>Sphinx</strong> for generating docs</p></li></ul><h3>15. Common Packages</h3><p>Familiarize yourself with essential packages:</p><ul><li><p><strong>Typing</strong> and <strong>Tox</strong></p></li></ul><h3>16. Testing</h3><p>Testing is crucial for reliable code:</p><ul><li><p><strong>Pytest</strong> and <strong>Unittest</strong></p></li><li><p><strong>Doctest</strong> and <strong>Nose</strong></p></li></ul><h3>17. DevOps</h3><p>Finally, integrate Python into DevOps practices for deployment and scaling.</p><p><em>Phew, that was a lot to cover! </em></p><p><strong>This roadmap is just a summary to help you start your Python journey. </strong></p><p>We&#8217;ll dive deeper into each topic in upcoming issues, so stay tuned for more!</p><div><hr></div><h2>How to Get Started</h2><ol><li><p><strong>Master the Basics:</strong> Begin with Python fundamentals&#8212;<strong>variables, control structures, functions,</strong> and <strong>data types</strong>.</p></li><li><p><strong>Explore Libraries:</strong> Get hands-on with <strong>Pandas</strong> for data manipulation, <strong>Matplotlib</strong> for visualizations, and <strong>Flask</strong> for creating web applications.</p></li><li><p><strong>Work on Real Projects:</strong> Apply your skills by <strong>building small projects</strong> like a <strong>task automation script</strong> or a <strong>simple web app</strong>.</p></li></ol><div><hr></div><h3><strong>A final note</strong></h3><p>If you&#8217;ve made it this far, you already did the hardest part: <strong>decide to start.</strong><br>Python rewards short, consistent reps. </p><p>Ship something small this week, then another next week. </p><p>Momentum compounds.</p><p>Are you in?</p><p>&#8212; Josep</p><div><hr></div><h2>Still with me? &#129488;</h2><p>As fellow data enthusiasts, I&#8217;m sure you&#8217;d be eager to help me shape some impactful KPIs and take this newsletter to the next level!</p><p><em>So here&#8217;s how you can help:</em></p><p>&#128073;&#127995; I want this newsletter to be truly valuable for you, so please share your feedback!</p><div class="poll-embed" data-attrs="{&quot;id&quot;:389999}" data-component-name="PollToDOM"></div><div><hr></div><p>Before you go,<strong> tap the &#128154; and the restack buttons at the bottom of this email to show your support</strong>&#8212;<em>it really helps and means a lot!</em></p><p><em>P.S. Share this with the coworker who isn&#8217;t confident in Python, yet.</em></p><p><strong>Any doubt? Let&#8217;s start a conversation! &#128071;&#127995;</strong></p>]]></content:encoded></item><item><title><![CDATA[ML - What It Is, How It Works & Why It Matters]]></title><description><![CDATA[CS14 - An ML beginner-friendly guide with a visual cheatsheet.]]></description><link>https://reads.databites.tech/p/ml-what-it-is-how-it-works-and-why</link><guid isPermaLink="false">https://reads.databites.tech/p/ml-what-it-is-how-it-works-and-why</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Mon, 05 May 2025 14:02:28 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/736707c9-9eda-46d2-ab01-ff9b20f5ef19_1465x1057.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Machine learning is all around us, from your Netflix recommendations to the voice behind your phone&#8217;s assistant.<br>But how does it work? </p><p>And how can you get started?</p><p>Today I&#8217;m bringing a simple introduction to <strong>Machine Learning</strong>, <strong>its</strong> <strong>types</strong>, and <strong>real-world examples</strong> &#8212; plus giving you a cheatsheet to keep things crystal clear. &#128588;&#127995;</p><p>So let&#8217;s get started with the full-resolution cheatsheet &#128071;&#127995;</p>
      <p>
          <a href="https://reads.databites.tech/p/ml-what-it-is-how-it-works-and-why">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[How Python Manages Data in Memory ]]></title><description><![CDATA[CS13 - Types, Values, Variables and Names]]></description><link>https://reads.databites.tech/p/how-python-manages-data-in-memory</link><guid isPermaLink="false">https://reads.databites.tech/p/how-python-manages-data-in-memory</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Mon, 28 Apr 2025 12:05:32 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/dfa3a0ee-116c-4730-9b00-add0338656d5_1465x1057.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Python often feels magical, but behind the scenes, it&#8217;s built on very tangible rules of memory and object management.</p><p>Understanding how Python handles data internally <strong>can make you a </strong><em><strong>better</strong></em><strong> coder</strong>: it helps you write cleaner code, debug faster, and optimize performance.</p><p>Before diving in, here&#8217;s the full-resolution cheatsheet for you to explore &#128071;&#127995;</p>
      <p>
          <a href="https://reads.databites.tech/p/how-python-manages-data-in-memory">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Welcome to my Cheatsheets Archive! 👋🏻]]></title><description><![CDATA[Your Go-To Hub for Data & AI Cheatsheets&#8212;Stay Organized, Stay Ahead!]]></description><link>https://reads.databites.tech/p/welcome-to-my-cheatsheets-archive</link><guid isPermaLink="false">https://reads.databites.tech/p/welcome-to-my-cheatsheets-archive</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Mon, 17 Mar 2025 20:19:17 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/34266ac0-9b0f-42a9-bea6-3a24e12f6e7c_1465x1057.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hey everyone! Josep here&#8212;I&#8217;m thrilled to have you on board! &#10024;</p><p>If you've made it to this site, chances are you've already come across my visuals and cheatsheets. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!tlyp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!tlyp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png 424w, https://substackcdn.com/image/fetch/$s_!tlyp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png 848w, https://substackcdn.com/image/fetch/$s_!tlyp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png 1272w, https://substackcdn.com/image/fetch/$s_!tlyp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!tlyp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png" width="1456" height="576" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:576,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:3204926,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/159283693?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!tlyp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png 424w, https://substackcdn.com/image/fetch/$s_!tlyp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png 848w, https://substackcdn.com/image/fetch/$s_!tlyp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png 1272w, https://substackcdn.com/image/fetch/$s_!tlyp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbf2796e-ae75-4135-8531-ab7640530d98_4437x1755.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>I know many of you love them, which is why I&#8217;ve created this dedicated space to <strong>organize my most popular and well-known cheatsheets&#8212;all in one place!</strong></p><h3>&#128233; Not a Subscriber Yet?</h3><p>What are you waiting for? <strong>Subscribe now</strong> and get a fresh cheatsheet delivered straight to your inbox every week!</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://reads.databites.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://reads.databites.tech/subscribe?"><span>Subscribe now</span></a></p><h2>&#128293; What to Expect?</h2><p>Every week, a <strong>new cheatsheet</strong> will be released, covering essential topics in: </p><p>&#9989; <strong>SQL</strong> &#8211; Queries, optimization, and best practices<br>&#9989; <strong>Data Visualization</strong> &#8211; Making charts that tell a story<br>&#9989; <strong>Machine Learning</strong> &#8211; Key models and techniques<br>&#9989; <strong>Python</strong> &#8211; Essential data science workflows<br>&#9989; <strong>AI &amp; Deep Learning</strong> &#8211; Understanding cutting-edge architectures</p><p>Whether you&#8217;re sharpening your <strong>SQL skills, mastering data visualization, or diving deep into AI</strong>, you&#8217;ll find <strong>practical, easy-to-digest</strong> insights here.</p><p>&#128161; <strong>Have a cheatsheet request or an idea for future content?</strong> Drop your suggestions in the comments below! &#128071;&#127995;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://reads.databites.tech/p/welcome-to-my-cheatsheets-archive/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://reads.databites.tech/p/welcome-to-my-cheatsheets-archive/comments"><span>Leave a comment</span></a></p><h2>&#128640; Unlock Exclusive Content</h2><p><strong>Remember:</strong> From now on, cheatsheets posted longer than two weeks ago will be under a paywall.</p><p>Want <strong>full access</strong> to all cheatsheets? <strong>Upgrade now</strong> and never miss out!</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://reads.databites.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://reads.databites.tech/subscribe?"><span>Subscribe now</span></a></p><h2>&#128220; Available Cheatsheets</h2><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!zvtB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!zvtB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png 424w, https://substackcdn.com/image/fetch/$s_!zvtB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png 848w, https://substackcdn.com/image/fetch/$s_!zvtB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png 1272w, https://substackcdn.com/image/fetch/$s_!zvtB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!zvtB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png" width="1456" height="300" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/dfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:300,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:79899,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.databites.tech/i/159283693?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!zvtB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png 424w, https://substackcdn.com/image/fetch/$s_!zvtB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png 848w, https://substackcdn.com/image/fetch/$s_!zvtB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png 1272w, https://substackcdn.com/image/fetch/$s_!zvtB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdfcbe8ea-febe-4c88-b010-3b54a696276d_2133x440.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><ul><li><p><strong><a href="https://www.reads.databites.tech/p/how-to-actually-get-started-with-228">How to Actually Get Started with SQL</a></strong></p></li></ul><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://reads.databites.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://reads.databites.tech/subscribe?"><span>Subscribe now</span></a></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!bZWr!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!bZWr!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png 424w, https://substackcdn.com/image/fetch/$s_!bZWr!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png 848w, https://substackcdn.com/image/fetch/$s_!bZWr!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png 1272w, https://substackcdn.com/image/fetch/$s_!bZWr!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!bZWr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png" width="1456" height="326" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/370c4619-63fb-4d78-b543-889aad970564_2133x477.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:326,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:90830,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.databites.tech/i/159283693?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!bZWr!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png 424w, https://substackcdn.com/image/fetch/$s_!bZWr!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png 848w, https://substackcdn.com/image/fetch/$s_!bZWr!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png 1272w, https://substackcdn.com/image/fetch/$s_!bZWr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F370c4619-63fb-4d78-b543-889aad970564_2133x477.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><ul><li><p><strong><a href="https://reads.databites.tech/p/cs1-understanding-the-essentials">Understanding the Essentials of Time Series</a></strong></p></li><li><p><strong><a href="https://reads.databites.tech/p/cs2-dealing-with-outliers">Dealing with Outliers</a></strong></p></li><li><p><strong><a href="https://reads.databites.tech/p/cs3-unlocking-the-power-of-geospatial">Unlocking the Power of Geospatial Data</a></strong></p></li></ul><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://reads.databites.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://reads.databites.tech/subscribe?"><span>Subscribe now</span></a></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NPo9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NPo9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png 424w, https://substackcdn.com/image/fetch/$s_!NPo9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png 848w, https://substackcdn.com/image/fetch/$s_!NPo9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png 1272w, https://substackcdn.com/image/fetch/$s_!NPo9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NPo9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png" width="1456" height="311" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/de90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:311,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:88666,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.databites.tech/i/159283693?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!NPo9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png 424w, https://substackcdn.com/image/fetch/$s_!NPo9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png 848w, https://substackcdn.com/image/fetch/$s_!NPo9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png 1272w, https://substackcdn.com/image/fetch/$s_!NPo9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde90e45a-c2ca-4119-aec8-9b7fa01c2fe2_2133x456.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p><strong>ML Most Common Models Series</strong> <em>(Under Construction! &#9888;&#65039;)</em></p><ul><li><p><strong><a href="https://reads.databites.tech/p/ml-what-it-is-how-it-works-and-why">What It Is, How It Works &amp; Why It Matters</a></strong></p></li></ul><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://reads.databites.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://reads.databites.tech/subscribe?"><span>Subscribe now</span></a></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!m8gN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!m8gN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png 424w, https://substackcdn.com/image/fetch/$s_!m8gN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png 848w, https://substackcdn.com/image/fetch/$s_!m8gN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png 1272w, https://substackcdn.com/image/fetch/$s_!m8gN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!m8gN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png" width="1456" height="296" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:296,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:83968,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://www.databites.tech/i/159283693?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!m8gN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png 424w, https://substackcdn.com/image/fetch/$s_!m8gN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png 848w, https://substackcdn.com/image/fetch/$s_!m8gN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png 1272w, https://substackcdn.com/image/fetch/$s_!m8gN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc07bcef-f04d-4a08-9088-547ecc7abeb1_2133x434.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><ul><li><p><strong><a href="https://reads.databites.tech/p/the-art-and-science-of-data-visualization-92d">The Art and Science of Data Visualization</a></strong></p></li></ul><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://reads.databites.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://reads.databites.tech/subscribe?"><span>Subscribe now</span></a></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!usM7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!usM7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png 424w, https://substackcdn.com/image/fetch/$s_!usM7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png 848w, https://substackcdn.com/image/fetch/$s_!usM7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png 1272w, https://substackcdn.com/image/fetch/$s_!usM7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!usM7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png" width="1456" height="302" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:302,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:120392,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://reads.databites.tech/i/159283693?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!usM7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png 424w, https://substackcdn.com/image/fetch/$s_!usM7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png 848w, https://substackcdn.com/image/fetch/$s_!usM7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png 1272w, https://substackcdn.com/image/fetch/$s_!usM7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1211e49-fdb0-4545-a3be-226a1dc375b3_2133x443.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><ul><li><p><strong><a href="https://reads.databites.tech/p/how-python-manages-data-in-memory">How Python Manages Data In Memory</a> </strong></p></li></ul><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://reads.databites.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://reads.databites.tech/subscribe?"><span>Subscribe now</span></a></p><h3>&#128640; Stay Ahead!</h3><p>Upgrade to <strong>unlock all premium cheatsheets</strong> and ensure you have the latest insights at your fingertips.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://reads.databites.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://reads.databites.tech/subscribe?"><span>Subscribe now</span></a></p><p>More cheatsheets are coming soon&#8212;stay tuned! &#127919;</p><div><hr></div><p><strong>Any suggestions or recommended topics for future cheatsheets? &#129300;</strong></p><p>Write me an email at rfeers@gmail.com or leave a message below! &#128071;&#127995;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.databites.tech/p/the-transformers-architecture/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://www.databites.tech/p/the-transformers-architecture/comments"><span>Leave a comment</span></a></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[CS3 - Unlocking the Power of Geospatial Data 🌍]]></title><description><![CDATA[What is Geospatial Data?]]></description><link>https://reads.databites.tech/p/cs3-unlocking-the-power-of-geospatial</link><guid isPermaLink="false">https://reads.databites.tech/p/cs3-unlocking-the-power-of-geospatial</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Mon, 17 Mar 2025 19:10:13 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/b0b09df5-7225-46e5-ac87-1a71e7f01b38_1465x1057.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3><strong>What is Geospatial Data?</strong></h3><p>In simple terms, geospatial data refers to <strong>information tied to specific geographic locations</strong> on Earth&#8217;s surface.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!PrU8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!PrU8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png 424w, https://substackcdn.com/image/fetch/$s_!PrU8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png 848w, https://substackcdn.com/image/fetch/$s_!PrU8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png 1272w, https://substackcdn.com/image/fetch/$s_!PrU8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!PrU8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png" width="1456" height="746" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c601f762-40ff-47a9-a216-a62849021de8_1910x979.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:746,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:935822,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!PrU8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png 424w, https://substackcdn.com/image/fetch/$s_!PrU8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png 848w, https://substackcdn.com/image/fetch/$s_!PrU8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png 1272w, https://substackcdn.com/image/fetch/$s_!PrU8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc601f762-40ff-47a9-a216-a62849021de8_1910x979.png 1456w" sizes="100vw" loading="lazy" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Think of:</p><ul><li><p><strong>Maps</strong> showing streets and terrain</p></li><li><p><strong>Addresses</strong> linked to latitude and longitude</p></li><li><p><strong>Satellite images</strong> revealing land use or vegetation</p></li></ul><p>With its ability to connect data to physical locations, geospatial data has become essential in industries like logistics, urban planning, and environmental science.</p><p>And this leads us to our main focus&#8230;</p><p><strong>Understanding Geospatial Data</strong></p><p>Before starting, here you have the full-resolution cheatsheet &#128071;&#127995;</p>
      <p>
          <a href="https://reads.databites.tech/p/cs3-unlocking-the-power-of-geospatial">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[CS2 - Dealing with Outliers]]></title><description><![CDATA[Detecting, Handling, and Leveraging Anomalies in Data]]></description><link>https://reads.databites.tech/p/cs2-dealing-with-outliers</link><guid isPermaLink="false">https://reads.databites.tech/p/cs2-dealing-with-outliers</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Mon, 17 Mar 2025 19:04:37 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/718b5325-cfb3-4b5b-8cb3-f9e31b917651_1465x1057.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Outliers: What, Why, and How?</h2><p><strong>Outliers</strong> are the peculiar data points that don&#8217;t quite fit with the rest of the dataset. These anomalies can arise from:</p><ul><li><p>Data entry errors &#128395;&#65039;</p></li><li><p>Measurement issues &#128736;&#65039;</p></li><li><p>Genuine rare events &#127775;</p></li></ul><p>While they can skew your analysis and lead to incorrect conclusions, they can also hold valuable insights (think fraud detection or identifying unique customer segments).</p><p>This leads us to the main question&#8230;</p><p><strong>So, what&#8217;s the best way to approach them?</strong></p><p><em>So let&#8217;s dive into how to deal with outliers!</em></p><p>Before starting, here you have the full-resolution cheatsheet &#128071;&#127995;</p>
      <p>
          <a href="https://reads.databites.tech/p/cs2-dealing-with-outliers">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[CS1 - Understanding the Essentials of Time Series]]></title><description><![CDATA[What Is a Time Series?]]></description><link>https://reads.databites.tech/p/cs1-understanding-the-essentials</link><guid isPermaLink="false">https://reads.databites.tech/p/cs1-understanding-the-essentials</guid><dc:creator><![CDATA[Josep Ferrer]]></dc:creator><pubDate>Mon, 17 Mar 2025 18:52:53 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/416da452-6072-4dfa-9f68-49c1f9f948b5_1465x1057.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>What Is a Time Series?</h2><p>A <strong>time series</strong> is a special type of dataset:</p><ul><li><p>It&#8217;s an <strong>ordered sequence of values</strong> collected at consistent time intervals.</p></li><li><p>Think of it as data with a built-in clock!</p></li></ul><p>You&#8217;ll find time series data everywhere:</p><p><em>Stock prices, weather patterns, website traffic, and even your Spotify listening history.</em></p><p>Analyzing this kind of data helps us uncover <strong>trends</strong>, predict future behavior, and identify unexpected changes.<br><em>So let&#8217;s dive into Time Series!</em></p><p>Before starting, here you have the full-resolution cheatsheet &#128071;&#127995;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fx9_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fx9_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png 424w, https://substackcdn.com/image/fetch/$s_!fx9_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png 848w, https://substackcdn.com/image/fetch/$s_!fx9_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png 1272w, https://substackcdn.com/image/fetch/$s_!fx9_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fx9_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png" width="1456" height="1570" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1570,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1224753,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!fx9_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png 424w, https://substackcdn.com/image/fetch/$s_!fx9_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png 848w, https://substackcdn.com/image/fetch/$s_!fx9_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png 1272w, https://substackcdn.com/image/fetch/$s_!fx9_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe95c5269-5cea-48e5-b479-e9020ef56c19_3581x3862.png 1456w" sizes="100vw" loading="lazy" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>The Four Pillars of Time Series</h2><h4><strong>1. Trend &#128200;</strong></h4><p>This is the <strong>long-term movement</strong> in the data. Does it rise, fall, or stay stable over time?</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fnSZ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fnSZ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png 424w, https://substackcdn.com/image/fetch/$s_!fnSZ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png 848w, https://substackcdn.com/image/fetch/$s_!fnSZ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png 1272w, https://substackcdn.com/image/fetch/$s_!fnSZ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fnSZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png" width="1456" height="981" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:981,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:152527,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!fnSZ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png 424w, https://substackcdn.com/image/fetch/$s_!fnSZ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png 848w, https://substackcdn.com/image/fetch/$s_!fnSZ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png 1272w, https://substackcdn.com/image/fetch/$s_!fnSZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b4c3d6f-6c25-40a2-87b4-d460a6a83eef_1696x1143.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ul><li><p><strong>Example: </strong>A company&#8217;s annual revenue increasing steadily.</p></li><li><p><strong>Pro Tip:</strong> Use tools like moving averages to isolate the trend from other components.</p></li></ul><h4><strong>2. Seasonality &#127793;</strong></h4><p>Seasonality captures <strong>recurring patterns</strong> that happen over a fixed period, like days, months, or years.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!sKB3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!sKB3!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png 424w, https://substackcdn.com/image/fetch/$s_!sKB3!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png 848w, https://substackcdn.com/image/fetch/$s_!sKB3!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png 1272w, https://substackcdn.com/image/fetch/$s_!sKB3!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!sKB3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png" width="1456" height="997" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:997,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:194969,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!sKB3!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png 424w, https://substackcdn.com/image/fetch/$s_!sKB3!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png 848w, https://substackcdn.com/image/fetch/$s_!sKB3!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png 1272w, https://substackcdn.com/image/fetch/$s_!sKB3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ccebc0e-c554-4808-a095-81b41a2af5a6_1676x1148.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ul><li><p><strong>Example:</strong> E-commerce sales spiking every Black Friday.</p></li><li><p><strong>Pro Tip: </strong>Seasonal decomposition (using libraries like <code>statsmodels</code>) helps separate seasonal patterns from raw data.</p></li></ul><h4><strong>3. Cyclical &#127744;</strong></h4><p>Unlike seasonality, cyclical patterns occur over <strong>longer and irregular intervals</strong>, often tied to economic or environmental factors.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!6GPx!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!6GPx!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png 424w, https://substackcdn.com/image/fetch/$s_!6GPx!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png 848w, https://substackcdn.com/image/fetch/$s_!6GPx!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png 1272w, https://substackcdn.com/image/fetch/$s_!6GPx!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!6GPx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png" width="1456" height="997" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:997,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:124886,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!6GPx!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png 424w, https://substackcdn.com/image/fetch/$s_!6GPx!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png 848w, https://substackcdn.com/image/fetch/$s_!6GPx!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png 1272w, https://substackcdn.com/image/fetch/$s_!6GPx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d4981cc-c01f-4286-81d2-6e7922e67e81_1669x1143.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ul><li><p><strong>Example:</strong> Housing market cycles lasting several years.</p></li><li><p><strong>Pro Tip: </strong>Cyclical behavior is harder to predict, so combine it with trend analysis for better forecasts.</p></li></ul><h4><strong>4. Irregular &#129335;&#8205;&#9794;&#65039;</strong></h4><p>These are the <strong>random, unpredictable fluctuations</strong> that don&#8217;t follow any pattern.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EGMG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EGMG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png 424w, https://substackcdn.com/image/fetch/$s_!EGMG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png 848w, https://substackcdn.com/image/fetch/$s_!EGMG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png 1272w, https://substackcdn.com/image/fetch/$s_!EGMG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EGMG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png" width="1456" height="997" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:997,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:178817,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!EGMG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png 424w, https://substackcdn.com/image/fetch/$s_!EGMG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png 848w, https://substackcdn.com/image/fetch/$s_!EGMG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png 1272w, https://substackcdn.com/image/fetch/$s_!EGMG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21afd854-7955-4d30-a9cb-eed4a6c43623_1669x1143.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ul><li><p><strong>Example: </strong>A sudden sales spike after a celebrity endorsement.</p></li><li><p><strong>Pro Tip:</strong> Use smoothing techniques to filter out noise for clearer insights.</p></li></ul><h3>Why You Should Care About Time Series Analysis</h3><p>Time series analysis isn&#8217;t just a tool&#8212;it&#8217;s a <strong>superpower</strong> for making data-driven decisions. From forecasting future sales to detecting anomalies in IoT devices, time series opens doors to a whole new level of analytics.</p><p>Here&#8217;s where it shines:</p><ul><li><p><strong>Forecasting</strong>: Predict stock prices, weather, or customer demand.</p></li><li><p><strong>Anomaly Detection</strong>: Spot unusual activity, like fraud or system failures.</p></li><li><p><strong>Optimization</strong>: Understand patterns to schedule resources or improve workflows.</p></li></ul><h3>Ready to Dive In?</h3><p>If you&#8217;re new to time series, don&#8217;t worry&#8212;I&#8217;ll be sharing a detailed beginner&#8217;s guide soon! In the meantime, here are a few tips to get you started:</p><ol><li><p><strong>Explore Your Data</strong><br>Visualize it! Tools like <code>Matplotlib</code> and <code>Seaborn</code> make it easy to spot trends and patterns.</p></li><li><p><strong>Decompose Your Series</strong><br>Break it into trend, seasonality, and residuals using Python libraries like <code>statsmodels</code>.</p></li><li><p><strong>Master Key Models</strong></p><ul><li><p><strong>ARIMA/SARIMA</strong> for forecasting.</p></li><li><p><strong>Prophet</strong> for handling missing data and seasonality.</p></li><li><p><strong>LSTMs</strong> for complex patterns in deep learning.</p></li></ul></li></ol><p>And this is all for now! &#10024;</p><div><hr></div><p>Before you go,<strong> tap the &#128154; button at the bottom of this email to show your support</strong>&#8212;<em>it really helps and means a lot!</em></p><p><strong>Any doubt? Let&#8217;s start a conversation! &#128071;&#127995;</strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.databites.tech/p/the-transformers-architecture/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://www.databites.tech/p/the-transformers-architecture/comments"><span>Leave a comment</span></a></p><div><hr></div><h2>Want to get more of my content? &#128587;&#127995;&#8205;&#9794;&#65039;</h2><p>Reach me on:</p><ul><li><p><strong><a href="https://www.linkedin.com/in/josep-ferrer-sanchez/">LinkedIn</a>,</strong> <strong><a href="https://x.com/rfeers">X (Twitter)</a></strong>, or <strong><a href="https://www.threads.net/@rfeers">Threads</a> to get daily posts about Data Science.</strong></p></li><li><p>My <strong><a href="https://medium.com/@rfeers">Medium</a></strong><a href="https://medium.com/@rfeers"> </a><strong><a href="https://medium.com/@rfeers">Blog</a></strong> to learn more about Data Science, Machine Learning, and AI.</p></li><li><p>Just email me at rfeers@gmail.com for any inquiries or to ask for help! &#129299;</p></li></ul><div><hr></div><p>Remember now that DataBites has an official <a href="https://x.com/databitestech">X (Twitter)</a> account and <a href="https://www.linkedin.com/search/results/all/?fetchDeterministicClustersOnly=true&amp;heroEntityKey=urn%3Ali%3Aorganization%3A104285500&amp;keywords=databites&amp;origin=RICH_QUERY_TYPEAHEAD_HISTORY&amp;position=0&amp;searchId=2b268e19-1da0-4357-a42a-9d7f7fba7772&amp;sid=S_G&amp;spellCorrectionEnabled=true">LinkedIn</a> page. Follow us there to stay updated and help spread the word! &#128588;&#127995;</p>]]></content:encoded></item></channel></rss>