<?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 Tooba Ahmed Alvi on Medium]]></title>
        <description><![CDATA[Stories by Tooba Ahmed Alvi on Medium]]></description>
        <link>https://medium.com/@alvi15tooba?source=rss-ec7cb3ff7dbd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZWIPyHGTyKRI7ZPfQ3lN7A.png</url>
            <title>Stories by Tooba Ahmed Alvi on Medium</title>
            <link>https://medium.com/@alvi15tooba?source=rss-ec7cb3ff7dbd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:06:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alvi15tooba/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[BOOK REVIEW: The Night She Drowned (Velvet Vista Case -Part I)]]></title>
            <link>https://alvi15tooba.medium.com/book-review-the-night-she-drowned-velvet-vista-case-part-i-5717110a7d07?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/5717110a7d07</guid>
            <category><![CDATA[mystery]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[crime]]></category>
            <category><![CDATA[thriller]]></category>
            <category><![CDATA[murder]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 11:08:13 GMT</pubDate>
            <atom:updated>2026-10-27T07:58:04.111Z</atom:updated>
            <content:encoded><![CDATA[<h3>BOOK REVIEW: The Night She Drowned (Velvet Vista Case -Part 1)</h3><p>The Velvet Vista Hotel was already infamous for its paranormal stories, haunted poolside, and guests who paid almost nothing to keep their secrets hidden. But all of a sudden, one night changed everything; the hotel witnessed the brutal murder of a young and admirable artistic soul — <strong><em>Nimra Hassan.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*DCcxkws-xIEPFy3Imbs_2A.png" /><figcaption>The series part 1 comprises of 23 chapters and 181 pages — Fiction/Thriller/Mystery/Betrayal genre</figcaption></figure><p>The 26 year-old female lived a lonely childhood but still consciously chose to look at the world with a lighthearted, positive attitude as a way to heal and move forward, and a way to love life by volunteering her paintings in social work.<br>The novel begins with the discovery of Nimra’s body floating in the hotel’s pool at midnight on <em>June 1st, 2025</em>, surrounded by dark water, with lungs heavy, confirming drowning as the cause of death. While the authorities are treating everyone in the building as a suspect, the defense team is already working frantically behind the scenes.</p><p>But back in the suspicious hotel lobby, the immediate mystery begins.<br>When lead investigation officer Albert arrived, Nimra’s room was locked from inside quiet. Albert began cross-questioning in the hotel lobby with all <strong>possible suspects: a couple , a group of 4 friends, a business man , and the hotel staff </strong>who were present on the murder night.</p><p>Unlocking the victim’s room reveal a empty syringe on the bedside table , a single room key, and a torn page from a sketching. Her ID card and phone were missing, and there were no security cameras fitted in the corridors.</p><p>Digital logs in the late chapters revealed how her final hours were a flurry of panic: heavy incoming calls from the corporate giant, Hashwani Group numbers, and rushed texts from Aliyan — <em>“Nimra please, I can explain..</em>” The history between Aliyan and Nimra runs deep, tracing back to a children’s charity fundraiser in Islamabad where a boy mysteriously went missing. Aliyan, an ex-employee of the Hashwani Group, had witnessed the company’s deep-rooted corruption and reached out to Nimra to help him expose his former boss, the powerful tycoon <strong>Shahid Hashwani.</strong></p><p>On that fatal murder night, a tensed Nimra was pushed to her absolute limit, fearing Aliyan was simply using her. As Aliyan desperately tried to stop her and tell her the truth, the doors suddenly burst open. Another shadow entered the room, yelling furiously about a missing USB drive. A violent fight broke out, and the room descended into chaos.</p><p><strong>Who was the shadow that entered the room, and what really happened before Nimra fell on the floor?</strong></p><p>To be continued…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tOIHAJ0bCzSMoJygYX3g5A.png" /><figcaption>Grab your hard or online copy before it’s too late</figcaption></figure><p>For international readers:</p><ol><li>Amazon Kindle Link : https://a.co/d/0aJ2pCQS</li></ol><p>For local readers:</p><ol><li>Dastaan Publishers : <a href="https://daastan.com/book/2212">https://daastan.com/book/2212</a></li><li>IBA Library: <a href="https://bit.ly/4soTMLN">https://bit.ly/4soTMLN</a></li><li>Liberty Books Pakistan</li></ol><p>I won’t spoil the twist here. If you want to uncover the true culprit, the missing clues, and the dark secrets hidden within the Velvet Vista Hotel, grab your copy of the complete book today!</p><p><strong>My Personal Reflection: When Wealth Rules the Land</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w6WG3E-m5hpP6KtiEZjvnw.jpeg" /><figcaption>My favorite lunch-time partner at work</figcaption></figure><p>This murder series has been penned down by my elder sister ,Sana Ahmed Alvi, calling mystery readers to navigate the crime with clues provided in the first part. Reading this story brought up a bitter reality, where wealth and power seamlessly dictate the rules of the land. The powerful elite manage to remain completely untraceable in the eyes of the law. They buy their way out of shadows, building a flawless, famous public image through charity fundraisers and corporate glamour, hiding the darkness underneath.</p><blockquote><em>Sometimes, our eyes only see what we are made to see, making beautifully crafted </em><strong><em>lies</em></strong><em> look like an absolute </em><strong><em>truth</em></strong><em>.</em></blockquote><p><strong>Will the true culprit ever face justice, or will the powerful prevail?</strong></p><p>Find out in the next part. Until then, stay connected! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5717110a7d07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Medium Day 2026 — Research Writing: Rocket Science or a Piece of Cake]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://alvi15tooba.medium.com/medium-day-2026-research-writing-rocket-science-or-a-piece-of-cake-5ed1a5d0d43b?source=rss-ec7cb3ff7dbd------2"><img src="https://cdn-images-1.medium.com/max/1600/1*pK5KgKsIkL74U7TdfdXH_g.jpeg" width="1600"></a></p><p class="medium-feed-snippet">The greatest thing I love about technology is that it connects people beyond borders, cultural differences, and regions.</p><p class="medium-feed-link"><a href="https://alvi15tooba.medium.com/medium-day-2026-research-writing-rocket-science-or-a-piece-of-cake-5ed1a5d0d43b?source=rss-ec7cb3ff7dbd------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://alvi15tooba.medium.com/medium-day-2026-research-writing-rocket-science-or-a-piece-of-cake-5ed1a5d0d43b?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ed1a5d0d43b</guid>
            <category><![CDATA[writing-research]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[academic-writing]]></category>
            <category><![CDATA[perspective]]></category>
            <category><![CDATA[medium-day-2026]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Sat, 19 Sep 2026 18:33:00 GMT</pubDate>
            <atom:updated>2026-09-19T18:33:00.949Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[From Numbers to Stories: Tips to make smart visuals in Microsoft Power BI]]></title>
            <link>https://medium.com/microsoft-power-bi/from-numbers-to-stories-tips-to-make-smart-visuals-in-microsoft-power-bi-16e4161b45b9?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/16e4161b45b9</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[power-bi-guide]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 18:17:37 GMT</pubDate>
            <atom:updated>2025-09-26T06:41:12.453Z</atom:updated>
            <content:encoded><![CDATA[<p>Few weeks back, when I was preparing for Microsoft PL-300 exam, my eyes got on to a very interesting Power BI design reports module on Microsoft Learn platform. Although, this particular module did not contain as much importance from exam point of view , but it taught me some really useful practices which I shared recently on my <a href="https://medium.com/@alvi15tooba/medium-day-2025-from-numbers-to-stories-just-start-writing-7559cad17802"><strong>Medium Day 2025 session.</strong></a></p><p>The design of any Power BI report/dashboard depends upon 2 things:</p><ol><li>Report Structure</li><li>Report Objects i.e. Visuals &amp; Slicers</li></ol><figure><img alt="A Power BI report showing some common issues with formatting, button layout, and inconsistencies such as overlapping text/labels, data type inconsistencies, and slicers theme." src="https://cdn-images-1.medium.com/max/1024/1*v0GuAnpmzcHG7DtBOsc8JA.png" /><figcaption>A Power BI report showing some common issues with formatting, button layout, and inconsistencies such as overlapping text/labels, data type inconsistencies, and slicers theme.</figcaption></figure><p><strong>🎁 </strong><a href="https://powerbi-masterclass.short.gy/learning-database?utm_source=medium&amp;utm_medium=medium-post&amp;utm_campaign=database-medium-post-start"><strong>Get friend links for all of our 1000&gt; Power BI learning articles here</strong></a><strong> 🎁</strong></p><p>In order to design effective Power BI reports with visually appealing layout and easy-to-understand analytics, there are 2 basic design principles to keep in mind.</p><ol><li>REPORT DESIGN PRINCIPLE</li><li>VISUAL DESIGN PRINCIPLE</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iRYeh9uv9uOJ2sity-Z4vQ.png" /><figcaption>A Power BI report shows 2 type of design principles i.e. Within Visual and Within Report</figcaption></figure><p>To remember the design principles more easily, I created a shortcut phrase or mnemonic for the users.</p><h3><strong><em>1. “PLACE PROPERPLY ,CREATE BALANCED REPITITION”</em></strong></h3><p>This principle focuses on the overall report layout.<br>👉𝗙𝗮𝗰𝘁𝗼𝗿𝘀: Placement &gt; Proximity &gt; Contrast &gt; Balance &gt; Repetition</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tqeDOU2TkExSHjSonhIblg.png" /></figure><ol><li><strong>PLACEMENT: </strong>This factor suggests us to place the most important information or metric in the <strong>upper-left</strong> or <strong>upper-right corner </strong>of the canvas. You may take the help of the <strong>Rule of Thirds</strong>: Divide page into a <strong><em>3x3 grid</em></strong> to guide object placement.</li><li><strong>PROXIMITY: </strong>This factor tells us to place the related visuals <strong>close together.</strong> Use spaces to separate different groups clearly.</li><li><strong>CONTRAST:</strong> Use <strong>contrasting</strong> colors, fonts, or lines to highlight key visuals as it gather direct user attention to important data or interaction points with in a report.</li><li><strong>REPETITION: </strong>Repeat styles and design elements for consistency in order to build <strong>an association between related visuals</strong> and strengthens layout.</li><li><strong>BALANCE: </strong>Distribute visual weight <strong>evenly (symmetrical)</strong> or use contrast. Use<strong> </strong><a href="https://www.figma.com/resource-library/golden-ratio/"><strong>golden ratio (*)</strong></a><strong> </strong>to combine larger and smaller visuals harmoniously giving the larger place to the most prominent/important piece of information followed by less important smaller visuals.</li></ol><h3>2. “SMART MARGINS ALIGN COLORS CONSISTENTLY”</h3><p>This principle <strong>zooms into the visual</strong> details of a dashboard.<br>👉𝗙𝗮𝗰𝘁𝗼𝗿𝘀: Space &gt; Margins &gt; Alignment &gt; Color &gt; Consistency</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-XUXCPDH79HuMODqroq7eg.png" /></figure><ol><li><strong>SPACE:</strong> Keep <strong>consistent page margins,</strong> maintain even spacing between visuals; avoid overlaps, especially headers</li><li><strong>MARGIN: </strong>Make<strong> key visuals larger</strong>; keep similar visuals<strong> uniform </strong>in size. It is also suggested to avoid overcrowding pages with too many visuals to prevent slow rendering.</li><li><strong>ALIGNMENT:</strong> <strong>Align edges </strong>and <strong>keep gaps consistent</strong> throughout Use spacing or colored blocks to create clear sections.</li><li><strong>COLOR: </strong>Use a limited, preferably<strong> brand-based</strong> color palette. (<em>apply gradient scaling i.e. high to low changing color intensity</em>). Reserve bold colors for highlights or exceptions.</li><li><strong>CONSISTENCY: Standardize </strong>fonts, sizes, weights, labels, and visual settings. Apply and reuse a report theme; minimize manual overrides.</li></ol><p>After applying these principles, we have obtained a pretty cleaner look of the same dashboard , can you spot the differences? Well I leave this to you as a pulse check!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4a5A_RD4E3CevcBSQp3ygw.png" /><figcaption>A Power BI report after applying the design principles on the overall report and visuals</figcaption></figure><p>Hence, in order to obtain a more professional look of your Power BI dashboard/report, these are some tips to keep you on track. To explore more, you can always check out the complete link to module here :<a href="https://learn.microsoft.com/en-us/training/modules/power-bi-effective-reports/">Design Power BI Reports — Training | Microsoft Learn</a></p><p>Next , we also discussed some of the key smart visuals in Power BI to fast track your analysis in the most easiest way for your understanding as well as for your clients. These are as under:</p><h3><strong>1. KEY INFLUENCERS VISUAL:</strong></h3><p>This visual serves as your AI support tool in Power BI. It<strong> </strong>identifies and ranks key factors driving a selected metric, providing actionable insights with AI support. You can highlight trends , play around different dimensions as well as identify clusters within a specific category.</p><h3>2. RADAR CHART :</h3><p>It serves as a performance tracker. It compares multiple variables across categories in a circular layout, ideal for spotting strengths &amp; weaknesses.</p><h3>3. CONDITIONAL FORMATTING:</h3><p>It is not a visual specifically rather serves as your highlighter pen on the canvas for tables and matrices. It dynamically highlights data based on rules or thresholds to improve report readability &amp; focus attention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*889KvK02ye-FcU-SpObw_Q.png" /><figcaption>A Power BI report shows the Key influencers visual on the right side of canvas followed by a conditionally Formatted Table on the left and a radar chart on left top corner (*)</figcaption></figure><p>From the above figure, we can easily understand the ship modes which have the highest sales and quantity i.e.<strong><em> Truck and Air. We can also understand /visualize the key factors that made the freight cost(USD) variable increased or decreased. The table on the bottom shows the years with the highest sales and increased insurance rate with the help of conditional formatting.</em></strong></p><p>To every data geek reading this blog or doing dashboarding, I would always encourage the <strong><em>“Simplicity and Clarity ”</em></strong> mindset whenever you are working on dashboards or reports because it improves communication between you and your analysis. Always <strong>Prioritize clarity over decoration. </strong>Try to<strong> keep pages easy to scan; </strong>include visuals <strong>only if they add value </strong>to your objective<strong>. Finally , Iteratively test interactive elements (e.g., slicers/filters) f</strong>or easy and comfortable interaction between your visuals<strong>.</strong></p><p>Until then, stay connected! :)</p><p>👏🏻 Clap 🔎 <a href="https://alvi15tooba.medium.com/">Follow</a> 📩 <a href="https://alvi15tooba.medium.com/subscribe">Subscribe</a> ✍🏻Comment</p><p><strong>🎁 </strong><a href="https://powerbi-masterclass.short.gy/learning-database?utm_source=medium&amp;utm_medium=medium-post&amp;utm_campaign=database-medium-post-start"><strong>Get friend links for all of our 1000&gt; Power BI learning articles here</strong></a><strong> 🎁</strong></p><blockquote>Don’t forget to subscribe to</blockquote><blockquote>👉 <a href="https://powerbi-masterclass.short.gy/publication?utm_source=medium&amp;utm_medium=medium-post&amp;utm_campaign=publication-medium-post-end">Power BI Publication</a></blockquote><blockquote>👉 <a href="https://powerbi-masterclass.short.gy/newsletter-medium?utm_source=medium&amp;utm_medium=medium-post&amp;utm_campaign=newsletter-medium-medium-post-end">Power BI Newsletter</a></blockquote><blockquote>and join our Power BI community:</blockquote><p><a href="https://powerbi-masterclass.short.gy/linktree?utm_source=medium&amp;utm_medium=medium-post&amp;utm_campaign=linktree-medium-post-end">Microsoft Power BI Masterclass | Linktree</a></p><p><strong>Power BI Masterclass Article Classification</strong></p><p><strong>Level:</strong> Beginner</p><p><strong>Category:</strong> Data Visualization</p><p><strong>Tags:</strong> Guide, Data Visualization</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16e4161b45b9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/microsoft-power-bi/from-numbers-to-stories-tips-to-make-smart-visuals-in-microsoft-power-bi-16e4161b45b9">From Numbers to Stories: Tips to make smart visuals in Microsoft Power BI</a> was originally published in <a href="https://medium.com/microsoft-power-bi">Power BI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Medium Day 2025 : From Numbers to Stories — Just Start Writing!]]></title>
            <link>https://alvi15tooba.medium.com/medium-day-2025-from-numbers-to-stories-just-start-writing-7559cad17802?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/7559cad17802</guid>
            <category><![CDATA[medium-day]]></category>
            <category><![CDATA[medium-day-2025]]></category>
            <category><![CDATA[zoom-meetings]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 17:44:54 GMT</pubDate>
            <atom:updated>2025-09-10T20:43:15.611Z</atom:updated>
            <content:encoded><![CDATA[<h3>Medium Day 2025 : From Numbers to Stories — Just Start Writing!</h3><p>Would it be wrong to say that Numbers play a crucial role in our everyday life? Well the Answer is <strong>No</strong> — They act as a universal communication that make our life easy, save our time, and help us to draw conclusions in solving daily problems. But what actually a number is ? A quantity or a value — simply a form of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmr8kUz7BAWi7oMbTaSv8A.jpeg" /></figure><p>Data without a goal or purpose is like garbage. We all know that data when not utilized and understood properly gives no value. As Mark Twain famously said: “<strong><em>Data is like garbage. You’d better know what you are going to do with it before you collect it”.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*W851-5jyWxk3MxgXm02d8w.png" /></figure><p>Therefore , Numbers alone rarely inspire <strong>action</strong> —but <strong>stories</strong> do. This Medium Day i.e. taking place on 19th-20th September, I will be hosting <a href="http://mediumday.com/">a <strong>30 min live interactive session on Zoom at 5 P.M Pakistan Time </strong></a><strong><em>i.e </em>8 A.M ET</strong><em>,</em> where we’ll explore how to turn data into clear, impactful narratives using Power BI. The attendees will learn practical tips and tricks for transforming raw data into visuals that communicate insights effectively. Whether you’re a writer, creator, or data enthusiast, this session will show you how storytelling principles can make your visualizations stand out. We’ll cover smart visuals, DAX tricks, and conditional formatting with a sample dashboard demo — ending with Q&amp;A part to address any queries. By the end of the session, you would be given a cheat sheet to Enhance Power BI knowledge and learn some quick hacks to make smart visualizations and analytical reports.</p><p>So are you excited for this event? Go and get yourself registered on the following link: <a href="https://medium.com/blog/save-the-date-for-medium-day-2025-50b1f15de07d">https://medium.com/blog/save-the-date-for-medium-day-2025-50b1f15de07d</a></p><p>I will keep on updating this blog with the session materials and other relevant information. So stay tuned for more updates!</p><p>Free Power BI Session Link:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7559cad17802" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Good Bye Pandas ,I got my Own Polar!]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-science-collective/good-bye-pandas-i-got-my-own-polar-e35dddb8fab3?source=rss-ec7cb3ff7dbd------2"><img src="https://cdn-images-1.medium.com/max/600/1*pm10Bk4NfPMoSHYlwae13w.png" width="600"></a></p><p class="medium-feed-snippet">&#x201C;Why I Switched to Polars for faster and more efficient data analysis in Python.</p><p class="medium-feed-link"><a href="https://medium.com/data-science-collective/good-bye-pandas-i-got-my-own-polar-e35dddb8fab3?source=rss-ec7cb3ff7dbd------2">Continue reading on Data Science Collective »</a></p></div>]]></description>
            <link>https://medium.com/data-science-collective/good-bye-pandas-i-got-my-own-polar-e35dddb8fab3?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e35dddb8fab3</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[polar]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[pandas]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 18:00:41 GMT</pubDate>
            <atom:updated>2025-09-23T23:41:03.140Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[PyG Walker — A Tableau Alternative You Should Know]]></title>
            <link>https://medium.com/data-science-collective/pyg-walker-a-tableau-alternative-you-should-know-e61b063a78fe?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e61b063a78fe</guid>
            <category><![CDATA[pygwalker]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[tableau]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Fri, 27 Dec 2024 18:54:20 GMT</pubDate>
            <atom:updated>2025-09-23T23:41:04.605Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*RiAXN_5qWXxlsR0O6xZJOA.jpeg" /></figure><p>PyG Walker is a magical visualization library of Python that can make your data analysis much easier.</p><p>I will show you the complete implementation in the next couple of lines. But lets first discuss some basic information about this library, how it came and what features it may offer.</p><p><strong>PyG Walker</strong> (<em>pronounced like “</em><strong><em>Pig Walker</em></strong><em>”, just for fun</em>) is named as an abbreviation of “<strong>Py</strong>thon binding of <strong>G</strong>raphic <strong>Walker</strong>”. It helps you to make run-time visualizations on your Jupyter Notebook, making itself a different type of open-source alternative to Tableau. It allows data scientists to analyze data and visualize patterns with simple drag-and-drop operations typically targeting small-cleaned datasets.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.loom.com%2Fembed%2Fd7695183d8b24ddaa2692450f4e2a1ab&amp;display_name=Loom&amp;url=https%3A%2F%2Fwww.loom.com%2Fshare%2Fd7695183d8b24ddaa2692450f4e2a1ab%3Fsid%3D3cfb734f-fcef-4ec3-97e8-3b804b5235aa&amp;image=https%3A%2F%2Fcdn.loom.com%2Fsessions%2Fthumbnails%2Fd7695183d8b24ddaa2692450f4e2a1ab-d51bab7b15e597b9.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=loom" width="1920" height="1440" frameborder="0" scrolling="no"><a href="https://medium.com/media/3016b91c022129112cb9d7a4529e815a/href">https://medium.com/media/3016b91c022129112cb9d7a4529e815a/href</a></iframe><pre><br>import pandas as pd<br>import pygwalker as pyg<br>import gradio as gr<br><br>url=&quot;https://raw.githubusercontent.com/ToobaAhmedAlvi/PyG_Walker_dashboard/main/WorldBank.csv&quot;<br>    <br># Define a function to create the dashboard<br><br>def display_data():<br>    global url<br>#Loading dataset<br>    df = pd.read_csv(url, index_col=0)<br>    df=pd.DataFrame(df)<br>#Initializing PyG walker object<br>    pyg.walk(df)<br>#Rendering HTML view<br>    pyg_html = pyg.to_html(df)<br>    #vis_spec=r&quot;&quot;&quot;{&quot;config&quot;:[{&quot;config&quot;:{&quot;defaultAggregated&quot;:true,&quot;geoms&quot;:[&quot;auto&quot;],&quot;coordSystem&quot;:&quot;generic&quot;,&quot;limit&quot;:-1,&quot;timezoneDisplayOffset&quot;:0},&quot;encodings&quot;:{&quot;dimensions&quot;:[{&quot;fid&quot;:&quot;Year&quot;,&quot;name&quot;:&quot;Year&quot;,&quot;basename&quot;:&quot;Year&quot;,&quot;analyticType&quot;:&quot;dimension&quot;,&quot;semanticType&quot;:&quot;ordinal&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Country Name&quot;,&quot;name&quot;:&quot;Country Name&quot;,&quot;basename&quot;:&quot;Country Name&quot;,&quot;semanticType&quot;:&quot;nominal&quot;,&quot;analyticType&quot;:&quot;dimension&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Country Code&quot;,&quot;name&quot;:&quot;Country Code&quot;,&quot;basename&quot;:&quot;Country Code&quot;,&quot;semanticType&quot;:&quot;nominal&quot;,&quot;analyticType&quot;:&quot;dimension&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Region&quot;,&quot;name&quot;:&quot;Region&quot;,&quot;basename&quot;:&quot;Region&quot;,&quot;semanticType&quot;:&quot;nominal&quot;,&quot;analyticType&quot;:&quot;dimension&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;IncomeGroup&quot;,&quot;name&quot;:&quot;IncomeGroup&quot;,&quot;basename&quot;:&quot;IncomeGroup&quot;,&quot;semanticType&quot;:&quot;nominal&quot;,&quot;analyticType&quot;:&quot;dimension&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;gw_mea_key_fid&quot;,&quot;name&quot;:&quot;Measure names&quot;,&quot;analyticType&quot;:&quot;dimension&quot;,&quot;semanticType&quot;:&quot;nominal&quot;}],&quot;measures&quot;:[{&quot;fid&quot;:&quot;Birth rate, crude (per 1,000 people)&quot;,&quot;name&quot;:&quot;Birth rate, crude (per 1,000 people)&quot;,&quot;basename&quot;:&quot;Birth rate, crude (per 1,000 people)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Death rate, crude (per 1,000 people)&quot;,&quot;name&quot;:&quot;Death rate, crude (per 1,000 people)&quot;,&quot;basename&quot;:&quot;Death rate, crude (per 1,000 people)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Electric power consumption (kWh per capita)&quot;,&quot;name&quot;:&quot;Electric power consumption (kWh per capita)&quot;,&quot;basename&quot;:&quot;Electric power consumption (kWh per capita)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;GDP (USD)&quot;,&quot;name&quot;:&quot;GDP (USD)&quot;,&quot;basename&quot;:&quot;GDP (USD)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;GDP per capita (USD)&quot;,&quot;name&quot;:&quot;GDP per capita (USD)&quot;,&quot;basename&quot;:&quot;GDP per capita (USD)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Individuals using the Internet (% of population)&quot;,&quot;name&quot;:&quot;Individuals using the Internet (% of population)&quot;,&quot;basename&quot;:&quot;Individuals using the Internet (% of population)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Infant mortality rate (per 1,000 live births)&quot;,&quot;name&quot;:&quot;Infant mortality rate (per 1,000 live births)&quot;,&quot;basename&quot;:&quot;Infant mortality rate (per 1,000 live births)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Life expectancy at birth (years)&quot;,&quot;name&quot;:&quot;Life expectancy at birth (years)&quot;,&quot;basename&quot;:&quot;Life expectancy at birth (years)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Population density (people per sq. km of land area)&quot;,&quot;name&quot;:&quot;Population density (people per sq. km of land area)&quot;,&quot;basename&quot;:&quot;Population density (people per sq. km of land area)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;Unemployment (% of total labor force) (modeled ILO estimate)&quot;,&quot;name&quot;:&quot;Unemployment (% of total labor force) (modeled ILO estimate)&quot;,&quot;basename&quot;:&quot;Unemployment (% of total labor force) (modeled ILO estimate)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0},{&quot;fid&quot;:&quot;gw_count_fid&quot;,&quot;name&quot;:&quot;Row count&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;computed&quot;:true,&quot;expression&quot;:{&quot;op&quot;:&quot;one&quot;,&quot;params&quot;:[],&quot;as&quot;:&quot;gw_count_fid&quot;}},{&quot;fid&quot;:&quot;gw_mea_val_fid&quot;,&quot;name&quot;:&quot;Measure values&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;sum&quot;}],&quot;rows&quot;:[{&quot;fid&quot;:&quot;Birth rate, crude (per 1,000 people)&quot;,&quot;name&quot;:&quot;Birth rate, crude (per 1,000 people)&quot;,&quot;basename&quot;:&quot;Birth rate, crude (per 1,000 people)&quot;,&quot;analyticType&quot;:&quot;measure&quot;,&quot;semanticType&quot;:&quot;quantitative&quot;,&quot;aggName&quot;:&quot;mean&quot;,&quot;offset&quot;:0}],&quot;columns&quot;:[{&quot;fid&quot;:&quot;Year&quot;,&quot;name&quot;:&quot;Year&quot;,&quot;basename&quot;:&quot;Year&quot;,&quot;analyticType&quot;:&quot;dimension&quot;,&quot;semanticType&quot;:&quot;ordinal&quot;,&quot;aggName&quot;:&quot;sum&quot;,&quot;offset&quot;:0}],&quot;color&quot;:[{&quot;fid&quot;:&quot;IncomeGroup&quot;,&quot;name&quot;:&quot;IncomeGroup&quot;,&quot;basename&quot;:&quot;IncomeGroup&quot;,&quot;semanticType&quot;:&quot;nominal&quot;,&quot;analyticType&quot;:&quot;dimension&quot;,&quot;offset&quot;:0}],&quot;opacity&quot;:[],&quot;size&quot;:[],&quot;shape&quot;:[],&quot;radius&quot;:[],&quot;theta&quot;:[],&quot;longitude&quot;:[],&quot;latitude&quot;:[],&quot;geoId&quot;:[],&quot;details&quot;:[],&quot;filters&quot;:[{&quot;fid&quot;:&quot;IncomeGroup&quot;,&quot;name&quot;:&quot;IncomeGroup&quot;,&quot;basename&quot;:&quot;IncomeGroup&quot;,&quot;semanticType&quot;:&quot;nominal&quot;,&quot;analyticType&quot;:&quot;dimension&quot;,&quot;offset&quot;:0,&quot;rule&quot;:null}],&quot;text&quot;:[]},&quot;layout&quot;:{&quot;showActions&quot;:false,&quot;showTableSummary&quot;:false,&quot;stack&quot;:&quot;stack&quot;,&quot;interactiveScale&quot;:false,&quot;zeroScale&quot;:true,&quot;size&quot;:{&quot;mode&quot;:&quot;auto&quot;,&quot;width&quot;:320,&quot;height&quot;:200},&quot;format&quot;:{},&quot;geoKey&quot;:&quot;name&quot;,&quot;resolve&quot;:{&quot;x&quot;:false,&quot;y&quot;:false,&quot;color&quot;:false,&quot;opacity&quot;:false,&quot;shape&quot;:false,&quot;size&quot;:false}},&quot;visId&quot;:&quot;gw_DGUp&quot;,&quot;name&quot;:&quot;Chart 1&quot;}],&quot;chart_map&quot;:{},&quot;workflow_list&quot;:[{&quot;workflow&quot;:[{&quot;type&quot;:&quot;view&quot;,&quot;query&quot;:[{&quot;op&quot;:&quot;aggregate&quot;,&quot;groupBy&quot;:[&quot;Year&quot;,&quot;IncomeGroup&quot;],&quot;measures&quot;:[{&quot;field&quot;:&quot;Birth rate, crude (per 1,000 people)&quot;,&quot;agg&quot;:&quot;mean&quot;,&quot;asFieldKey&quot;:&quot;Birth rate, crude (per 1,000 people)_mean&quot;}]}]}]}],&quot;version&quot;:&quot;0.4.8.10&quot;}&quot;&quot;&quot;<br>    return pyg_html</pre><p>The display consists of 2 sections —</p><ol><li><strong>DATA</strong> : This section lets you view your dataset in an interactive environment allowing multi-column filtration ,arranging data in ascending/descending order and showing run-time summaries for each column. With this, users can gain deeper insights alongside plotting visuals.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9wUTHFSHcTu4aB4YCTZZgg.png" /><figcaption>Figure 1 shows Data section displaying visual summaries for each column</figcaption></figure><p><strong>2. VISUALIZATION: </strong>This section lets you create, explore and inspect run-time visuals. The interface design consists of the following :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNTeMwAM-pG89OCEcpdKEg.png" /><figcaption>Figure 2 shows Visualization section for dashboard reporting</figcaption></figure><ol><li><strong>DATA PANEL</strong>: It consists of field list showing categorical variables in <strong>blue</strong> and numerical variables in <strong>purple. Y</strong>ou only need to drag and drop your variables of interest in the values panel for plotting a graph.</li><li><strong>FORMAT PANEL:</strong> It lets you filter-out data, assign color and modify shape or size of your data on the basis of a field to gather insights. It even allows you to add details to your visual as we do in Tableau/Power BI. The filter feature provides you to add variety of rules such as aggregation methods or set a specific value/range.</li><li><strong>VALUES PANEL:</strong> It lets you add columns or list of columns to draw a chart (E.g. Measures on Y-axis and Dimensions on X-axis).</li><li><strong>VISUALIZATION CANVAS: </strong>This feature lets you create a reporting view for your data, enabling the creation of multiple different charts. It comes really handy with adjustable graphics and even inspecting data with a click away.</li></ol><p>1. Each chart is managed by a Tab on the top of the screen. Create a new chart by clicking on the <strong>New</strong> button.</p><p>2. You can play with multiple options of charts in the options bar such as bar, line, area, or scatter charts, or create dual visuals for comparative analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*I93amUFCircNV4HZ3H5qwA.png" /><figcaption>Figure 3 shows a stacked bar chart of death rates per region, with highlighted colors representing each income group and the intensity of infant mortality rates indicated by a resizing feature</figcaption></figure><p><strong>5. OPTIONS BAR</strong>: With convenient redo and undo features, It allows users to apply multiple actions as needed, such as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tz3JMA6GLzMazImI9qYbrw.png" /><figcaption>Figure 4 shows the list of different features in options bar</figcaption></figure><ol><li><strong>Aggregation: </strong>It plots the <strong><em>summation</em></strong> of numerical column present in the values panel.</li><li><strong>Mark-type :</strong> It lets you draw different charts such as bar chart, line chart and scatter plot. It is set to <strong><em>Auto</em></strong> by default but you can change it as per the requirement.</li><li><strong>Stack Mode :</strong>It lets you change the appearance of the axis labels as well visual representation by adjusting their formats using normalize/center/stack modes.</li><li><strong>Transpose </strong>: It takes the<strong><em> transpose</em></strong> of the selected visual.</li><li><strong>Order </strong>: It lets you sort graphical data in ascending/descending order.</li><li><strong>Axes Resizing</strong>: It lets you<em> zoom in</em> or<em> zoom out</em> your visual in order to view underlying trends.</li><li><strong>Layout mode:</strong> It helps in adjusting height and width of graph. It is set to <strong><em>Auto </em></strong>by default but you can change to container size or a fixed width.</li><li><strong>Coordinate System:</strong> Its lets you analyze data generically or geographically with the help of coordinates(Longitude and Latitude)</li><li><strong>Debugging</strong>: It debugs your code.</li><li><strong>Chart Export:</strong> Its provides a flexible and easy way to export charts as PNG or in SVG format.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIxncoTHby-ZkhlAJc2MZw.png" /><figcaption>Figure 5 shows the image of the chart after export</figcaption></figure><p><strong>11. Data Export</strong>: It helps you export chart data in the form of a csv file.</p><p><strong>12. Config: </strong>It lets you configure the PyG walker environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*a5d1SV8_ChvWGrjKQJwMJg.png" /><figcaption>Figure 6 shows the config window allowing users to customize the environment as per their preferences and requirements</figcaption></figure><p><strong>13. Code Export: </strong>It provides you with a code snippet to embed your graphs to either a python app/JSON script.</p><p><strong>14. Query Limit</strong>: It lets you set limit to your data visualization, so as you view only selected rows.</p><p><strong>15</strong>.<strong> Open Painter:</strong> It lets you paint your chart with a color brush giving a fun touch of painting.</p><p><strong>16</strong>. <strong>Official Documentation</strong>: It links you to the official documentation page at <a href="https://docs.kanaries.net/">https://docs.kanaries.net/</a></p><p>I’ve created a simple demo app for you to explore and learn more about this magical library. Check it out at: <a href="https://huggingface.co/spaces/alvi15tooba/PyGwalker_dashboard">https://huggingface.co/spaces/alvi15tooba/PyGwalker_dashboard</a></p><p>Don’t forget to share your thoughts on it. I’ll be back with more interesting data stories.</p><p>Until then, stay connected! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e61b063a78fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-collective/pyg-walker-a-tableau-alternative-you-should-know-e61b063a78fe">PyG Walker — A Tableau Alternative You Should Know</a> was originally published in <a href="https://medium.com/data-science-collective">Data Science Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Aggregation functions in Panda SQL]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://alvi15tooba.medium.com/getting-started-with-aggregation-functions-in-panda-sql-215d4e85a6e7?source=rss-ec7cb3ff7dbd------2"><img src="https://cdn-images-1.medium.com/max/787/1*4KfNC8gnKok7RfNwO7oGEw.png" width="787"></a></p><p class="medium-feed-snippet">When working with large datasets, the ability to summarize data and extract insights is crucial.</p><p class="medium-feed-link"><a href="https://alvi15tooba.medium.com/getting-started-with-aggregation-functions-in-panda-sql-215d4e85a6e7?source=rss-ec7cb3ff7dbd------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://alvi15tooba.medium.com/getting-started-with-aggregation-functions-in-panda-sql-215d4e85a6e7?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/215d4e85a6e7</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[aggregation]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Tue, 24 Dec 2024 06:25:17 GMT</pubDate>
            <atom:updated>2024-12-24T06:25:17.183Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Effective ways of Visual data communication by graphs]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/geekculture/effective-ways-of-visual-data-communication-by-graphs-f72f755f6dce?source=rss-ec7cb3ff7dbd------2"><img src="https://cdn-images-1.medium.com/max/642/1*xXRxe-6wDp9v2nXB1bTlwg.png" width="642"></a></p><p class="medium-feed-snippet">&#x201C;IT IS YOUR DATA, OWN IT! &#x201D;</p><p class="medium-feed-link"><a href="https://medium.com/geekculture/effective-ways-of-visual-data-communication-by-graphs-f72f755f6dce?source=rss-ec7cb3ff7dbd------2">Continue reading on Geek Culture »</a></p></div>]]></description>
            <link>https://medium.com/geekculture/effective-ways-of-visual-data-communication-by-graphs-f72f755f6dce?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f72f755f6dce</guid>
            <category><![CDATA[data-visualisation]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python-libraries]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 19:03:50 GMT</pubDate>
            <atom:updated>2024-10-08T19:03:50.661Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Getting Started with Python in Power BI]]></title>
            <link>https://medium.com/microsoft-power-bi/getting-started-with-python-in-power-bi-c54330c89561?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c54330c89561</guid>
            <category><![CDATA[power-bi-tutorials]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 06:23:59 GMT</pubDate>
            <atom:updated>2024-02-26T19:27:00.220Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever wonder how to add the power of python to your Power BI dashboard? If not then in this blog I will share the key steps about how to link your Power BI Desktop with Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*PQKvXPNVCmWkJFu9HZHv1Q.png" /></figure><p>But first, lets consider why python is significant for Power BI development.</p><p><strong><em>Using Python in Power Query Editor</em></strong></p><p>The python programming has a rich diversity of libraries such as NumPy, Pandas, and scikit-learn. These libraries will be really useful to use in power query for data manipulation, cleaning, and transformation.</p><p><strong><em>Using Python for Automation and Advanced Analytics</em></strong></p><p>Power BI is an essential tool which provide multiple ways to integrate predictive ML models into reports or dashboards. For example, we can built streamlined and optimized models with <strong><em>Pycaret </em></strong>— an AutoML library for automating Machine Learning workflows. With Power BI, we can also merge insights from different customized forecasting/predictive AI models hosted on Azure Machine Learning within just a few clicks.</p><p>Another example would be writing up a python script using variety of libraries such as <strong><em>Keras ,Pytorch </em></strong>and <strong><em>Tensorflow</em></strong> ,etc.to perform complex calculations with a broader range of machine learning tasks.</p><p><strong><em>Using Python for Power BI Reporting</em></strong></p><p>No doubt, Power BI brings out a wide range of built-in visualizations to drop onto your canvas. But, if you want to create custom visuals based onto some specific requirements then Python would be the right option to do so. Libraries such as <strong><em>Matplotlib </em></strong>and <strong><em>Seaborn </em></strong>offer a variety of plots for data visualization so that you can create interactive and customized charts quickly and display your insights effectively.</p><p><strong><em>Using Python for Data Source Integration</em></strong></p><p>By using Python’s <strong><em>pandas </em></strong>library, we can write short code snippets to extract data from a large variety of sources, load it and transform it into Power BI automatically. Similarly, Python’s <strong><em>requests</em></strong><em> </em>library enables connections with other platforms, such as web APIs, databases, or cloud services.</p><p>Now, lets dive into the steps to connect Power BI with Python.</p><p>Make a new folder <strong><em>Python-BI</em></strong> and create a new Power BI file along with the dataset csv file in it. Here I have exported <a href="https://www.kaggle.com/datasets/stefanoleone992/fifa-21-complete-player-dataset/data"><em>FIFA Player dataset</em></a> in CSV format.</p><h3>PART A ) CONNECTING DATA SOURCES WITH PYTHON</h3><h4><strong>STEP 1 ) SETTING UP PYTHON ENVIRONMENT IN POWER BI</strong></h4><p>Go to <strong><em>File Explorer</em></strong> from your navigation pane, look for Options and Settings at the bottom of the screen and open <strong><em>Options</em></strong> dialog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*6D5mStLZoreevuzKy3PdGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*766tki8LsYLdGudqN_aTRg.png" /><figcaption><strong>Figure 1 </strong><em>(on the left)</em> shows <strong>Options and Settings</strong> menu form File Explorer &amp;<strong> Figure 2 </strong>(on the right) shows the browsed paths of python home directory &amp; VS code</figcaption></figure><p>In the Python Scripting section, we need to perform two edits:</p><ol><li><strong>Set up a Python Home Directory — </strong>Power BI by default picks up your python installation path but if it doesn’t then choose python home directory as <strong>Others</strong> and <strong>set the location to your installed python directory in C folder.</strong></li><li><strong>Select a Python IDE to use with Power BI — </strong>Locate your favorite Python IDE in C drive to integrate with Power BI. Here, I am connecting my VS code folder with code.exe file.</li></ol><p><strong>(P.S. </strong>if you haven’t installed Python and VS code yet ,please find installation link for <a href="https://www.python.org/downloads/"><em>Python</em></a><em> and </em><a href="https://code.visualstudio.com/download"><em>Visual Studio Code</em></a><em> )</em></p><h4><strong>STEP 2) ESTABLISHING CONNECTION WITH PYTHON DATASOURCE</strong></h4><p>Form Home Panel, Go to <strong>Get data&gt;More Options &gt;Other &gt; Python Script</strong> ,a new window will get open. Write up the following code and click<strong> OK.</strong></p><pre>import pandas as pd<br>data = pd.read_csv(r&quot;C:\Users\tooba.alvi\Downloads\Python-BI\FIFA_dataset.csv&quot;)<br>print(data)<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*nLdt3HHrOb2rK9LghO7uqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*Uh1uEvXK2croMFAU_-P1eg.png" /><figcaption><strong>Figure 3</strong><em>(on the left)</em> shows step-by-step guide for connecting the python data source &amp;<strong> Figure 4 </strong>(on the right) shows the data frame after the connection is successfully established</figcaption></figure><p>Now, go to the<strong> Data Source Settings</strong> dialog like <strong><em>Step 1</em></strong>, select the data sources in the current file( as in this case) and then select <strong><em>Edit Permissions</em></strong> option to make sure that the Privacy Level has been set to <strong><em>Public</em>. </strong>Select<strong> OK </strong>and <strong>close.</strong></p><figure><img alt="Figure showing privacy level of data source set to public" src="https://cdn-images-1.medium.com/max/793/1*UHm3sMVbw4td80uFJ8yh6Q.png" /><figcaption><strong>Figure 5</strong> shows the privacy level of connected data source set as Public</figcaption></figure><h3>PART B) CREATING VISUALS WITH PYTHON</h3><p>When you are done with all the steps as mentioned in <strong>PART A</strong>, lets create a basic custom visual.</p><h4><strong>STEP B.1) ENABLE PYTHON SCRIPTING VISUAL</strong></h4><ol><li>Go to Report View&gt;select Python visual form Visualizations Pane , a new window will open.</li><li>Enable script visuals, a blank visual will display on canvas with a script editor at the bottom.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lql4HgUU0bGEDLQpJvOskw.png" /><figcaption><strong>Figure 6 </strong>shows Report View for Python scripting visual</figcaption></figure><h4>STEP B.2) WRITE CODE SNIPPET IN SCRIPT EDITOR</h4><ol><li>Drag and drop the required fields from<strong> Data Panel </strong>to the <strong><em>Value</em></strong>s pane(<em>sofifa_id, short_name, overall </em>) for creating the custom visual. Right click on <strong>every field &gt;enable don’t summarize</strong> from drop down menu.</li><li>Now write the following code to display <strong>Top 10 Best Performing FIFA players </strong>with their overall scores. Power BI takes data source name as <strong><em>‘dataset’</em></strong> by default.</li></ol><p>(P.S. In order to plot python visuals in Power BI, you must have installed visualization libraries using CMD or Anaconda prompt, follow this <a href="https://matplotlib.org/stable/users/installing/index.html">guide</a>)</p><pre>import matplotlib.pyplot as plt<br>dataset=dataset.sort_values(&#39;overall&#39;,ascending=False)<br>dataset=dataset.head(10)<br>z=dataset.sofifa_id; x=dataset.short_name ; y=dataset.overall<br>dataset.plot(kind=&#39;bar&#39;,x=&#39;short_name&#39;,y=&#39;overall&#39;, color=&#39;green&#39;)<br>plt.ylabel(&#39;Overall Score&#39;) <br>plt.title(&quot;Top 10 Players Name Vs Overall Score&quot;) <br>plt.show()</pre><p>3. Now run the code by clicking the <strong>play </strong>▶️ button on the top right corner of <strong><em>Python script editor</em></strong>. The canvas now displays a customized bar graph successfully on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aeRGOW4AB04ZkuUBqKs-Wg.png" /><figcaption><strong>Figure 7 </strong>shows a step-by-step guide to create a customized visual by running python script</figcaption></figure><p>4. You can also use an External IDE (e.g. Visual Studio Code) for editing your Power BI code by clicking the<strong> ↗ button </strong>in the script editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z4e0LXBVpxhrZJol_gOivg.png" /><figcaption><strong>Figure 8 </strong>displays VS Code environment with Power BI connected data source (on the left side) and code output (on the right side)</figcaption></figure><p>In a nutshell, integrating Python with your Power BI App will not only improve your data manipulation capability but also empower it with much more flexibility and customized visuals. Also, its your call to either set up python in your Power BI environment as per the project requirements and user needs.</p><p>Still encountering issues? No worries. <a href="https://www.linkedin.com/in/tooba-ahmed-alvi/">Let’s connect</a> to resolve it together. Until then, stay connected!</p><p><strong>Source Link:</strong> <a href="https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts">https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts</a></p><p><strong>GitHub Link:</strong> <a href="https://github.com/ToobaAhmedAlvi/Python-PowerBI_integration">https://github.com/ToobaAhmedAlvi/Python-PowerBI_integration</a></p><blockquote>Don’t forget to subscribe to</blockquote><blockquote>👉 <a href="https://medium.com/microsoft-power-bi">Power BI Publication</a></blockquote><blockquote>👉 <a href="https://medium.com/microsoft-power-bi/newsletters/microsoft-power-bi-weekly">Power BI Newsletter</a></blockquote><blockquote>and join our Power BI community</blockquote><blockquote>👉 <a href="https://linktr.ee/powerbi.masterclass">Power BI Masterclass</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c54330c89561" width="1" height="1" alt=""><hr><p><a href="https://medium.com/microsoft-power-bi/getting-started-with-python-in-power-bi-c54330c89561">Getting Started with Python in Power BI</a> was originally published in <a href="https://medium.com/microsoft-power-bi">Power BI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Types Of Biases In Data-Driven Decision-Making]]></title>
            <link>https://medium.com/before-you-launch/types-of-biases-in-data-driven-decision-making-dddm-911f2cfbef99?source=rss-ec7cb3ff7dbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/911f2cfbef99</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[biases-and-fallacies]]></category>
            <category><![CDATA[data-management]]></category>
            <category><![CDATA[decision-making]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Tooba Ahmed Alvi]]></dc:creator>
            <pubDate>Sun, 04 Feb 2024 16:12:02 GMT</pubDate>
            <atom:updated>2024-03-20T02:38:22.917Z</atom:updated>
            <content:encoded><![CDATA[<p>Making the right decisions with your data is the most critical part of <strong>Data Management Lifecycle.</strong></p><p>If you don’t understand the core of your business problem, you won’t be able to identify products, services, and features that your customers would like to have.</p><p>Bias in data may occur during any stage of the data life-cycle such as; data collection, analysis, or model building, which will lead to inaccurate or misleading conclusions. This occurs when the data doesn’t tell the full story affecting the productivity of your work.</p><h3>The biases that we need to avoid in decision-making</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*GtrgUb1AruuymZDudvDG-Q.png" /></figure><ol><li><strong>CONFIRMATION BIAS</strong></li></ol><p>Confirmation bias occurs when we have existing beliefs and fine-tune data that would support a particular existing concept.</p><p><strong>How To Avoid Confirmation Bias: </strong>Identify your biases and write down any pre-existing views before starting the actual analysis. Counter the view by evaluating the pre-existing concept objectively. Another way is to ask a neutral person to evaluate your data.</p><p><strong>2. OMITTED VARIABLE BIAS</strong></p><p>A critical mistake people unintentionally make is missing out the key pieces of information which are important for decision making.</p><p><strong>How To Avoid Omitted Variable Bias:</strong> Although it is difficult to identify important variables at the time of data collection, but by brainstorming ideas or factors which may affect the outcome, the omitted variable bias can be eliminated.</p><p><strong>3. OUTLIER BIAS</strong></p><p>Outliers are referred to as the anomalies which can crucially skew the data. Outlier bias occurs by looking at the mean always.</p><p><strong>How To Avoid Outlier Bias: </strong>Look for the entire range of distribution and outliers before choosing to use mean on your data. For data with fewer outliers, median can serve as a better alternative for the central point.</p><p><strong>4. SAMPLE SIZE BIAS</strong></p><p>Sample size bias which is commonly called as sampling bias occurs when some members of a population are systematically more likely to be selected in a sample than others. Sampling bias limits the generalizability of findings.</p><p><strong>How To Avoid Sample Size Bias: </strong>Use standardized approach (mathematical formulas/online sample calculators) for calculating appropriate sample size given the study requirements.</p><p>Remember that the margin of error tells us about the variation we can tolerate between our sample and population parameters. The confidence level tells us the probability that the actual population mean would lie in the specified range of our sample mean. The bigger the sample size the higher the chance it would be the well representative of the actual population.</p><p><strong>4. SELECTION BIAS</strong></p><p>A Subtype of Sampling bias which occurs when the data sample does not represent the population data well.</p><p><strong>How To Avoid Selection Bias:</strong> The sample should be selected at random with equal number of representation from all classes. The statistical parameters of the sample should be near to the population parameters.</p><p><strong>6. SURVIVORSHIP BIAS</strong></p><p>A Subtype of Sampling bias which occurs when an individual only considers the surviving observation without considering those data points that didn’t “survive” in the event.</p><p><strong>How To Avoid Survivorship Bias:</strong> Look for both the strategies that either survived or failed to deploy the event in order to cater data from all perspectives.</p><p><strong><em>Intuition”</em></strong> is not all that you need in decision making, so I hope that after reading this article you ready to make logical and concrete decisions with your data.</p><p>Until then, stay connected. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=911f2cfbef99" width="1" height="1" alt=""><hr><p><a href="https://medium.com/before-you-launch/types-of-biases-in-data-driven-decision-making-dddm-911f2cfbef99">Types Of Biases In Data-Driven Decision-Making</a> was originally published in <a href="https://medium.com/before-you-launch">Before You Launch</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>