<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Farhan Faiyaz on Medium]]></title>
        <description><![CDATA[Stories by Farhan Faiyaz on Medium]]></description>
        <link>https://medium.com/@farhanfaiyaz17?source=rss-2947e20419db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wlbbpNdKcoUJrhwmMHauhw.png</url>
            <title>Stories by Farhan Faiyaz on Medium</title>
            <link>https://medium.com/@farhanfaiyaz17?source=rss-2947e20419db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:37:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@farhanfaiyaz17/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SQL Interview Questions Series #4]]></title>
            <link>https://farhanfaiyaz17.medium.com/sql-interview-questions-series-4-3e0e4d247e9f?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e0e4d247e9f</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Mon, 05 May 2025 05:29:07 GMT</pubDate>
            <atom:updated>2025-05-05T05:29:07.515Z</atom:updated>
            <content:encoded><![CDATA[<h4>A daily series where I solve one SQL interview question and walk through my thought process.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nbmy5B4ekklv4sIn5XH4VQ.png" /></figure><h4>🧩 The Problem Statement</h4><p>The Bloomberg terminal is the go-to resource for financial professionals, offering convenient access to a wide array of financial datasets. As a Data Analyst at Bloomberg, you have access to historical data on stock performance.</p><p>Currently, you’re analyzing the highest and lowest open prices for each FAANG stock by month over the years.</p><p>For each FAANG stock, display the ticker symbol, the month and year (‘Mon-YYYY’) with the corresponding highest and lowest open prices (refer to the Example Output format). Ensure that the results are sorted by ticker symbol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*wLZwpl5y1MLpnIqQxmFlAQ.png" /><figcaption>Fig: example output</figcaption></figure><h4>📊 Tables</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B4zcm1es0myG4HLeq0U3pg.png" /><figcaption>Fig: stock_prices schema</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*Ok5AwDHEc5BCsZdn9Hvg9w.png" /><figcaption>Fig: stock_prices example input</figcaption></figure><h4>💭 Step-by-Step Thought Process</h4><ol><li><strong>Understand the goal:</strong> We need to find the highest and lowest opening price for each stock ticker with the corresponding month and year in the format (‘Mon-YYYY’).</li><li><strong>Extract Month and Rank High Opens: </strong>We use a window function<strong> </strong>(RANK() OVER) to assign ranks to opening prices in descending order, partitioned by ticker.<br> This gives us the <strong>highest open</strong> per ticker in a CTE called <strong>ranked_max</strong>.</li></ol><pre>WITH ranked_max AS (<br>  SELECT <br>    ticker, <br>    open, <br>    TO_CHAR(date, &#39;Mon-YYYY&#39;) AS month_year, <br>    RANK() OVER (<br>      PARTITION BY ticker<br>      ORDER BY open DESC<br>    ) AS rnk_max<br>  FROM stock_prices<br>)</pre><p>3. <strong>Rank Low Opens:</strong> Similarly, we create <strong>ranked_min</strong> to rank opening prices in <strong>ascending order</strong> for each ticker — helping us isolate the <strong>lowest open</strong>.</p><pre>ranked_min AS (<br>  SELECT <br>    ticker, <br>    open, <br>    TO_CHAR(date, &#39;Mon-YYYY&#39;) AS month_year, <br>    RANK() OVER (<br>      PARTITION BY ticker<br>      ORDER BY open ASC<br>    ) AS rnk_min<br>  FROM stock_prices<br>)</pre><p><strong>4. Filter to Top Rank (Highest &amp; Lowest): </strong>From each ranked table, we filter only the <strong>t</strong>op-ranked row <strong>(rank = 1)</strong>:</p><ul><li>max_open gives us the highest open and its month</li><li>min_open gives us the lowest open and its month</li></ul><pre>max_open AS (<br>  SELECT <br>    ticker, <br>    open AS highest_open, <br>    month_year AS highest_mth<br>  FROM ranked_max<br>  WHERE rnk_max = 1<br>),<br><br>min_open AS (<br>  SELECT <br>    ticker, <br>    open AS lowest_open, <br>    month_year AS lowest_mth<br>  FROM ranked_min<br>  WHERE rnk_min = 1<br>)</pre><p><strong>5. Join Both Results: </strong>Finally, we <strong>j</strong>oin max_open and min_open on ticker to get both the highest and lowest open per stock in a single row.</p><pre>SELECT <br>  m.ticker,<br>  m.highest_mth,<br>  m.highest_open,<br>  n.lowest_mth,<br>  n.lowest_open<br>FROM max_open m <br>JOIN min_open n ON m.ticker = n.ticker<br>ORDER BY m.ticker;</pre><h4>🧪 The Final SQL Query and Output:</h4><pre>WITH ranked_max AS (<br>  SELECT <br>    ticker, <br>    open, <br>    TO_CHAR(date, &#39;Mon-YYYY&#39;) AS month_year, <br>    RANK() OVER (<br>      PARTITION BY ticker<br>      ORDER BY open DESC<br>    ) AS rnk_max<br>  FROM stock_prices<br>),<br><br>ranked_min AS (<br>  SELECT <br>    ticker, <br>    open, <br>    TO_CHAR(date, &#39;Mon-YYYY&#39;) AS month_year, <br>    RANK() OVER (<br>      PARTITION BY ticker<br>      ORDER BY open ASC<br>    ) AS rnk_min<br>  FROM stock_prices<br>),<br><br>max_open AS (<br>  SELECT <br>    ticker, <br>    open AS highest_open, <br>    month_year AS highest_mth<br>  FROM ranked_max<br>  WHERE rnk_max = 1<br>),<br><br>min_open AS (<br>  SELECT <br>    ticker, <br>    open AS lowest_open, <br>    month_year AS lowest_mth<br>  FROM ranked_min<br>  WHERE rnk_min = 1<br>)<br><br>SELECT <br>  m.ticker,<br>  m.highest_mth,<br>  m.highest_open,<br>  n.lowest_mth,<br>  n.lowest_open<br>FROM max_open m <br>JOIN min_open n ON m.ticker = n.ticker<br>ORDER BY m.ticker;WITH cte1 AS (<br>SELECT *, <br>ROW_NUMBER() OVER (<br>PARTITION BY DATE(measurement_time) <br>ORDER BY measurement_time) AS rnk<br>FROM measurements<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dusqGFVPhBJnbQaCSU5HIA.png" /><figcaption>Output</figcaption></figure><h4>🔍 Insights:</h4><p>From the output above, we can derive some insights (unsure whether these values are derived from real-world scenario or not):</p><ul><li>April 2020 appears thrice out of six instances as the lowest opening value for multiple big tech companies such as Apple, Google and Microsoft which alights with the initial pandemic shock, showing significant market-wide downturn at that time.</li><li>Peak opening prices for most tickers were reached between late 2021 and mid-2023.</li><li>Netflix had a significantly higher peak ($689.06) than other FAANG stocks, which may reflect strong subscriber growth during lockdowns.</li></ul><p>That’s it for today! The third medium-level SQL problem solved, explained, and documented. See you in the next one.🚀</p><p>🔗If you want to solve this problem, you can find it <a href="https://datalemur.com/questions/sql-bloomberg-stock-min-max-1">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e0e4d247e9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Interview Questions Series #3]]></title>
            <link>https://farhanfaiyaz17.medium.com/sql-interview-questions-series-3-bbba0bb6b006?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbba0bb6b006</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Wed, 16 Apr 2025 02:20:56 GMT</pubDate>
            <atom:updated>2025-04-16T02:20:56.433Z</atom:updated>
            <content:encoded><![CDATA[<h4>A daily series where I solve one SQL interview question and walk through my thought process.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*znkMqp4amGLo4vHHGjJjLg.png" /></figure><h4>🧩 The Problem Statement</h4><p>Assume you’re given a table with measurement values obtained from a Google sensor over multiple days, with measurements taken multiple times within each day.</p><p>Write a query to <strong>calculate the sum of odd-numbered and even-numbered measurements separately for each day</strong>, and display the results in two different columns.</p><p><strong>Definition</strong>:<br>Within a day, measurements taken at 1st, 3rd, and 5th times are considered <strong>odd-numbered measurements</strong>, and measurements taken at 2nd, 4th, and 6th times are considered <strong>even-numbered measurements</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*PMei_jRbekwzBNuVoXtPPA.png" /><figcaption>sample output</figcaption></figure><h4>📊 Tables</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*bz-BksvoKGmRTUfUEGR2QA.png" /><figcaption>measurements table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*k8E8UZzm4qyND-SeHDG0kQ.png" /><figcaption>measurements example input</figcaption></figure><h4>💭 Step-by-Step Thought Process</h4><ol><li><strong>Understand the goal:</strong> We need to calculate the <strong>sum of measurement values</strong> taken at <strong>odd and even positions</strong> within each day, based on their time order. The output should return one row per day with odd_sum and even_sum as separate columns.</li><li><strong>Understand the schema: </strong>There’s one table- measurements. measurement_time holds the timestamp, which we’ll use to order measurements within each day.</li><li><strong>Deciding on the strategy: </strong>Since we need to formulate two columns named odd_sum and even_sum , we’ll be using case statements and a window function for assigning a sequence.</li><li><strong>Window Function: </strong>Since we need to add up odd and even instances per day, it’s important to order them by the timestamp (per day) for which we need a window function, in this case, ROW_NUMBER() to assign unique sequential numbers based on the timestamp and partition it by the DATE.</li></ol><pre>SELECT *, <br>ROW_NUMBER() OVER (<br>PARTITION BY DATE(measurement_time) <br>ORDER BY measurement_time) AS rnk<br>FROM measurements</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*gNCm3MVPHxS2YtRKBF1YZA.png" /><figcaption>output</figcaption></figure><p>Running the code block above gives us a sequence for the measurements partitioned by the date.</p><p>5. <strong>Case Statement: </strong>In this step, we wrap our previous block of code in a <strong>CTE</strong> and write two <strong>CASE</strong> statements to sum the measurement_value:</p><ul><li>when rnk is odd (1, 3, 5) as odd_sum</li><li>when rnk is even (2, 4, 6) as even_sum</li></ul><p>We then GROUP BY<strong> </strong>measurement_day since we only need <strong>one row per day.</strong></p><pre>SELECT DATE(measurement_time) AS measurement_day,<br>  SUM(CASE WHEN rnk IN (1,3,5) THEN measurement_value ELSE 0 END) AS odd_sum,<br>  SUM(CASE WHEN rnk IN (2,4,6) THEN measurement_value ELSE 0 END) AS even_sum<br>  FROM cte1<br>  GROUP BY measurement_day<br>  ORDER BY measurement_day;</pre><h4>🧪 The Final SQL Query and Output:</h4><pre>--output: measurement_day, odd_sum, even_sum (need case statements)<br>--since it&#39;s time, need to order by measurement_time<br><br>WITH cte1 AS (<br>SELECT *, <br>ROW_NUMBER() OVER (<br>PARTITION BY DATE(measurement_time) <br>ORDER BY measurement_time) AS rnk<br>FROM measurements<br>)<br><br>SELECT DATE(measurement_time) AS measurement_day,<br>  SUM(CASE WHEN rnk IN (1,3,5) THEN measurement_value ELSE 0 END) AS odd_sum,<br>  SUM(CASE WHEN rnk IN (2,4,6) THEN measurement_value ELSE 0 END) AS even_sum<br>  FROM cte1<br>  GROUP BY measurement_day<br>  ORDER BY measurement_day;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*b6UvR-r8VKVWziPGeB_txA.png" /><figcaption>Output</figcaption></figure><p>That’s it for today! The third medium-level SQL problem solved, explained, and documented. See you in the next one.🚀</p><p>🔗If you want to solve this problem, you can find it <a href="https://datalemur.com/questions/odd-even-measurements">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbba0bb6b006" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Interview Questions Series #2]]></title>
            <link>https://farhanfaiyaz17.medium.com/sql-interview-questions-series-2-313a4e051d5e?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/313a4e051d5e</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Sat, 12 Apr 2025 05:11:45 GMT</pubDate>
            <atom:updated>2025-04-12T05:13:35.560Z</atom:updated>
            <content:encoded><![CDATA[<h4>A daily series where I solve one SQL interview question and walk through my thought process.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lmBaHSxjRZGz0244OcePgw.png" /></figure><h4>🧩 The Problem Statement</h4><p>We want to identify <strong>Supercloud customers</strong> on Microsoft Azure — defined as customers who have purchased <strong>at least one product from every product category</strong> available in the products table.</p><p>To determine this, we’ll need to analyze the customer_contracts table, which records product purchases by customer, and cross-reference it with the products table, which provides the category of each product. The goal is to return the customer_ids of those customers who have made purchases across <strong>all available product categories</strong>.</p><h4>📊 Tables</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*nTST7QegwYsTCSvN5ewNww.png" /><figcaption>customer_contracts table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*Ou7KJyH5hE7ubnVoJKfLRw.png" /><figcaption>customer_contracts input</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*fNhHbQuJyHaNh4rvN5r9eg.png" /><figcaption>products table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*V17iQg-Ahfcfd1IvVxvBHw.png" /><figcaption>products input</figcaption></figure><h4>💭 Step-by-Step Thought Process</h4><ol><li><strong>Understand the goal:</strong> The objective is to identify customers who have made purchases from every distinct product category listed in the products table.</li><li><strong>Understand the schema: </strong>There are two tables: product_id is the primary key (PK) in the products table and a foreign key (FK) in the customer_contracts table. So, we can join them on product_id.</li><li><strong>Deciding on the strategy: </strong>This is where many people tend to overcomplicate things by jumping into CTEs or nested subqueries. But in this case, a simple<strong> </strong><strong>JOIN, </strong><strong>GROUP BY, and </strong><strong>HAVING</strong> clause can get the job done efficiently.</li><li><strong>Finding the number of distinct product categories: </strong>To make life easier, I decided to find out the distinct number of categories so that I can simply put the numerical value in theHAVING clause.</li></ol><pre>SELECT COUNT(distinct product_category)<br>FROM products;<br><br>-- the value was 3<br>-- or you can simply look at the categories without using the COUNT() operator.<br>-- in this case the output would be: Analytics, Containers and Compute</pre><h4>🧪 The Final SQL Query and Output:</h4><pre>SELECT c.customer_id<br>FROM customer_contracts c <br>INNER JOIN products p <br>ON c.product_id = p.product_id<br>GROUP BY customer_id<br>HAVING COUNT(DISTINCT product_category) =3;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/1*7_tBAynHK9vCzqr3VjWYQQ.png" /></figure><p>Only the customer_id = 7 purchased at least one product from every category. If we look at all the purchases for this customer, we can verify that he/she indeed bought products from all different categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xlb-ZzVjP-q1j6shctl_WQ.png" /></figure><p>That’s it for today! The second medium-level SQL problem solved, explained, and documented. See you in the next one. (this one low-key was kinda easy) 🚀</p><p>🔗If you want to solve this problem, you can find it <a href="https://datalemur.com/questions/supercloud-customer">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=313a4e051d5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Interview Questions Series #1]]></title>
            <link>https://farhanfaiyaz17.medium.com/sql-interview-questions-series-1-ed0a62588692?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed0a62588692</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 03:06:43 GMT</pubDate>
            <atom:updated>2025-04-10T03:19:20.887Z</atom:updated>
            <content:encoded><![CDATA[<h4>A daily series where I solve one SQL interview question and walk through my thought process.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SqhVzUU7xlWleZ8w9xFjwQ.png" /></figure><h4><strong>💪 Motivation:</strong></h4><p>I’d been heavily relying on AI over the past couple of months to write SQL queries, and I soon realized I was starting to lose my touch — especially when it came to thinking through problems on my own. SQL was the first programming language I learned, and now that I’m actively looking for jobs as a data analyst or data engineer, I know I need to sharpen those skills again. Since I love explaining code as I go, I figured — why not document my thought process and, at the same time, keep my Medium account active?</p><h4>🧩 The Problem Statement</h4><p>We want to calculate the <strong>signup activation rate</strong> for users at <strong>Tiktok</strong> listed in the emails table. A user is considered &quot;activated&quot; if there&#39;s at least one entry in the texts table with a signup_action of &#39;Confirmed&#39; for their corresponding email_id. The result should be the percentage of activated users out of the total users in the emails table, rounded to <strong>two decimal places</strong>.</p><h4>📊 Tables</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*vqyRY4zzqdw7EeW3vTu5Gg.png" /><figcaption>emails</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*N55EFtugY8Z-wLP9KLTf7A.png" /><figcaption>emails example input</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*vcxYQIzJFx9eVcsVzvOD7Q.png" /><figcaption>texts</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*XiL1T47AEzil6dt1j-gJQA.png" /><figcaption>texts example input</figcaption></figure><h4>💭 Step-by-Step Thought Process</h4><ol><li><strong>Understand the goal:</strong> The objective is to find the activation rate ( count of all the distinct users with signup_action = &#39;Confirmed&#39;/ count of all the distinct users in the emails table ). We have to keep in mind that not all the users in the emails table will be there in the texts table. The output will be one value (in decimals). Round the result to 2 d.p.</li><li><strong>Understand the schema: </strong>There are two tables: email_id is the primary key (PK) in the emails table and a foreign key (FK) in the texts table. Therefore, we can join them based on email_id. There is a one-to-many relationship between the emails and texts tables, meaning one email signup can have multiple text confirmations.</li><li><strong>Determine How to Track Confirmed Users:</strong></li></ol><pre>/* created a CTE for the confirmed_users to isolate users <br>who have a &#39;Confirmed&#39; action. I joined the tables using INNER JOIN<br>because I wanted to only keep the records that match both the tables<br>Use distinct because one user might confirm multiple times */<br><br>WITH confirmed_users AS (<br>  SELECT DISTINCT e.user_id<br>  FROM emails e<br>  JOIN texts t ON e.email_id = t.email_id<br>  WHERE t.signup_action = &#39;Confirmed&#39;<br>)</pre><p>4. <strong>Calculate the Activation Rate</strong></p><p>Using the CTE from before, in the final SELECT statement, I compute the activation rate by dividing the number of confirmed users by the total users from the emails table.</p><pre>/* The purpose of the left join was to keep all users from the emails table<br>even if they haven&#39;t confirmed*/<br><br>SELECT <br>  ROUND(<br>    COUNT(DISTINCT c.user_id) / COUNT(DISTINCT e.user_id), <br>    2<br>  ) AS activation_rate<br>FROM emails e<br>LEFT JOIN confirmed_users c ON e.user_id = c.user_id;</pre><h4>🧪<strong>The Final SQL Query and Output:</strong></h4><pre>WITH confirmed_users AS (<br>  SELECT DISTINCT e.user_id<br>  FROM emails e<br>  JOIN texts t ON e.email_id = t.email_id<br>  WHERE t.signup_action = &#39;Confirmed&#39;<br>)<br><br>SELECT <br>  ROUND(<br>    COUNT(DISTINCT c.user_id) / COUNT(DISTINCT e.user_id), <br>    2<br>  ) AS activation_rate<br>FROM emails e<br>LEFT JOIN confirmed_users c ON e.user_id = c.user_id;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/159/1*5lukwGWMb9h_4hiVa3mfMA.png" /><figcaption>Output</figcaption></figure><p><strong>Interpretation: </strong>The activation rate came out to be 0.33, indicating that 33% of users from the emails table have successfully confirmed their signup by responding to at least one of the texts.</p><p>That’s it for today! The first medium-level SQL problem solved, explained, and documented. See you in the next one. 🚀</p><p>🔗If you want to solve this problem, you can find it <a href="https://datalemur.com/questions/signup-confirmation-rate">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed0a62588692" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selling Shoes Made Me a Better Data Analyst ]]></title>
            <link>https://farhanfaiyaz17.medium.com/selling-shoes-made-me-a-better-data-analyst-779aba98a921?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/779aba98a921</guid>
            <category><![CDATA[sales]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[storytelling]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Tue, 23 Jan 2024 09:53:19 GMT</pubDate>
            <atom:updated>2024-01-23T10:14:35.000Z</atom:updated>
            <content:encoded><![CDATA[<h4>This is how my first casual job as a sneaker salesperson impacted my data interpretation and storytelling skills</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7JM1TsRtpHrCVgu_oCodBw.jpeg" /><figcaption>Image from <a href="https://unsplash.com/photos/person-holding-white-and-pink-nike-athletic-shoes-AKtRP7xU8ro">Unsplash</a></figcaption></figure><p>While kids get their first retail experience here in Australia at the age of 15, I stepped foot into retail at 25. It was not because I needed money; I was already making a good amount working as an analyst at a supply chain company while working towards my master’s degree. I wanted to brush up on my sales skills and work at a sneaker shop to understand the business dynamics. Little did I know this would greatly impact my data analysis and storytelling skills.</p><p>In the store, I spent my early days getting to know the different brands, prices, distinct materials and characteristics that made each pair unique. Every day, I met all kinds of customers — high school and college athletes looking for light football boots, tradies wanting durable shoes, grandparents searching for their grandkids’ footwear, the list was endless. I had some really good interactions, but occasionally… not so much. Still, dealing with this lively environment helped me improve at selling shoes to just about anyone.</p><p>When working with a customer, it is important to know the needs of your audience. You wouldn’t want to sell a pair of trekking boots to competitive runners unless, of course, they were looking for them. Also, being able to distinguish between a seasoned athlete and someone who’s buying their first pair was very important. For the first case, my pitch would involve technical terms like material composition, durability, weight differences, etc., which seasoned athletes already know. However, for the latter case, instead of using technical jargon, I would resort to simpler terms to explain the features more intuitively to the newcomer.</p><p>The key information conveyed was still the same, but the mode of delivery was different. Understanding the psychology, level of expertise, and experience of the customers buying the pair of shoes was crucial to being a good salesperson.</p><p>One of my go-to pitches involved quick and smart number-crunching to create an imaginary sense of value for more expensive shoes. I would greatly emphasize how getting an expensive shoe that you like and potentially wear at least four times a week is way more valuable than a shoe on sale, which you’d wear a maximum of 10 times altogether. By introducing the dollar-per-wear concept, you can easily divert a consumer from opting for a cheaper alternative to a more expensive one. Ultimately, it’s a win-win for both parties, assuming the consumer goes on to wear the shoe frequently. Then again, this pitch will not apply to everyone. These are more effective on people who seem smart enough to grasp the numbers or wise enough to understand the value of long-term investment instead of fast fashion. At the end of the day, understanding the customer before applying a pre-meditated theory was crucial.</p><p>So you must be wondering how any of this is relevant to data analytics.</p><p>At the end of the day, data analysis is just gathering insights for a given party to achieve a particular goal. Being able to correctly understand what to look for, what questions to answer, and what goals to achieve is crucial for a salesperson, just as it is for a data analyst. I&#39;d be wasting our time if I bombarded my non-technical boss with fancy terms like regression, supervised learning, t-tests, etc.. Instead, showing clear visualizations like scatter plots to show revenue trends, bar plots to emphasize best-selling shoes, or the time of the day that drives the most sales is what interests my boss. Showing off using technical terms holds no value if the data is not properly communicated to the stakeholders.</p><p>Always ask the following questions when working with data for a stakeholder:</p><ol><li>What insights should I gather from the data to create the highest value for my customer?</li><li>How easily can they understand what I’m inferring using the data?</li></ol><p>At the end of the day, you can blabber all you want to a customer looking to buy shoes, but if you don’t give them the right pair for their needs, you’ll end up with a bad rep and eventually get fired. Similarly, as data analysts, you must align your findings with the customer’s requirements and “sell” your data to give them the highest value. Ultimately, it’s not the shiny talk or analysis that’s important; it’s the true impact you create that leaves a mark.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=779aba98a921" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Master of Business Analytics WRAPPED]]></title>
            <link>https://farhanfaiyaz17.medium.com/master-of-business-analytics-wrapped-75a8aaba6171?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/75a8aaba6171</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[business-analytics]]></category>
            <category><![CDATA[masters-degree]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[australia]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Mon, 18 Dec 2023 04:29:44 GMT</pubDate>
            <atom:updated>2023-12-18T04:29:44.523Z</atom:updated>
            <content:encoded><![CDATA[<h4>Get a summary of what I learned in the first year of my Master of Business Analytics program at the University of Technology, Sydney.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHQadFbyHMpKNLknAne3bw.png" /></figure><p>In 2022, I faced the challenging decision of transitioning from a career in mechanical engineering to embark on a new path in data science and business analytics. Commencing my master’s program at <a href="https://www.uts.edu.au/">UTS</a> in early 2023, the past year has been a great learning experience.</p><p>Here’s a brief outline of the courses I took in the first semester, along with a short description of the course contents, so that you can start learning on your own if you don’t wish to spend a fortune. Additionally, I will discuss how I approached the courses and the projects I completed.</p><h3>Semester 1</h3><h4>1. Foundations of Business Analytics</h4><p>This course goes beyond a general introduction to the fundamentals of business analytics. It provides a step-by-step guide to core concepts such as data understanding, modeling, storytelling, and visualization.</p><p>The final assessment involved a real-life business analyst simulation in which I worked on a project for a consulting company specializing in firm and capital market analysis for investors and financial advisors. This project included tasks such as data preprocessing, fixing data types, data cleaning, and identifying and replacing missing values. Additionally, it involved conducting predictive analysis to determine and evaluate key drivers for revenue and costs in multiple industries.</p><p><strong>Concepts Learned:</strong> Data storytelling, data visualization, data preprocessing</p><p><strong>Tool(s) used:</strong> MS Excel and KNIME</p><p>Click <a href="https://handbook.uts.edu.au/subjects/details/26776.html"><strong>here</strong></a> for the 2024 handbook for the Foundations of Business Analytics course.</p><h4>2. Studio 1: Foundation</h4><p>This course emphasized real-world analytics scenarios, requiring us to identify business problems and propose effective solutions. It had a strong focus on economics, covering topics such as consumer demand, company behavior, market structure, market equilibrium, and government policies.</p><p>The course comprised three assignments/projects. The first assignment involved analyzing a real-world business case, providing the flexibility to choose an Australian company and conduct a comprehensive analysis considering both micro-economic and macro-economic factors. The second assessment was a business analytics simulation, where we applied data analytics and economic concepts to address challenges for a ride-sharing company. The final assessment explored Australia’s private and public healthcare systems, examining the impact of various government policy interventions.</p><p><strong>Concepts Learned:</strong> Regression analysis, demand forecasting</p><p><strong>Tool(s) used: </strong>MS Excel</p><p>Click <a href="https://handbook.uts.edu.au/subjects/details/23708.html"><strong>here</strong></a> for the 2024 handbook for the Studio 1: Foundation course.</p><h4>3. Data Processing Using SAS</h4><p>This course covers the essentials of utilizing SAS for data analytics. Before enrolling, I was unfamiliar with SAS (Statistical Analysis Software), but it turns out it’s a leading choice for analytics and report writing.</p><p>The first assessment involved three distinct datasets, necessitating the application of basic SAS codes to uncover insights. However, the main goal was to become familiar with the syntax and functions within SAS. The final assessment centred around manipulating a raw dataset, offering a choice between the Amazon Sales Dataset and the Climate Risk and Economic Losses Dataset. Each file had multiple sheets for analysis. If you’re interested in similar datasets, you can explore these options:</p><p><a href="https://www.kaggle.com/datasets/karkavelrajaj/amazon-sales-dataset">Amazon Sales Dataset</a></p><p><a href="https://canvas.uts.edu.au/courses/26155/assignments/130683">Climate Risk and Economic Losses</a> |<a href="https://www.cia.gov/the-world-factbook/"> CIA countries Taxonomy</a></p><p>The goal is to conduct exploratory data analysis using the SAS programming language on these datasets.</p><p><strong>Concepts Learned: </strong>Data exploration, validation and manipulation using SAS</p><p><strong>Tool(s) used: </strong>SAS Studio (SAS programming language)</p><p>Click <a href="https://handbook.uts.edu.au/subjects/details/26777.html"><strong>here</strong></a> for the 2024 handbook for the Data Processing Using SAS course.</p><h4>4. Database Principles</h4><p>This course covers the introductory concepts of database design and implementation. It includes learning about designing entity-relationship (ER) models and converting these models into logical data structures.</p><p>The assessment for this course comprises multiple lab exams that progressively test your ability to run SQL queries, challenging you to extract and manipulate relational databases at increasing levels of difficulty. The final project involves creating a custom-tailored database based on individual interests and specific criteria. This includes running SQL queries to extract data addressing specific business problems.</p><p>To get an overview of my submission, click <a href="https://drive.google.com/file/d/1nLuY9rh5qWUbK6WCCkr73tYOPY8KHkoQ/view?usp=drive_link">HERE</a>.</p><p><strong>Concepts Learned: </strong>Entity Relationship diagram and model, basic and intermediate SQL querying.</p><p><strong>Tool(s) used: </strong>PostgreSQL, Lucidchart for ERD</p><p>Click <a href="https://handbook.uts.edu.au/subjects/details/32606.html"><strong>here</strong></a> for the 2024 handbook for the Database Principles course.</p><h4><strong>5. Enabling Enterprise Information Systems</strong></h4><p>This course delivered a comprehensive exploration of information systems and design thinking. It was relatively theory-heavy, covering key topics including:</p><ul><li>Information systems overview and real-world IS challenges</li><li>Information systems within the organisations</li><li>Organizational strategy, competitive advantage, and information systems</li><li>Ethics, privacy, and information security</li><li>E-business and E-commerce</li><li>Approaches to IS development and project management</li><li>Social, cloud and mobile computing</li><li>Intelligent systems</li><li>Design thinking</li></ul><p>The final assessment culminated in a capstone group project, tasking us with designing a prototype for an information service to support business systems. In my group, we developed a low-fidelity prototype for a health and well-being app tailored for truck drivers.</p><p><strong>Concepts Learned: </strong>Design thinking, prototyping, persona empathy map, Lotus blossom diagram</p><p><strong>Tool(s) used: </strong>Miro, Canva</p><p>Click <a href="https://handbook.uts.edu.au/subjects/details/32557.html"><strong>here</strong> </a>for the 2024 handbook for the EEIS course.</p><h3>Semester 2</h3><h4>1. Studio 2: Specialization</h4><p>This course exemplifies the real-world responsibilities of data and business analysts, immersing students in solving business problems from scratch using the industry-standard <a href="https://www.datascience-pm.com/crisp-dm-2/">CRISP-DM</a> framework.</p><p>What stood out to me was the course’s practical approach, especially in dealing with intentionally poor data quality, the flexibility of tools for dataset analysis, and the absence of a predetermined outcome.</p><p>In my group project, we tackled a business case aiming to reduce attrition rates at a US-based pharmaceutical company. The project unfolded as follows:</p><p><strong>i)</strong> <strong>Conducting business and data understanding:</strong> We conducted industry research, defined research objectives, and explored initial data (including missing values, range, and outlier analysis).</p><p><strong>ii) Data preparation:</strong> This involved data preprocessing (cleaning, merging, formatting, and feature engineering), data visualization, and pre-model analysis based on visual insights.</p><p><strong>iii)</strong> <strong>Modeling and Evaluation:</strong> We selected and implemented machine learning models (logistic regression, decision tree, and random forest). The best predictive model, considering explainability, predictability, and complexity, was used to form profiles addressing the business problem of reducing attrition rates.</p><p>The course’s structure, centred around a substantial business problem, allowed us to gradually solve it throughout the semester.</p><p><strong>Concepts Learned: </strong>CRISP-DM Framework, Building Machine Learning Models, and Implementation.</p><p><strong>Tool(s) used: </strong>Python (scikit-learn), IBM SPSS, MS Excel (pivot tables, VLOOKUP, Analysis ToolPak).</p><p>Click <a href="https://handbook.uts.edu.au/subjects/details/24754.html"><strong>here</strong></a> for the 2024 handbook for the Studio 2: Specialisation course.</p><h4>2. Data Visualisation and Visual Analytics</h4><p>This course, as the name suggests, focused on data visualization and employing effective storytelling techniques for stakeholders. It involved three projects based on intriguing datasets, with one particularly enjoyable project centred around the <a href="https://ausopen.com/">Australian Open.</a></p><p>The primary tool utilized throughout the course was Tableau, which captivated me instantly. Its capabilities impressed me, and having used it, I’ve decided not to revert to any other tool for visualization. Beyond creating basic charts, I gained proficiency in developing intricate visualizations for storytelling, such as Sankey diagrams, parallel coordinates, treemaps, choropleth maps, etc.</p><p>Here are links to my Tableau dashboards and storyboards that I made during this semester:</p><p>i) <a href="https://public.tableau.com/app/profile/farhan.faiyaz/viz/AustraliaTrade_17011507161340/VisualStoryboard">Mapping Australia’s Global Trade Dynamics (1988–2022): A Focus on Mineral Fuels</a></p><p>ii) <a href="https://public.tableau.com/app/profile/farhan.faiyaz/viz/shared/ZDWTCFWM2">Grand Slam Analytics: Unveiling Trends and Patterns in the Australian Open</a></p><p><strong>Concepts Learned: </strong>High-dimensional visualisation, visual analytics.</p><p><strong>Tool(s) used: </strong>Tableau</p><p>Click <a href="https://handbook.uts.edu.au/subjects/details/32146.html"><strong>here</strong></a> for the 2024 handbook for the Data Visualisation and Visual Analytics course.</p><h4>3. Data Processing Using Python</h4><p>This Python course, centered on data analytics, provides a foundational overview of Python. Covering essential topics like comparison operators, functions, object-oriented programming, and data visualization using libraries such as Matplotlib, Seaborn, and Plotly, it also briefly introduces machine learning techniques.</p><p>The culmination of the course is the final project, which holds significant weight. This project entails conducting exploratory data analysis on a dataset of our choosing. Personally, I focused on a dataset related to data science job salaries worldwide. For a detailed look at my analysis, you can access my Python notebook through this link:</p><p><a href="https://github.com/FarhanFaiyaz/Data-Science-Job-Salary">Data Science Job Salaries: Exploratory Data Analysis</a></p><p><strong>Concepts Learned: </strong>object-oriented programming and data visualisation using Matplotlib, Seaborn and Plotly.</p><p><strong>Tool(s) used: </strong>Pyhon (Libraries: NumPy, Pandas, Matplotlib, Seaborn, Plotly, country converter)</p><h4>4. Bank Lending and Analytics</h4><p>This finance course focused on credit risk assessment and marked my initial foray into the field. To prepare, I independently studied various accounting topics, a journey that proved to be worthwhile.</p><p>The course featured two significant assessments. The first involved conducting a credit risk assessment for a specific bank, evaluating multiple clients based on various attributes. The final assessment posed a considerable challenge, requiring the analysis of loan-level performance data and the construction of probability of default models for Basel III and IFRS 9 compliance. In essence, PD (Probability of Default) models and LGD (Loss Given Default) models were computed using time series data from 2001 to 2015. These calculations were coupled with datasets encompassing income levels and environmental factors to assess their impact on credit risks and validate the constructed models.</p><p>For further insights into this project and an overview of its intricacies, feel free to send me a direct message. Unfortunately, due to confidentiality constraints, I am not permitted to disclose the code publicly.</p><p><strong>Concepts Learned: </strong>Credit risk assessment, PD and LGD modelling, expected credit losses, loan loss provisioning.</p><p><strong>Tool(s) used: </strong>Python, MS Excel</p><p>Click <a href="https://handbook.uts.edu.au/subjects/details/25752.html"><strong>here</strong></a><strong> </strong>for the 2024 handbook for the Bank Lending and Analytics course.</p><h4>5. Data Processing Using R</h4><p>This R introductory course centered on data analytics covers fundamental topics such as array operations, data manipulation, and the creation of interactive graphs and dashboards and more. The culmination of the course is a final assessment where students are tasked with building an interactive web application using the Shiny package.</p><p>It’s noteworthy that starting in 2024, this course may no longer be available and will be replaced by the Data Processing Using Python course, offering double the credit points.</p><p><strong>Concepts Learned: </strong>Data analysis using R, building interactive web apps using Shiny</p><p><strong>Tool(s) used: </strong>RStudio, Shiny</p><h3>📊 Evaluation</h3><p>Enrolling in a Master of Business Analytics degree at UTS can be a worthwhile investment if you have the financial means and time commitment. However, for self-learners seeking an alternative path, here’s a concise guideline:</p><h4>Master MS Excel:</h4><ul><li>Solve business problems from scratch using MS Excel.</li><li>Apply the CRISP-DM framework to guide your problem-solving process.</li><li>Learn data cleaning, preprocessing, and storytelling through visualization using MS Excel.</li></ul><h4>Learn Python:</h4><ul><li>Master one programming language, preferably Python.</li><li>Familiarize yourself with key libraries like NumPy, Pandas, Matplotlib, and Seaborn for data manipulation, analysis, and visualisation and solve business problems using CRISP-DM.</li><li>Gain exposure to building machine learning models.</li></ul><h4>Learn SQL:</h4><ul><li>Learn basic and advanced queries and build SQL projects. SQL projects will typically showcase your ability to take a dataset and gather insights.</li></ul><h4>Tableau for Interactive Dashboards:</h4><ul><li>Build interactive dashboards using Tableau.</li><li>Utilize datasets preprocessed using MS Excel or Python for visualisation in Tableau.</li></ul><h4>Virtual Internships:</h4><ul><li>Explore virtual internships, like those offered by <a href="https://www.theforage.com/">Forage</a>, to gain practical experience with big companies.</li></ul><h4>Project Building and Refinement:</h4><ul><li>Generate project ideas using ChatGPT.</li><li>Stick to topics of personal interest to stay focused.</li><li>Build and refine your skills through building projects. Create an end-to-end project with all the tools you’ve learned.</li></ul><h3>🌻 If you loved this article and want to connect, send me an <a href="https://www.linkedin.com/in/farhanfaiyaz/">invite</a>!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75a8aaba6171" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Touch Typing Changed My Life]]></title>
            <link>https://farhanfaiyaz17.medium.com/touch-typing-changed-my-life-a4847f670aa3?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4847f670aa3</guid>
            <category><![CDATA[keyboard]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[typing]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Tue, 21 Nov 2023 04:47:04 GMT</pubDate>
            <atom:updated>2023-11-21T05:17:11.810Z</atom:updated>
            <content:encoded><![CDATA[<h4>The most underrated productivity hack you can possibly learn</h4><blockquote>I will give you my framework to shift from hunting and pecking at 25 wpm to mastering touch typing to hit over 100 wpm. Learning how to touch type has been one of the most rewarding, if not the most rewarding skill that I have mastered to date.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_xZGkNu9Lg1-qU3Kgu5PoA.png" /><figcaption>Image generated using Midjourney AI</figcaption></figure><p>🚀 During mid-2022, while applying to universities for my master’s program, I found myself with some time to spare. As someone who loves optimizing every aspect of life, I decided it was high time to learn touch typing. I had two goals in mind: acquiring an additional skillset to boost my blogging speed and also lowkey flexing my typing speed (Let&#39;s be honest, someone who types at 100 wpm is cool). This turned out to be one of the best decisions I had made in a while.</p><p>Currently, I type consistently over 90 wpm, and when I’m in the flow, I hit over 100 wpm. I will give you my framework for how I achieved this in about 6 months with 1-hour practice every day.</p><h4>🧐 Why should you learn touch typing?</h4><ul><li>Your eyes are on the screen and not the keyboard. You can focus more on the content than finding your keys.</li><li>You can match the speed of your thoughts. I can transcribe my thoughts quickly enough onto the canvas, allowing me to capture ideas as they flow. Later on, I filter the best parts from my scraps and turn them into gold.</li><li>You can write a 3000-word report in a couple of hours if you have the content ready. Touch typing has saved me from missing deadlines, as I tend to write reports for assignments on the last day.</li><li>It makes you insanely efficient by saving time, as you don’t have to press the backspace key as often, which is the usual case when people keep switching their vision between the screen and the keyboard.</li><li>It makes you cool. 😎</li></ul><h4>🚙 Things to keep in mind:</h4><ol><li>Use a reliable website or software to start touch-typing from scratch. I tried numerous websites, and while many were great, I found significant progress with <a href="https://www.typingmaster.com/typing-tutor/community.html">Typing Master</a>. I opted for the old version with a minimalistic UI to eliminate distractions, and fortunately, I obtained a key from a friend, granting me access to the full version. (Currently, they are offering the key for free.)</li><li>DO NOT LOOK AT THE KEYBOARD. This is the most important aspect you have to keep in mind. The first few days or weeks will be insanely frustrating, and you’ll feel like going back to using your index fingers to type, but let me tell you, it gets better.</li><li>Anchoring your fingers in the home row. The preliminary practice you have to do is rest your left fingers on A, S, D, and F while your right fingers are on J, K, L, and the semicolon. Both thumbs should hover over / rest on the space bar. This will be a reflex in no time. Did you notice that there are small bumps on the F and J keys? It is there so that you can navigate your index fingers on those keys without having to look at them when you’re lost.</li><li>Allocate at least an hour in the first couple of weeks to make yourself comfortable with typing without looking and using all your fingers. (I ended up typing for hours when I started seeing tangible results.) The initial weeks are crucial since you will have to step out of your comfort zone and be prepared to face occasional frustration. Avoid breaking your concentration by scrolling on your phone or surfing the web during these sessions.</li><li>Work on your posture and calibrate your chair/ table elevation. For detailed information on typing posture, check <a href="https://www.typing.com/blog/typing-posture/">typing.com</a></li></ol><p>The prerequisites are important since they’ll set you up for an effective typing journey.</p><h4>🖼️ Framework</h4><p>For the steps that I will be providing, I will refer back to the lessons from Typing Master. When I learned touch typing through Typing Master, the course had 12 lessons in total. These lessons assume you have no prior experience in touch typing, so you’ll gradually learn the basics as you progress. Here are some key aspects I learned over time that might help you accelerate the learning process.</p><ul><li>When you start learning how to touch type, focus on ACCURACY, not your typing SPEED. For most people, you’ll notice a drastic decrease in your typing speed initially. You might drop to about 10–15 WPM at times because you’re learning how to type without looking at the keys. Initially, you’ll end up pressing the wrong keys, and that’s alright. Accept the fact that for 2–3 weeks, this will be the case, and it’s normal. In the first few days, solely concentrate on learning which fingers should press which keys.</li><li>Try to complete one lesson properly every single day. So, it should take you 12 days to finish all the lessons. But keep a buffer to revise the previous lessons, especially those where you have to use your pinky fingers. I still struggle when I have to press P and Q with my pinkies, and that slows me down often. Aim to finish the course within 2 weeks. The lessons may seem repetitive, but they build up the muscle memory essential for touch typing.</li><li>Keep track of your gross and net typing speed every day. The software allows you to see your progress. Focus on your accuracy, and the speed will increase over time. Remember, you can only improve your speed when you make fewer mistakes. It doesn’t matter how fast you type if you consistently type the wrong keys. At the end of the day, those who type slower but correctly end up hitting a higher typing speed compared to those who type fast but end up hitting the backspace more often.</li><li>Use both the SHIFT keys. You heard that right. Most of us end up using only the left SHIFT and never use the right SHIFT. Remember, when you’re using your right hand to type a letter that needs capitalization, make sure to use the left SHIFT, and vice versa.</li><li>Try some typing games, like <a href="https://play.typeracer.com/">TypeRacer</a> when you’re familiar with the keyboard layout and can comfortably type at 90%+ accuracy. Use websites like <a href="https://monkeytype.com/">monkeytype</a> to casually check your typing speed every day.</li><li>Get a mechanical keyboard (optional). When you start using a mechanical keyboard, there’s no going back. You can find loads of different keyboards with different switches, but that’s for another article. Even though getting a mechanical keyboard is not necessary, it makes the process more enjoyable and efficient. The MacBook keyboards are also great.</li><li>Practice every day, and make sure you don’t end up using your index fingers when you’re frustrated. Transfer your touch typing skills when you’re writing a report, an essay, an article, or even a social media post.</li><li>Take short breaks during the typing sessions. You’ll get fatigued after 20–30 minutes. Speed and accuracy decline when you’re fatigued. You can easily implement the <a href="https://medium.com/@farhanfaiyaz17/pomodoro-power-a-game-changer-for-work-and-study-b23b67a34361">Pomodoro Technique</a> in this case to boost your productivity.</li><li>Write every day. I picked up the habit of writing, and that accelerated this process even further. My touch typing skills complemented my blogging, and vice versa. If you touch type for 30 minutes every day and, on top of that, use it for a creative purpose, you’ll be doing yourself a big favor.</li></ul><p>Within one month, you’re expected to type at about 40 WPM. However, once you build up the muscle memory with constant practice, it’ll slowly reach 100 in six months to a year. Yes, there is no shortcut to this, but of course, if you put in more hours, you’ll see faster results.</p><p>At the end of the day, typing faster saves you time. You can do the simple math. If you type at 30 WPM, it’ll take you 10 minutes to compose a 300-word email. If you double your typing speed to 60 WPM, you can crank it out in 5 minutes. Over the course of the year, you’ll save a substantial amount of your time, and this is why I can strongly say that touch typing has been life-changing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4847f670aa3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pomodoro Power: A Game-Changer for Work and Study ⏰]]></title>
            <link>https://farhanfaiyaz17.medium.com/pomodoro-power-a-game-changer-for-work-and-study-b23b67a34361?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/b23b67a34361</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[study]]></category>
            <category><![CDATA[pomodoro-technique]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[personal-development]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Fri, 06 Oct 2023 01:17:15 GMT</pubDate>
            <atom:updated>2023-10-06T03:58:25.775Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>📷Picture this: </strong>you’re racing against the clock, juggling a dozen tasks, and drowning in distractions. Now, what if I told you there’s a simple trick that can turn this chaos into a highly productive, even enjoyable, workday?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VF9clpNlBaITeP078W-Ozw.jpeg" /><figcaption>Picture from <a href="https://www.breeze.pm/blog/pomodoro-technique">breeze</a></figcaption></figure><h3>🍅 What is the Pomodoro Technique?</h3><p><strong>The Pomodoro Technique</strong> is a time management method that involves working in 25-minute intervals, separated by short breaks.</p><p>This method is effective if you struggle to manage your time and maintain focus for long stretches. By breaking your work or study sessions into smaller, timed batches, you can enhance productivity and complete your tasks without relying solely on willpower or motivation.</p><h3>👣 Step-by-Step Guide</h3><ol><li>Choose a single task to focus on.</li><li>Set a timer for 25 minutes (might vary) and start working on your task.</li><li>After 25 minutes take a short break (5minutes).</li><li>Repeat steps 1–3 three to four times.</li><li>Take a long break (15–30 minutes).</li><li>Repeat.</li></ol><h3>⚙️Pomodoro Application</h3><p>Let’s look at some examples of how you can use the Pomodoro Technique, irrespective of your current educational status.</p><h4>🎒Middle School</h4><ul><li><strong>Studying for a test</strong>— Choose the topic you want to master and only allocate the Pomodoro stretches for that topic. Break it down into small chunks and start working. <strong>After 25 minutes take a small break but do not surf the web or use your mobile phone.</strong> This step is applicable to all the following examples. After three to four repetitions, take a longer break. You’ll be surprised to see how much content you’ve covered.</li><li><strong>Writing essays</strong> — Be clear about the topic of the essay. Work on whichever part of the essay you have to (intro/body) and after 25 minutes take a break. Avoid other cognitively challenging stuff like reading other articles for instance. Get back to work and repeat.</li></ul><h4>🏫High School</h4><ul><li><strong>Studying for O/A Levels (SSC/HSC) </strong>— Study 1–2 subjects every day. Decide on which subject and which topic to cover. Study the module for 25 minutes until the timer goes off. Take a 5-minute break and then continue from where you left off. Repeat until the module is complete. Take a long break if done within 3–4 sessions and then move on to the next subject if you plan to study.</li><li><strong>Completing a College Application </strong>— Choose which section to work on, for instance, personal statements or ECAs. Work until the timer goes off and go through what you’ve written in the break. Make changes if needed when the next session begins. Repeat the stretches until a sizeable portion is complete.</li></ul><h4>🎓University</h4><ul><li><strong>Writing an academic paper </strong>— Choose which section to work on, such as the literature review, introduction, or body for example. Set a timer for 25 minutes and work until the timer goes off. Take a small break to go over the work you just did and make amends.</li><li><strong>Learning new hard skills</strong> — Choose a skill, like programming, to focus on. Determine your skill level—if you’re a beginner, start with the basics. Topics to cover may include data types, data structures, and basic syntax. Spend 25 minutes learning and applying these concepts, then take a short break before continuing.</li></ul><h4>👨‍💼Professionals and Self-Learners</h4><ul><li><strong>Working on a project</strong> — Choose which part of the project to work on. Let’s take data analysts as examples. The part may be data cleaning and preprocessing or making charts and graphs for the processed data. Spend 25 minutes working on the project until the alarm goes off. Take 5 minutes break and make changes to your work if needed.</li><li><strong>Learning a new skill </strong>— Select a skill to master, such as learning a new programming language or software. Identify specific reference materials to use for learning since not having a fixed/structured resource set might derail you from even getting started. Set a 25-minute timer and immerse yourself in learning until it rings.</li></ul><h3>🎨My Pomodoro Technique and Things to Remember</h3><p>I initially began with 25-minute learning sessions but noticed that I could maintain focus for longer periods. Consequently, I extended my sessions to 45 minutes. I recommend starting with 25 minutes and adjusting as needed based on your concentration levels.</p><p>I complete three sessions before taking a long break. Typically, I conclude my study or work after these three sessions because I find that I am able to do very high-intensity work in this time frame. However, it’s important to note that this approach varies from person to person. The key focus should be on completing the work, rather than the number of hours spent behind the screen.</p><h4>Things to remember:</h4><p>✅<strong>Work/ Study in places with minimal distractions.</strong> You can only make the best use of this technique when you are not interrupted or bombarded with external cues.</p><p>✅<strong>Keep your phone away during the sessions.</strong> The sessions are very short and require a high level of focus to be effective. Breaking concentration and leaving attention residues go against the principles of the Pomodoro technique. (<a href="https://medium.com/@farhanfaiyaz17/deep-work-book-summary-notes-highlights-c4a3b498278">read my previous article on Deep Work to know more</a>)</p><p>✅<strong>Be prepared before the sessions.</strong> Have light snacks and water or juice readily available near your workspace before you start. This will prevent you from losing focus due to unforeseen cues.</p><p>✅<strong>Be flexible.</strong> The Pomodoro technique is just a guideline. You don’t have to follow it to the dot. If you feel like you need an extra 10–15 minutes to finish your current topic of interest in the same session, just go for it!</p><p>✅<strong>Use a Pomodoro timer.</strong> I personally love <a href="https://pomofocus.io/">Pomofocus</a> and have been using it for the past couple of years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZrEX8_Z2QQebUF9wOte-OA.gif" /></figure><h3>🌻 If you loved this article and want to connect, send me an <a href="https://www.linkedin.com/in/farhanfaiyaz/">invite</a>!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b23b67a34361" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Framework for Getting Top Grades at School ]]></title>
            <link>https://farhanfaiyaz17.medium.com/my-framework-for-getting-top-grades-at-school-99e46cba6d3b?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/99e46cba6d3b</guid>
            <category><![CDATA[self-development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[study]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Wed, 27 Sep 2023 05:15:35 GMT</pubDate>
            <atom:updated>2023-09-27T05:15:35.913Z</atom:updated>
            <content:encoded><![CDATA[<p>🎓 In this article, I will explore how my approach to studying has evolved from high school to undergraduate and now into my postgraduate studies, enabling me to consistently achieve top scores throughout my academic journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_zHftAwoPS1XTPOu08Y5Q.png" /><figcaption>Image by <a href="https://www.linkedin.com/in/farhanfaiyaz/">Author</a></figcaption></figure><h3>🦖 The Past</h3><p>🚀 I attended an English-medium school in Bangladesh that followed the <a href="https://www.cambridgeinternational.org/">Cambridge International Education (CIE)</a> curriculum. I went on to score one of the best results during my A-Levels (equivalent to HSC) by securing 4/4 A* (Individual Scores ≥ 90%) which you know is very difficult to attain if you are pursuing the same certificate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gaHGybHHbCoOOIXK9rhIJw.png" /><figcaption>A2 Results</figcaption></figure><p>Here’s what I did right and wrong during that time:</p><h4>✅ The Rights:</h4><ul><li><strong>Being consistent with my routine.</strong> I had already developed a strong sense of routine from an early age thanks to my strict mom, and even though I used to despise this during that time, I am so grateful for it today.</li><li><strong>Learning key concepts properly.</strong> I wasn’t extraordinary like some of my friends, who could grasp a concept from the get-go. I emphasised spending a great deal of my time learning the fundamentals rather than looking for shortcuts.</li><li><strong>Being organised</strong>: I had a designated corner in my room where I organized materials for different subjects on labeled shelves to save time searching for resources. I also maintained a physical journal to track my progress in each subject.</li></ul><h4>❌ The Wrongs:</h4><ul><li><strong>Re-reading.</strong> This is one of the most popular techniques people use, as it gives us the impression that we are engaged in productive work. It’s a passive form of learning, which is very inefficient. Unfortunately, this was my go-to method of studying, which consumed a significant portion of my time.</li><li><strong>Summarising/ making notes. </strong>This is another popular study method that can be useful if done correctly. However, I didn’t know the right approach, and it took me half a decade to realise how inefficient it was. I used to simply transcribe important content from the book rather than follow the correct method. <a href="https://aliabdaal.com/the-5-rs-of-note-taking/">Ali Abdaal’s</a> 5 Rs of note-taking show how it should be done:</li></ul><ol><li><strong>Record</strong> — there should be somewhere to take our notes (obviously).</li><li><strong>Reduce</strong> — there should be somewhere to summarise those notes.</li><li><strong>Recite</strong> — there needs to be an easy way to test ourselves using our notes.</li><li><strong>Reflect</strong> — our notes should be related to other notes we’ve already written.</li><li><strong>Review</strong> — we should regularly revisit our notes to ensure maximum retention.</li></ol><p>Both of these methods helped me achieve good grades. However, if I had used the techniques I employ now, I could have attained the same scores with far less effort, allowing me to allocate more time to my hobbies.</p><ul><li><a href="https://medium.com/@farhanfaiyaz17/deep-work-book-summary-notes-highlights-c4a3b498278"><strong>Shallow Work</strong></a><strong>:</strong> Despite spending hours studying regularly, I often indulged in instant messaging between sessions. As discussed in my previous article on <a href="https://medium.com/@farhanfaiyaz17/deep-work-book-summary-notes-highlights-c4a3b498278">deep work</a>, succumbing to these distractions leaves attention residue, significantly slowing down progress by reducing attention span and cognitive performance.</li></ul><h3>🤖 The Present</h3><p>🛸 I’m currently doing my postgrad in business analytics and recently got the results for my first semester. Here’s what the grade sheet looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qb9_aEDcVnOO2hYVv0E4lA.png" /><figcaption>Postgrad sem1 results. High distinction is above 85%, and GPA is calculated on a scale of 7.</figcaption></figure><p>Today, I spend less than half the time I used to on studying and still achieve the same grades. I also worked 40 hours a week (during the first semester) and had time for the things I loved.</p><h4>🖼️ My current framework</h4><ol><li><strong>Short high-intensity sessions + Pomodoro: </strong>Instead of long, low-intensity study sessions, I use three 40-minute stretches with 5-minute intervals, employing a Pomodoro timer for high-intensity focus. I have a pre-planned study routine for what and when I will study a particular topic, which reduces the demand for my limited willpower and minimises spontaneity. I have adopted the Rhythmic Philosophy of Deep Work to do my daily tasks.</li><li><strong>The Feyman Technique: </strong>This has been a game-changer for me. I apply this technique not only in my studies but also when learning skills like programming or design. The Feynman technique involves simplifying a topic to explain it in layman&#39;s terms to someone else. When I learn a new concept, I imagine explaining it to my 10-year-old nephew. This forces me to break down complex ideas into easily understandable ones.</li><li><strong>Notion:</strong> Since 2022, I’ve relied on Notion for everything, from managing assignments and tracking books I’ve read to scheduling articles and managing finances. Here’s a link to my <a href="https://resilient-walleye-592.notion.site/My-Study-Dashboard-5def59f784ba4fc29b6c10c335c50f72?pvs=4">Notion template</a> <strong>(used by 100+ students)</strong> for study tracking, where you can also check my current semester progress as well! Feel free to customize the template to suit your needs. I got the inspiration for the template from <a href="https://www.youtube.com/@CajunKoiAcademy">Cajun Koi Academy.</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8vlJPRUz9RI78byCu7PPaA.png" /></figure><h3>🏁Final Note</h3><p>I’ve transitioned from traditional study methods to scientifically proven techniques over the course of a decade. The aim is to learn efficiently and swiftly, rather than merely convincing yourself that you’re dedicating time to studying.</p><p>Time is important, but there are ways to consistently achieve excellent grades with less effort. Ultimately, if you can’t find time for the things that bring you happiness, what’s the purpose of it all?</p><h3>🌻 If you loved this article and want to connect, send me an <a href="https://www.linkedin.com/in/farhanfaiyaz/">invite</a>!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99e46cba6d3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ultimate Python Data Visualization Brawl ]]></title>
            <link>https://python.plainenglish.io/ultimate-python-data-visualization-brawl-507c7c552dc8?source=rss-2947e20419db------2</link>
            <guid isPermaLink="false">https://medium.com/p/507c7c552dc8</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Farhan Faiyaz]]></dc:creator>
            <pubDate>Mon, 25 Sep 2023 12:17:10 GMT</pubDate>
            <atom:updated>2023-09-25T12:17:10.515Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Pa-yees9hvEmPyZ8.png" /><figcaption>Image by Author</figcaption></figure><p>👑 Imagine the world of data visualization as a friendly game of chess. On one side sits the seasoned champion, Matplotlib, with years of experience and a loyal following. On the other side, the enthusiastic newcomer, Plotly, bringing fresh ideas and modern flair.</p><p>Join us as we watch this friendly face-off between the old guard and the rookie, exploring their unique strengths and styles. Whether you’re a data aficionado or a curious explorer, this match will help you pick the perfect partner for your data storytelling adventures.</p><p>Read till the end for some beautiful interactive charts and cheat sheets!</p><h3>📊What is Matplotlib?</h3><p>Matplotlib is often considered the foundational library for data visualization in Python and has been a stalwart companion of data scientists, analysts and researchers since 2003. The charts produced are simple yet powerful, static and publication-quality.</p><h3>✨Key Features and Pros of Matplotlib:</h3><ol><li><strong>Wide Range of Plot Types</strong>: Supports an extensive range of plot types, ensuring that you can depict your data in the most suitable format.</li><li><strong>Customization</strong>: Offers granular control over every aspect of the visualizations.</li><li><strong>Publication quality</strong>: One of the standout features of Matplotlib is its ability to generate publication-quality images that meet the standards of scientific publications and presentations.</li><li><strong>Integration with other libraries</strong>: Matplotlib can be easily integrated with other Python libraries such as NumPy, Pandas and SciPy, allowing seamless data manipulation and analysis before plotting.</li></ol><h3>🚩Drawbacks:</h3><ol><li><strong>Steep learning curve:</strong> The style of coding is influenced by MATLAB which can be challenging for newcomers who are not familiar with MATLAB’s style of code.</li><li><strong>Less visually appealing graphs compared to Plotly:</strong> Charts are not interactive and are not very usable for web apps.</li><li><strong>Verbose code:</strong> Matplotlib requires multiple lines of code for slight customizations. This might make visualizations more complex than they should be.</li><li><strong>Limited Support for Dashboards</strong>. Creating interactive dashboards or web apps using Matplotlib might not be a good choice.</li></ol><h3>📊What is Plotly?</h3><p>Plotly, a relative newcomer to the world of data visualization in Python has been making waves since its inception. Born out of the need for dynamic and interactive data visualizations in 2013, Plotly brings a breath of fresh air to the Python ecosystem. The charts it produces are not just informative; they’re engaging, interactive, and web-ready.</p><p>While Matplotlib has long been the foundation for static visualizations, Plotly steps onto the stage with a focus on interactivity and modern web-based charts, offering a vibrant alternative to traditional data plotting tools.</p><h3>✨Key Features and Pros of Plotly:</h3><ol><li><strong>Interactivity:</strong> Plotly excels in creating interactive visualizations, enabling user interactions like hovering, clicking, zooming, and panning.</li><li><strong>Web Integration: </strong>Plotly is designed for seamless integration into web applications, blogs, and dashboards, making it ideal for online data sharing.</li><li><strong>Versatile Charts:</strong> Plotly supports a wide range of chart types, from scatter plots to 3D plots, allowing for diverse and engaging visualizations.</li><li><strong>Easy Customization:</strong> Plotly offers extensive customization options for colours, fonts, markers, and labels, making it suitable for users of all skill levels.</li><li><strong>Documentation:</strong> Plotly’s documentation is years ahead of Matplotlib. It’s easy to find information about the kind of plot that you are trying to create. Meanwhile, Matplotlib’s website is confusing. If you are a beginner, it will probably take a while to find what you are looking for.</li></ol><h3>🚩Drawbacks:</h3><ol><li><strong>Web Dependencies:</strong> While Plotly is excellent for web-based projects, it may not be the most suitable choice for creating static, publication-quality images without additional steps or libraries.</li><li><strong>Performance with Large Datasets:</strong> Plotly may experience performance issues with extremely large datasets or complex visualizations, potentially leading to slower rendering times.</li><li><strong>Dependency on Plotly Cloud</strong>: While Plotly provides an open-source library for local usage, some advanced features and functionalities are available only through Plotly’s online cloud service. Users who prefer to work offline or in secure environments may face limitations when utilizing certain Plotly features that are tightly coupled with the cloud platform.</li></ol><h3>🎨 Visualization Comparison</h3><p>I know you’re not here to just read about these libraries but to see real-life comparisons. And that’s what we will be doing now. To do so, I will use the <a href="https://www.kaggle.com/datasets/alitaqi000/world-university-rankings-2023"><strong>World University Rankings 2023</strong></a><strong> </strong>from Kaggle.</p><pre>#importing libraries<br>import pandas as pd<br>import matplotlib.pyplot as plt<br>import plotly.express as px<br>import numpy as np<br>#Setting the dataset to the variable data<br>data = pd.read_csv(&quot;Rankings2023.csv&quot;)<br>#see first few rows of the dataframe<br>data.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*1JXYbMlsPfduNh00.png" /></figure><p>Image by author</p><p>I preprocessed the data by removing duplicates, changing data types, etc. I’ll skip over this step since the essence of this article is to compare the charts, not discuss data-preprocessing.</p><h3>Bar Chart</h3><p>Let’s start off with a bar chart. Bar charts are the most popular form of chart and are relatively easy to make. Let’s look into the top 5 universities by rank and the total number of students each institution has.</p><p><strong>Plotly:</strong></p><pre>top_5_universities = data.head(5)<br>fig = px.bar(top_5_universities, x=&#39;Name of University&#39;,y=&#39;No of student&#39;, color=&#39;Location&#39;)<br>fig.show()</pre><p>Plotly Express generated an elegant visualization with minimal code. To create the graph, you only need the data frame, x-axis, and y-axis. I also added a command to segment universities by location. Hovering over the bars displays the exact population values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/0*nCjoUvtJ7-imyRa6.gif" /><figcaption>Bar Chart using Plotly</figcaption></figure><p><strong>Matplotlib:</strong></p><pre>top_5_universities = data.head(5)<br>plt.bar(x=top_5_universities[&#39;Name of University&#39;], height=top_5_universities[&#39;No of student&#39;])<br>plt.show()</pre><p>Well… the result is kind of disappointing. I attempted to use the same amount of code as I did with Plotly, but the outcome is unsatisfactory. The labels are overlapping, making it challenging to interpret the graph. To improve its presentation, additional lines of code are needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/0*Y34B_Cug9ZU-Mnry.png" /><figcaption>Bar Chart using Matplotlib</figcaption></figure><h3>Histogram</h3><p>A histogram visually displays the distribution of data by counting data points within predefined intervals or bins. It helps identify patterns, central tendencies, and outliers, and in this case, we’ll use it to explore student-to-staff ratios in the top 30 universities based on their locations.</p><p><strong>Plotly:</strong></p><p>Plotly delivers once again. With minimal code, we create an interactive histogram that simplifies data interpretation. It’s evident that the USA has the most top-ranked universities in the top 30, and some of these also exhibit the lowest student-to-staff ratios.</p><pre>top_30_universities = data.head(30)<br>px.histogram(top_30_universities, x=&#39;No of student per staff&#39;,color=&#39;Location&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/0*78WCJdPQYt4dRkr2.gif" /><figcaption>Histogram using Plotly</figcaption></figure><p><strong>Matplotlib:</strong></p><p>Matplotlib produced a satisfactory result, but we had to rely on another library, Seaborn, to achieve it. Additionally, it required writing multiple lines of code for a similar outcome. While lacking interactivity, it still provides a decent visualization. The bin size is different in this case.</p><pre>import seaborn as sns<br>plt.figure(figsize=(14,6))<br>sns.histplot(data=top_30_universities, x=&#39;No of student per staff&#39;, hue=&#39;Location&#39;)<br>plt.xticks(fontsize=14)<br>plt.yticks(fontsize=14)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*xERlPzMZ_bctpehg.png" /><figcaption>Histogram using Matplotlib</figcaption></figure><h3>Scatterplot</h3><p>Scatterplots are used to visualize and assess the potential relationships or correlations between two variables in a dataset. For this chart, let’s find the relationship between University rank and the research score (on a scale of 1–100).</p><p><strong>Plotly:</strong></p><p>Transitioning from one chart to another is fairly simple, and the code is very consistent across all charts. Moreover, the axis labels are automatically adjusted. The documentation is very clear on the website. The interactive charts are a game changer when looking at the visualizations. It’s clearly understandable that there’s an inverse relationship between research score and university rank.</p><pre>px.scatter(data, x=&#39;University Rank&#39;, y=&#39;Research Score&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/0*aHeDc4iGzRsh0Byy.gif" /><figcaption>Scatter Plot using Plotly</figcaption></figure><p><strong>Matplotlib:</strong></p><p>Matplotlib lacks automatic interval adjustment, resulting in a cluttered x-axis. While the code is reusable and adjustable, addressing the clutter requires additional lines of code, which can be challenging for beginners. For datasets with a narrower value range on the axes, Matplotlib may offer a cleaner visualization option.</p><pre>plt.figure(figsize=(14,6))<br>sns.scatterplot(data=data, x=&#39;University Rank&#39;, y=&#39;Research Score&#39;)<br>plt.xticks(fontsize=10)<br>plt.yticks(fontsize=10)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*VTw7bUKArPrp8c4-.png" /><figcaption>Scatter Plot using Matplotlib</figcaption></figure><h3>💹Beautiful Plotly Chart Samples:</h3><p><strong>Hover over the charts and see the magic!</strong></p><p>🚦(Use your laptop/ PC for the best experience)</p><h3>Gender Ratio and Age on Dating Sites:</h3><p>This one confirms your suspicions. At the age of 23 (the peak age for online dating), there are 2.5 men for every 1 woman on dating sites.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplotly.com%2F%7EFarhanFaiyaz%2F1.embed%3Fautosize%3Dtrue&amp;display_name=Plotly&amp;url=https%3A%2F%2Fchart-studio.plotly.com%2F%7EFarhanFaiyaz%2F1%2F&amp;image=https%3A%2F%2Fchart-studio.plotly.com%2Fstatic%2Fwebapp%2Fimages%2Fplotly-logo.8d56a320dbb8.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=plotly" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1792d3acc772f144c88b98e93714503/href">https://medium.com/media/f1792d3acc772f144c88b98e93714503/href</a></iframe><h3>Men’s Facial Hair Trends</h3><p>The data for this graph is extracted from a study on grooming trends, where the author suggests that shifts in preferences for facial hair styles are indicative of broader patterns and trends in social behaviour.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplotly.com%2F%7EFarhanFaiyaz%2F3.embed%3Fautosize%3Dtrue&amp;display_name=Plotly&amp;url=https%3A%2F%2Fchart-studio.plotly.com%2F%7EFarhanFaiyaz%2F3%2F&amp;image=https%3A%2F%2Fchart-studio.plotly.com%2Fstatic%2Fwebapp%2Fimages%2Fplotly-logo.8d56a320dbb8.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=plotly" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/9dfdc6edecf9a73b9bb34bb5daf332ad/href">https://medium.com/media/9dfdc6edecf9a73b9bb34bb5daf332ad/href</a></iframe><h3>Age of Nobel Prize Winners by Field</h3><p>The box plot shows the age when Nobel Laureates received their prize. Malala Yousafzai is an outlier which can be seen on the chart.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplotly.com%2F%7EFarhanFaiyaz%2F5.embed%3Fautosize%3Dtrue&amp;display_name=Plotly&amp;url=https%3A%2F%2Fchart-studio.plotly.com%2F%7EFarhanFaiyaz%2F5%2F&amp;image=https%3A%2F%2Fchart-studio.plotly.com%2Fstatic%2Fwebapp%2Fimages%2Fplotly-logo.8d56a320dbb8.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=plotly" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/894f597a0b64513386a3f067011455a3/href">https://medium.com/media/894f597a0b64513386a3f067011455a3/href</a></iframe><h3>🥇Final Verdict</h3><p>In conclusion, if I had to make a choice, I would lean towards Plotly Express. Its ability to create stunning visualizations with minimal code, additional functionalities, and interactivity makes it a compelling option. However, the right choice ultimately depends on your experience level and specific project requirements. So, whether it’s Matplotlib or Plotly Express, remember that the best library for you is the one that best aligns with your skills and the goals of your data visualization project.</p><h3>💰Bonus Content</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Lc-zp2ssSPmTIPen.png" /><figcaption><a href="https://images.datacamp.com/image/upload/v1668605954/Marketing/Blog/Plotly_Cheat_Sheet.pdf">Plotly Express Cheat Sheet</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*W7sgO8uyi6gr13Jr.png" /><figcaption><a href="https://images.datacamp.com/image/upload/v1676360378/Marketing/Blog/Matplotlib_Cheat_Sheet.pdf">Matplotlib Cheat Sheet</a></figcaption></figure><h3>🌻 If you loved this article and want to connect, send me an <a href="https://www.linkedin.com/in/farhanfaiyaz/">invite</a> on LinkedIn!</h3><h3>In Plain English</h3><p><em>Thank you for being a part of our community! Before you go:</em></p><ul><li><em>Be sure to </em><strong><em>clap</em></strong><em> and </em><strong><em>follow</em></strong><em> the writer! 👏</em></li><li><em>You can find even more content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><strong><em> 🚀</em></strong></li><li><em>Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. 🗞️</em></li><li><em>Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a><strong><em>(X</em></strong>), <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a>, <a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a>, and <a href="https://discord.gg/XxRS92b2"><strong><em>Discord</em></strong></a><strong><em>.</em></strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=507c7c552dc8" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/ultimate-python-data-visualization-brawl-507c7c552dc8">Ultimate Python Data Visualization Brawl 🥊</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>