<?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 Pragya Verma on Medium]]></title>
        <description><![CDATA[Stories by Pragya Verma on Medium]]></description>
        <link>https://medium.com/@vermapragya?source=rss-fe546559539d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6iV7FuuxnuWV5MG2TMPvgg.jpeg</url>
            <title>Stories by Pragya Verma on Medium</title>
            <link>https://medium.com/@vermapragya?source=rss-fe546559539d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:19:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vermapragya/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[Survival Analysis: The most Underrated Methodology in the Data Science toolkit]]></title>
            <link>https://medium.com/analytics-vidhya/survival-analysis-the-most-underrated-methodology-in-the-data-science-toolkit-7ba0e02f6247?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ba0e02f6247</guid>
            <category><![CDATA[product-analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[advanced-analytics]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 04:35:28 GMT</pubDate>
            <atom:updated>2026-09-24T04:35:28.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HSLPmI_ndQ7VcthS" /><figcaption>Photo by <a href="https://unsplash.com/@williamstphotography?utm_source=medium&amp;utm_medium=referral">Taylor Williams</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The phrase “Survival analysis” evokes medical research; however, its applications go far beyond medicine. Surprisingly, most of us solve survival problems every week without calling them that.</p><p>Churn, retention, activation, etc., are all survival questions.</p><p>Every team answers them in the following format: pick a fixed window, count who did the thing by the deadline, and then divide. Anyone who signed up last week and hasn’t churned yet is silently counted as a success, not because they are loyal, but because we haven’t waited long enough to find out. This is not measuring behavior; it is measuring how long ago people joined.</p><p>Survival Analysis specifically fixes this.</p><p>Survival analysis is a well-studied topic in statistics because of its importance within and beyond medicine. It isn’t a niche technique borrowed from clinical trials. It is an alternative way to think about time-to-event data.</p><h3>Why it’s powerful: Structural advantages</h3><h4>Censoring</h4><blockquote>It doesn’t throw away unfinished observations.</blockquote><p>For example, we want to model churn, which predicts whether the customer will cancel their subscription to a service. The company might collect data on customers over a period of time to model a customer’s time to cancellation as a function of other predictors. However, not all customers would have canceled their subscription by the end of the time period. For such customers, time to cancellation is “censored”. We know they survived at least this long, even if we don’t yet know for how much longer.</p><p>This is the concept most DS skip entirely: “censoring,” which is the idea that “I don’t know yet”. Ignoring this distinction quietly corrupts every retention number, churn model, and time-to-conversion metric. And unlike a naive fixed-window count, censoring doesn’t discard unfinished observations; it uses them as partial information rather than discarding them as failures.</p><h4>Velocity</h4><blockquote>It gives you the velocity to make decisions without waiting for the event to play out.</blockquote><p>This is the problem Spotify’s applied science team ran into directly. They wanted to optimize recommendation and search products for long-term retention, not just short-term stream-through rate. The obvious approach is to run the A/B test and wait for weekly-active-user retention to materialize at week 4, week 8, and week 24, which is a genuine bottleneck. Waiting that long to make a ship/no-ship call is expensive: engineering cycles, opportunity cost.</p><p>Their fix was to define a <strong>time-to-inactivity</strong> metric: how long until a user goes silent for a full week. They used a Cox proportional hazards model on short-term signals (the first two weeks of consumption behavior) to predict the full curve through 24 weeks. The result wasn’t just faster; it was <em>better</em>: showing higher statistical power than either week-2 or week-4 observed retention, meaning it could detect real treatment effects with fewer users and less runtime than the naive retention metric.</p><h4>Early peeking</h4><blockquote>It supports early peeking statistically using partial data</blockquote><p>Every experimenter has felt the itch to peek at Day 3 of a 4-week test. Naive peeking falsifies results because you run multiple tests and take the best-looking snapshot. Survival analysis offers a disciplined version of this impulse.</p><p>The hazard framework is built around modeling the overall time-to-event distribution rather than a single fixed-window binary outcome. You can extrapolate from short-term behavior to a long-term expectation, provided the underlying assumptions hold. The Spotify team formalized exactly this: their model used the first two weeks of short-term engagement signals to generate weekly retention out to 24 weeks and validated using directionality checks against observed retention and a formal statistical surrogacy test.</p><p>Peeking is fine if you check that your short-term proxy points in the same direction as the long-term outcome and test that the treatment effect is mediated <em>through</em> the short-term signal rather than leaking around it.</p><h3>Where can data scientists actually use this</h3><h4>Retention and churn (Censoring)</h4><p>Every product team uses the 30D retention metric. It is computed by taking everyone who signed up 30+ days ago, checking who is still active, and dividing by that count. Anyone who signed up 12 days ago isn’t simply part of the math, which sounds fine until you realize your retention number is, in fact, a function of when people joined, not just of how long they stuck around.</p><p>A Kaplan-Meier estimate fixes this by using each user’s data up to however long you have observed them. You get a full survival curve rather than a single churn point.</p><h4>Experimentation and A/B test decisions (Velocity)</h4><p>This is the Spotify case above: waiting for retention to fully materialize before making a ship decision is slow and expensive. A survival model trained on short-term signals can predict the long-term retention curve and get you a statistically valid answer weeks earlier than the naive metric.</p><h4>Activation and Adoption (Censoring + Velocity)</h4><p>“% of users activated within 14 days” has the same censoring issue as churn, but at the front of the funnel rather than the end. Someone who signed up three days ago and hasn’t activated yet isn’t a failure; they’re censored. Survival analysis lets you report activation as a curve stratified by acquisition channel, onboarding flow, or plan tier. Similar to the experimentation example, this also lets you extrapolate the expected activation before every cohort has fully aged into the window.</p><h4>Churn driver analysis (Censoring + Interpretability)</h4><p>The standard way to calculate churn is logistic regression on a binary “churned yes/no” label, which forces you to pick an arbitrary cutoff date and again discards anyone who hasn’t resolved yet. A Cox proportional hazard model instead regresses on time to churn, and gives you hazard ratios: “using feature X reduces churn hazard by Y%, holding variable A and B constant”. That’s a cleaner, more decision-usable statement than a logistic regression, and it uses the full dataset, including everyone still active.</p><h4>Competing Risks</h4><p>Most churn definitions have different exits: voluntary, involuntary, downgrade, or other buckets. Each exit is different and has different drivers and fixes. Competing risk survival models let you estimate separate hazard models for each exit type simultaneously. So, for example, “voluntary churn reduced by 10%” is a retention fix, not a billing fix.</p><h4>Monetization timing (Censoring)</h4><p>Time-to-first-purchase, time-to-upgrade, time-to-expansion: same logic, opposite direction.</p><h3>Assumptions to take care of</h3><p>Every statistical method comes with a few assumptions attached. If you ignore these, the survival analysis will definitely yield incorrect results.</p><h4>The censoring mechanism is independent of the event and conditional on the features.</h4><p>Say enterprise customers are more likely to churn later and more likely to be censored because they signed longer contracts partway through your observation period. If contract length is in your model, that dependence is accounted for, and the assumption holds. If it isn’t, then churn risk and censoring share a common cause you haven’t measured, the assumption breaks, and your survival curve will be biased without any obvious symptoms.</p><h4>Cox regression assumes that the hazard ratio between any two groups remains constant over time.</h4><p>If feature X halves your churn hazard, it halves it on day 5 as well as day 500. This is often false in practice: a feature might suppress early churn (an onboarding effect) without affecting long-run churn, and a Cox model will average that into a misleading hazard ratio. Always check this assumption (Schoenfeld residuals or stratify and eyeball the curves) before trusting a hazard ratio as stable and timeless.</p><h4>The surrogacy assumption when using short-term data to predict long-term outcomes.</h4><p>This is the one the Spotify paper is built around. If you’re using early signals to predict a metric you haven’t fully observed, you’re implicitly assuming the short-term signal fully explains the long-term effect. There’s no other pathway by which your treatment could move the long-term outcome except through the short-term proxy you measured. This is not automatically true, and it’s not something you can verify by just eyeballing a correlation; it requires an explicit check (the paper uses a likelihood-ratio test).</p><h3>References</h3><p><a href="https://dl.acm.org/doi/fullHtml/10.1145/3485447.3512038">https://dl.acm.org/doi/fullHtml/10.1145/3485447.3512038</a></p><p><a href="https://www.ncbi.nlm.nih.gov/sites/books/NBK560604/">https://www.ncbi.nlm.nih.gov/sites/books/NBK560604/</a></p><p><a href="https://www.statlearning.com/resources-first-edition">https://www.statlearning.com/resources-first-edition</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ba0e02f6247" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/survival-analysis-the-most-underrated-methodology-in-the-data-science-toolkit-7ba0e02f6247">Survival Analysis: The most Underrated Methodology in the Data Science toolkit</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shifting AI Upstream: Integrate AI Inferences Directly into Your Data Pipeline]]></title>
            <link>https://medium.com/towards-data-engineering/shifting-ai-upstream-integrate-ai-inferences-directly-into-your-data-pipeline-402fee0169fb?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/402fee0169fb</guid>
            <category><![CDATA[analytics-engineering]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 10:18:56 GMT</pubDate>
            <atom:updated>2026-06-23T10:18:56.676Z</atom:updated>
            <content:encoded><![CDATA[<h4>AI bolted onto BI tools vs. AI baked into the transformation layer</h4><figure><img alt="Pipes to show analogy for data pipelines" src="https://cdn-images-1.medium.com/max/1024/0*Rc2Ep2fH5ePLJ20k" /><figcaption>Photo by <a href="https://unsplash.com/@jenstakesphotos?utm_source=medium&amp;utm_medium=referral">Jens Freudenau</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Most AI analytics solutions operate at the dashboard or front-end layer, which are just lazy AI-UI solutions, offering limited value. Greater impact comes from moving analytics upstream into the ETL pipeline, specifically into the transformation layer before data reaches visualization tools or reporting. For example, instead of running sentiment classification only in dashboards after data is loaded, you can integrate it directly in the data transformation step so those results are available throughout your analytics stack.</p><p>The AI-UI layer approach fails because each view triggers a new AI run, adding cost, inconsistencies, and wait time while the context changes. Consider a scenario where two users access the same dashboard, the LLM is called twice, costing the same run twice. Both users receive completely different results if there is a small change in context or model updates in between. When the user modifies a filter, a loading spinner, the LLM API, and an extra fee per api call are all triggered.</p><h3>Push AI to the transformation layer</h3><p>By using tools like DBT Python models calling LLM APIs, or Snowflake Cortex functions directly in your data transformation and wrangling, you can build solutions for unstructured data categorization or intent classification. The AI-generated output is added into a column in your warehouse table, just like any other transformation. There is no separate AI service in front of your dashboard; the inference is simply another stage in the pipeline, version-controlled and testable alongside the rest of your dbt project.</p><figure><img alt="The before vs after architecture design" src="https://cdn-images-1.medium.com/max/1024/1*pUD9uzOyTLGi_c27rzvtFA.png" /></figure><p>This idea will make your AI-generated inferences live alongside structured data, helping scale solutions in a deterministic fashion. Since you are not re-running inference every time, the context is not lost by the time data flows to downstream consumers — BI layer, APIs, LLM apps. Because these inferences execute only once, there is a one-time cost to implement them, and you can query the findings indefinitely, keeping ongoing costs low.</p><p>This also means versioning and reproducibility come for free, so now your ML pipeline is just another dbt model, tracked and tested the same way.</p><blockquote>This shift is about simpler AI Infrastructure and saving costs. With this approach, the focus is to move away from real-time AI efforts and only focus on a few things that require it.</blockquote><h3>What does this cost in return?</h3><p>When building this solution, it is important to address ownership and governance for new columns formed by pipeline prompts. It is useful in circumstances when the meaning of the column silently shifts or the prompt changes. So someone needs to own the definition and version it like code.</p><p>There’s also a performance cost you need to consider because LLMs inside pipelines introduce latency. Strategies like incremental builds and batching help keep run times fast as the data grows.</p><p>If AI is generating data, how do you trust the output? So these columns need the same guiding principles as any other DBT model: confidence intervals, human reviews, feedback loops, and drift monitoring.</p><h3>Not everything belongs upstream</h3><p>But not every solution is a good fit for the ETL pipeline. For example, real-time personalization or exploratory prompting still belong at the front-end, since they depend on the exact moment of the request and not the underlying data. As a good rule of thumb, if the answer depends on this exact moment, keep it at the front end; and if it depends on underlying data, architect it within the pipelines. On the other hand, use cases like chat-with-data don’t fit into this scenario, as it needs underlying data in real-time. Hence, deciding which AI tasks belong in ETL versus the front end is always beneficial.</p><h3>The guiding Principle</h3><p>The pipeline isn’t just a place to transform and clean data anymore. It’s becoming where your AI strategy lives.</p><h3>What’s Next</h3><p>Over the next few blogs, I will put this approach into practice with its architecture, design decisions, and code for each:</p><ul><li>Categorizing unstructured textual data</li><li>Intent classification for raw event logs</li><li>Vector embeddings of product descriptions for similarity search</li></ul><p>Each one will use the same DBT project, so by the end, there will be a single pipeline doing different kinds of AI-native analytics — <em>built once, queried forever.</em></p><p><em>If you’re working on defining new AI strategies or something similar or have run into difficulties scaling AI inferences throughout a warehouse, I’d want to know about it. The patterns here are still emerging, and sharing real-world results and lessons learned accelerates progress for everyone in the field. Stay tuned for more deep dives, practical examples, and hands-on techniques to help you get the most from AI in your analytics workflows.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=402fee0169fb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/towards-data-engineering/shifting-ai-upstream-integrate-ai-inferences-directly-into-your-data-pipeline-402fee0169fb">Shifting AI Upstream: Integrate AI Inferences Directly into Your Data Pipeline</a> was originally published in <a href="https://medium.com/towards-data-engineering">Towards Data Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I built a skills library for Product Data Scientists]]></title>
            <link>https://vermapragya.medium.com/i-built-a-skills-library-for-product-data-scientists-ea0b8251467b?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea0b8251467b</guid>
            <category><![CDATA[claude-skills]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 05:57:06 GMT</pubDate>
            <atom:updated>2026-06-07T05:57:06.069Z</atom:updated>
            <content:encoded><![CDATA[<p>I couldn’t find any skills that I could leverage to produce faster and accurate analysis. Hence, I created something that I would use in my day-to-day to 10x my productivity.</p><p>analytics-skills treats the workflows product data scientists do every day – A/B test design, cohort analysis, causal inference, stakeholder readouts. LLMs can discover and invoke these automatically.</p><p>The library ships 13 opinionated, self-contained skills, each with reference docs, reusable scripts, and examples. Ask Claude to “<em>design an A/B test for X</em>” and it pulls the right skill. Ask it to “<em>refactor this SQL</em>” and it reaches for modular CTE patterns—no prompt engineering required.</p><p>It’s built on a real stack — Snowflake, dbt, pandas, scikit-learn — with adapters noted for BigQuery, Redshift, and Postgres. It works across Claude Code, Cursor, and any other LLMs that read a SKILL.md.</p><p>The guiding idea: <strong>analysis without a readout doesn’t ship.</strong> So every skill takes you from raw inputs all the way to something a stakeholder can actually read.</p><p>If you’re a product DS who’s tired of rebuilding the same scaffolding on every new project, this is for you. And if you’ve built workflows worth sharing, new skills are welcome. The contributing guide walks you through the template and quality checklist, so adding something new is straightforward.</p><p><a href="https://github.com/vermapragya/analytics-skill">GitHub - vermapragya/analytics-skill: Skills library for product data scientists working with Claude</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea0b8251467b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If your metric needs a 10 min explanation, it is already dead]]></title>
            <link>https://vermapragya.medium.com/if-your-metric-needs-a-10-min-explanation-it-is-already-dead-40f2111d82af?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/40f2111d82af</guid>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[data-strategy]]></category>
            <category><![CDATA[decision-making]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 22:10:18 GMT</pubDate>
            <atom:updated>2026-04-10T22:10:18.642Z</atom:updated>
            <content:encoded><![CDATA[<p>All organizations use metrics to define business strategies and guide decisions. But the moment people start debating what a metric actually means, you’ve already lost.</p><p>Picture a familiar scene. A metric goes up on the screen in a weekly review. Someone leans forward and asks the question that quietly derails the entire meeting:</p><p>“Wait — what exactly does this metric mean?”</p><p>And then the explanation begins. Definitions. Filters. Exclusions. Edge cases. Special logic that was baked in three quarters ago for a reason no one fully remembers. Ten minutes later, everyone nods politely.</p><p>But no one actually understands the metric. And at that moment — even if it still appears on every dashboard — the metric is already dead.</p><blockquote>“A metric that requires explanation is not a metric. It is a hypothesis that never got tested in plain English.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Lni-z_1_LOhjbIyR" /><figcaption>Photo by <a href="https://unsplash.com/@darlingarias?utm_source=medium&amp;utm_medium=referral">Darling Arias</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Why does this keep happening</h3><p>Metrics tend to start simple and grow complicated over time. A clean definition gets amended to handle an exception. That exception gets its own filter. A new product line gets bolted on. Two teams measure the same thing slightly differently, and someone tries to reconcile them into a single number. Before long, the metric is carrying the weight of every past compromise made in a room that no longer exists.</p><p>The irony is that more complexity usually means less trust. The wider the gap between what a metric shows and what people intuitively believe, the more energy goes into questioning the number — and the less goes into acting on it.</p><h3>The real cost</h3><p>A dead metric doesn’t disappear. It haunts your dashboards, your MBRs/QBRs, your board decks. People stop relying on it but feel too polite to retire it. Teams build their own shadow metrics — spreadsheets, Slack threads, personal notebooks — to track what they actually care about. Alignment quietly falls apart.</p><p>And when the moment comes to make a real decision, no one knows which number to trust.</p><p>What a living metric looks like —</p><ul><li>Anyone on the team can explain it in one sentence, without qualifiers</li><li>The definition hasn’t changed in the last two quarters</li><li>It connects directly to a decision someone is making right now</li><li>You know exactly what would move it — and you believe that moving it actually matters</li><li>When it goes up, everyone agrees that it is good. When it goes down, everyone agrees that it is bad</li></ul><h3>The fix is not better documentation</h3><p>The instinct when a metric gets confusing is to write a longer data dictionary entry. That is the wrong move. Documentation describes complexity; it doesn’t reduce it. The fix is to go back to the question the metric was supposed to answer — and ask whether this number still answers it cleanly.</p><p>If it doesn’t, you have two options: simplify the metric until it does, or retire it and start fresh. Both are better than keeping a number alive on life support while everyone stops believing in it.</p><h3>One rule worth keeping</h3><p>Before any metric goes into a dashboard, make the person who defined it explain it out loud to someone who wasn’t in the room when it was built. If the explanation takes more than a minute — or if it requires a whiteboard — go back and simplify.</p><p>Clarity is not a nice-to-have in metrics. It is the whole point.</p><p>The best metric is the one that makes the next decision obvious. If yours is doing anything other than that, it might be time to ask whether it is actually vital.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40f2111d82af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advanced SQLGrouping — Grouping Sets, Rollup, and Cube]]></title>
            <link>https://medium.com/towards-data-engineering/advanced-sqlgrouping-grouping-sets-rollup-and-cube-0e00ee26e3e7?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e00ee26e3e7</guid>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[advanced-sql]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Sat, 14 Mar 2026 20:01:00 GMT</pubDate>
            <atom:updated>2026-08-29T09:24:27.816Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with data in SQL, grouping plays a crucial role in summarizing and analyzing information. While basic GROUP BY clauses are effective for simple aggregations, SQL also provides advanced features like GROUPING SETS, CUBE, and ROLLUP that allow grouping along multiple dimensions, suitable for complex analysis. In this blog, we’ll explore these advanced grouping techniques and how they can enhance your data analysis capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hbHfdT5jKOFO2zS7" /><figcaption>Photo by <a href="https://unsplash.com/@resourcedatabase?utm_source=medium&amp;utm_medium=referral">Resource Database</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Delving into Grouping Sets</h3><p>GROUPING SETS allows you to write multiple group by clauses in a single query. This means you can aggregate data in various ways without writing separate queries for each grouping. It is particularly useful when you need to generate multiple summary levels.</p><h4>Syntax</h4><pre>SELECT column1, column2, SUM(column3)<br>FROM your_table<br>GROUP BY GROUPING SETS (<br>    (column1, column2),<br>    (column1),<br>    (column2),<br>    ()<br>)</pre><h4>Example</h4><p>Imagine you have a sales table with columns for region, product, and sales_amount.</p><pre>| REGION | PRODUCT | SALES_AMOUNT |<br>-----------------------------------<br>|   CA   |  101    |   1500       |<br>|   CA   |  102    |   2200       |<br>|   NY   |  104    |   1900       |<br>|   NY   |  102    |   2600       |<br>|   TX   |  103    |   3100       |<br>|   TX   |  102    |   2100       |<br>|   FL   |  104    |   1600       |<br>|   FL   |  101    |   2550       |<br>-----------------------------------</pre><p>To get totals by region, product, and overall total, you could use:</p><pre>SELECT region, product, SUM(sales_amount) AS total_sales<br>FROM sales<br>GROUP BY GROUPING SETS (<br>    (region, product),<br>    (region),<br>    (product),<br>    ()<br>)</pre><p>This query provides totals for each combination of region and product, totals by region, totals by product, and the total.</p><pre>| REGION | PRODUCT | SALES_AMOUNT |<br>-----------------------------------<br>|  CA    |   101   |    1500      |<br>|  CA    |   102   |    2200      |<br>|  NY    |   104   |    1900      |<br>|  NY    |   102   |    2600      |<br>|  TX    |   103   |    3100      |<br>|  TX    |   102   |    2100      |<br>|  FL    |   104   |    1600      |<br>|  FL    |   101   |    2550      |    <br>|  CA    |   NULL  |    3700      |<br>|  NY    |   NULL  |    4500      |<br>|  TX    |   NULL  |    5200      | <br>|  FL    |   NULL  |    4150      |<br>| NULL   |   101   |    4050      |<br>| NULL   |   102   |    6900      | <br>| NULL   |   103   |    3100      |<br>| NULL   |   104   |    3500      |<br>| NULL   |  NULL   |   17650      |</pre><h3>Exploring CUBE</h3><p>The CUBE operator generates a result set that includes all possible combinations of the specified columns. It’s a powerful tool for multi-dimensional analysis, especially useful in reporting and data warehousing.</p><h3>Syntax</h3><pre>SELECT column1, column2, SUM(column3)<br>FROM your_table<br>GROUP BY CUBE (column1, column2);</pre><h3>Example</h3><p>Using the same sales data, if you want to see totals for all combinations of region and product, including subtotals, you can use:</p><pre>SELECT region, product, SUM(sales_amount) AS total_sales<br>FROM sales<br>GROUP BY CUBE (region, product);</pre><p>This will give you totals for each combination of region and product, as well as totals for each region and each product.</p><pre>| REGION | PRODUCT | SALES_AMOUNT |<br>-----------------------------------<br>|   CA   |  101    |   1500       |<br>|   CA   |  102    |   2200       |<br>|   NY   |  104    |   1900       |<br>|   NY   |  102    |   2600       |<br>|   TX   |  103    |   3100       |<br>|   TX   |  102    |   2100       |<br>|   FL   |  104    |   1600       |<br>|   FL   |  101    |   2550       |<br>-----------------------------------</pre><h3>Understanding ROLLUP</h3><p>ROLLUP is similar to CUBE, but it generates a hierarchy of totals. It provides subtotals at various levels of aggregation, making it ideal for reports that require hierarchical data analysis.</p><h3>Syntax</h3><pre>SELECT column1, column2, SUM(column3)<br>FROM your_table<br>GROUP BY ROLLUP (column1, column2);</pre><h3>Example</h3><p>Continuing with our sales example, if you want to see total sales with subtotals for each region and the overall total, you can do:</p><pre>SELECT region, product, SUM(sales_amount) AS total_sales<br>FROM sales<br>GROUP BY ROLLUP (region, product);</pre><p>This query provides totals for each product within each region, subtotals for each region, and the grand total.</p><pre>| REGION | PRODUCT | SALES_AMOUNT |<br>-----------------------------------<br>|   CA   |  101    |   1500       |<br>|   CA   |  102    |   2200       |<br>|   NY   |  104    |   1900       |<br>|   NY   |  102    |   2600       |<br>|   TX   |  103    |   3100       |<br>|   TX   |  102    |   2100       |<br>|   FL   |  104    |   1600       |<br>|   FL   |  101    |   2550       |<br>-----------------------------------</pre><h3>Conclusion</h3><p>Advanced SQL grouping techniques like GROUPING SETS, CUBE, and ROLLUP are essential for anyone looking to perform complex data analysis. They simplify the process of obtaining multi-dimensional summaries and allow for a clearer understanding of your data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e00ee26e3e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/towards-data-engineering/advanced-sqlgrouping-grouping-sets-rollup-and-cube-0e00ee26e3e7">Advanced SQLGrouping — Grouping Sets, Rollup, and Cube</a> was originally published in <a href="https://medium.com/towards-data-engineering">Towards Data Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating the JSON Maze: A Python Script for Deep-Nested Paths]]></title>
            <link>https://vermapragya.medium.com/navigating-the-json-maze-a-python-script-for-deep-nested-paths-20add1a34986?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/20add1a34986</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[graph-traversal]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 19:38:38 GMT</pubDate>
            <atom:updated>2024-11-21T19:38:38.519Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever found yourself staring at a deeply nested JSON structure, feeling overwhelmed by its complexity? I recently faced a similar challenge when a data scientist on my team asked me to create a Python script to extract paths to heavily nested elements. At first glance, it seemed like a daunting task. However, I found a very simple solution using Python’s data structures and a little ingenuity.</p><h4>Breaking down the problem</h4><p>The key to tackling this problem lies in understanding the structure of JSON. It’s essentially a collection of key-value pairs, where values can be nested within other key-value pairs to any depth. To extract the path to a specific element, we need to recursively traverse the JSON structure, keeping track of the keys we encounter along the way.</p><h4>Python Script</h4><pre># function to traverse the json<br>def traverse_json(data, path=&#39;&#39;):<br>    if isinstance(data, dict):<br>        for key, value in data.items():<br>            new_path = f&quot;{path}.{key}&quot; if path else key<br>            yield from traverse_json(value, new_path)<br>    elif isinstance(data, list):<br>        for index, item in enumerate(data):<br>            new_path = f&quot;{path}[{index}]&quot;<br>            yield from traverse_json(item, new_path)<br>    else:<br>        yield path, data<br><br># Example usage<br>json_data = {<br>    &quot;key1&quot;: {<br>        &quot;key2&quot;: [<br>            {&quot;key3&quot;: &quot;value1&quot;},<br>            {&quot;key3&quot;: &quot;value2&quot;}<br>        ]<br>    },<br>    &quot;key4&quot;: &quot;value3&quot;<br>}<br><br># appending result<br>result = []<br>for path, value in traverse_json(json_data):<br>    result.append([path, value])<br>    <br>print(result)</pre><p>Upon executing the above script, we get the following as output —</p><pre>[[&#39;key1.key2[0].key3&#39;, &#39;value1&#39;], [&#39;key1.key2[1].key3&#39;, &#39;value2&#39;], [&#39;key4&#39;, &#39;value3&#39;]]</pre><h3>Conclusion</h3><p>This is what was needed by my colleagues for their work.</p><p>However, feel free to use the above script to modify it as per your use case — whether you just need path or path with its key-value, whatever fit your needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20add1a34986" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Professionalism in Data Science]]></title>
            <link>https://medium.datadriveninvestor.com/professionalism-in-data-science-1c52da84360c?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c52da84360c</guid>
            <category><![CDATA[professionalism]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[best-practices-technology]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Sun, 26 Mar 2023 06:07:00 GMT</pubDate>
            <atom:updated>2026-06-23T13:50:36.360Z</atom:updated>
            <content:encoded><![CDATA[<h4>A guide to Data Scientist’s best practices</h4><p>The idea of professionalism is an important concept in many fields. Professionalism relates to standards of practice, how a person in a profession acts, and also what they produce. Some professional associations describe a Code of Conduct that can relate to technical practices, ethical concerns, adherence to legal regulation, and broader societal concerns. Similarly in the field of Data Science how individuals behave matters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kKxjKH2-HnDWR72u" /><figcaption>Photo by <a href="https://unsplash.com/@kaleidico?utm_source=medium&amp;utm_medium=referral">Kaleidico</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data scientists are usually involved in working with data. Their metier is to determine the problem statement based on the data provided, and then curate the data and determine the correct required variables, perform analysis to identify the patterns and trends, and interpret the data to discover opportunities and solutions. Finally effectively communicating the results and findings to the stakeholders.</p><p>Hence there are rules and regulations in place to make sure that the best practices are being followed. The best practices for Data Scientists encompass a wide range of organizational, technical, ethical, and data concerns that should be followed to ensure that the best outcomes are achieved.</p><p>Here are some ways to ensure that professionalism is maintained in the field of Data Science:</p><h3><strong>Know Your 3Vs</strong></h3><blockquote>Be aware of your data’s volume, variety, and velocity.</blockquote><p>Data scientists should know their data inside out. Understanding the volume, variety, and velocity of data before starting a project is essential to ensure the accuracy of the results.</p><p>Data volume will aid in determining the appropriate type of data storage space as well as the computational power required to deal with the dataset. Understanding the data variety will help determine what data cleaning and curation steps are required, as well as the appropriate model, metrics, and tools for analysis. Data velocity will help to figure out the type of storage space required, as well as the best analysis method to deal with the data and produce the desired results.</p><h3><strong>Data is the New Oil</strong></h3><blockquote>Good quality data is valued more than bad quality data.</blockquote><p>Many enhanced technologies have made it easier to collect data from various sources. However, the gathered data can be corrupted containing information in the incorrect format, biased data points, and a variety of other data issues.</p><p>Uncertain data quality may compromise the results and communicate a false reality or promote an illusion of understanding. Hence, it is the responsibility of data scientists to determine the quality of the data and make sure preventative measures are taken to handle problems like sampling bias, survivorship data, causality, and correlation, and discard unfavorable data. Apart from this, it is the duty of data scientists to not claim bad data as good data and accordingly inform the stakeholders of the possible implications of false reality that the data may cause to create.</p><h3><strong>Collaborate and Communicate</strong></h3><blockquote><strong>C</strong>ommunicate the findings effectively to the stakeholders and teammates throughout the project lifecycle.</blockquote><p>Data scientists run a variety of tests and generate a plethora of evidence. As a result, it is critical that the results be communicated effectively. Miscommunication can lead to false reality and can create an illusion of understanding. Moreover, data scientists shouldn’t practice cherry-picking; it is necessary that the stakeholders are made aware of all the failed experiments and disconfirming evidence.</p><p>Aside from communicating efficiently while delivering results, clear communication with your colleagues is also necessary. This includes disclosing any facts, assessments, or insights that may be relevant to colleagues’ own data science work. Alternatively, Create shareable stories in business language to educate the larger business on the purpose and vision of your project. Storytelling works particularly well for this.</p><p>Furthermore, raise concerns over any potential breaches to the code to relevant authorities and management, usually the line manager of any person possibly involved in a breach.</p><h3><strong>Look before you leap</strong></h3><blockquote>Decide the right tools and metrics that are needed for implementation before it is too late.</blockquote><p>Data scientists typically rely on a bunch of tools such as coding languages, modeling tools, and other BI tools, to conclude a project to completion. Hence determining the tools that go best with the team’s strategy is pertinent. Planning includes deciding the right infrastructure needed that will fit the strategy. Depending on the dataset’s velocity and volume you will need to scale the data storage space and its computational power. Moreover, based on the team’s skillset you will have to decide on the right tools for coding and modeling. This is integral because if the team is not using the right tools it can cause operational and overhead costs and, create unoptimized products.</p><p>In terms of metrics, select the right key performing metrics that tie in with the business goals and establish the Proof of concepts and Minimum Viable Model.</p><h3><strong>Keep it simple stupid</strong></h3><blockquote>Don’t overcomplicate things in your models and keep your code and jupyter notebook simple.</blockquote><p>Things can get out of hand quickly if things are not simple enough to be understood by everyone on the team. Hence, try to keep things as simple as possible. Suppose for a particular dataset the results can be achieved using a regression model then you don’t have to overcomplicate things by using intricate modeling like a neural network. Moreover, follow best software engineering practices, so that the project is reproducible by anyone. Don’t copy-paste code from other sources as it may create monolithic code that may break.</p><h3><strong>Beware of Pinnochio</strong></h3><blockquote>Never present any misleading results.</blockquote><p>Effectively communicate the results to your stakeholders. This is a concern because making decisions and policies based on weak and uncertain evidence can harm the decisions that may impact business or policies in abundance. Communicate all the procedures employed to make the original data more adequate for the specific problem, especially techniques intended to correct gaps in the data, to balance classification problems, e.g. Interpolation, extrapolation, oversampling, and under-sampling. Avoid cherry-picking the results produced while conveying that might result in fraud, and provide proper evidence to support your claims. Perform experiments to test your hypothesis and deduce the meaning of data and relationships carefully.</p><h3><strong>Write Your Recipe</strong></h3><blockquote>Documenting each and every step along the data science value chain.</blockquote><p>Effective and elaborate documentation is an important part that helps teams in collaborating without any miscommunication, scale, and extent the project effectively, and get the specifications right.</p><p>As a data scientist, you should document all the steps — data curation, data collection process, model selection process, the procedure to perform hyperparameter tuning, the procedure to test the model, results, and the strategy to industrialize the model. Explain all the “why’s” in your works and how did you achieve them. Apart from this log your code as it will help in keeping track of code by adding a timestamp to each record.</p><p>I hope that by following these best practices, you will be able to become a better data scientist.</p><h3>References</h3><ul><li>Eduardo Blancas, The Data Science Checklist: Best Practices for Maintainable Data Science Projects [2022], <a href="https://ploomber.io/blog/checklist/">https://ploomber.io/blog/checklist/</a></li><li><a href="https://www.dataversity.net/author/paramita-ghosh/"><strong>Paramita (Guha) Ghosh</strong></a>, Data Science Best Practices [2022], <a href="https://www.dataversity.net/data-science-best-practices/">https://www.dataversity.net/data-science-best-practices/</a></li><li><a href="https://medium.com/@sarette77?source=post_page-----d5f4e0525d9f--------------------------------">Dr. Susara van den Heever</a>, 10 Best Practices for Data Science with Impact [2019], <a href="https://towardsdatascience.com/10-best-practices-for-data-science-with-impact-d5f4e0525d9f">https://towardsdatascience.com/10-best-practices-for-data-science-with-impact-d5f4e0525d9f</a></li><li>Data Science Association, DATA SCIENCE CODE OF PROFESSIONAL CONDUCT, <a href="https://www.datascienceassn.org/code-of-conduct.html">https://www.datascienceassn.org/code-of-conduct.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c52da84360c" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/professionalism-in-data-science-1c52da84360c">Professionalism in Data Science</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to write a good Readme for your Data Science project on GitHub]]></title>
            <link>https://medium.datadriveninvestor.com/how-to-write-a-good-readme-for-your-data-science-project-on-github-ebb023d4a50e?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebb023d4a50e</guid>
            <category><![CDATA[readme]]></category>
            <category><![CDATA[github-readme]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[documentation]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Tue, 07 Mar 2023 22:38:03 GMT</pubDate>
            <atom:updated>2023-03-15T07:39:16.164Z</atom:updated>
            <content:encoded><![CDATA[<h4>A guide to effective documentation practices</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fAuyZgRoZ5utE77J" /><figcaption>Photo by <a href="https://unsplash.com/es/@sigmund?utm_source=medium&amp;utm_medium=referral">Sigmund</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a data scientist, reproducing and building upon another data scientist’s project can be challenging and is highly prone to errors. Therefore, it is essential to cater to the reproducibility aspect of your project by providing a good README file. A README file is a document that provides information about your project, such as how to set it up, what it aims to achieve, and what data sources it uses.</p><p>Writing a good README for a data science project on GitHub is essential as it helps others understand your project, replicate your results, and contribute to your work.</p><p>Following good and effective documentation practices is critical to your work. Hence, here are some tips for writing a good README —</p><h3>Provide a brief description of the project</h3><p>Start by providing a brief overview of the project, what it is about, and what it aims to achieve. This will help readers quickly understand what the project is all about.</p><h3>Installation instructions</h3><p>Provide detailed instructions on how to set up the project on a local machine. This includes any necessary dependencies, software requirements, and installation steps. Make sure to include clear and concise instructions so that others can easily replicate your setup.</p><h3>Data sources</h3><p>List all the data sources used in the project, including links to the original data, descriptions of the data, and any pre-processing steps that were taken.</p><h3>Code structure</h3><p>Explain the code structure and how it is organized, including any significant files and their purposes. This will help others understand how to navigate your project and find specific components.</p><h3>Results and evaluation</h3><p>Provide an overview of the results of your project, including any relevant metrics and graphs. Include explanations of any evaluation methodologies and how they were used to assess the quality of the model. You can also make it appealing by including any pictures of your analysis or visualizations.</p><h3>Future work</h3><p>Outline potential future work that can be done to extend the project or improve its functionality. This will help others understand the scope of your project and identify areas where they can contribute.</p><h3>Acknowledgments/References</h3><p>Acknowledge any contributors, data sources, or other relevant parties who have contributed to the project. This is an excellent way to show your appreciation for those who have helped you along the way.</p><h3>License</h3><p>Specify the license under which your code is released. Moreover, provide the licenses associated with the dataset you are using. This is important for others to know if they want to use or contribute to your project.</p><p>Here’s an example of how I write a ReadMe for a data science project’s GitHub repository.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/39614b507d7258d1102fab2edccf9f9d/href">https://medium.com/media/39614b507d7258d1102fab2edccf9f9d/href</a></iframe><p>Remember that the README is often the first thing that potential contributors will see when they visit your GitHub repository. Make sure it is clear, concise, and easy to understand. By following these tips, you can ensure that your project is reproducible and accessible to others.</p><p>Here’s the GitHub Link for the same —</p><p><a href="https://github.com/pragyy/datascience-readme-template">GitHub - pragyy/datascience-readme-template: A guide to writing an amazing readme for your data science project.</a></p><p>Subscribe to DDIntel <a href="https://ddintel.datadriveninvestor.com/">Here</a>.</p><p>Visit our website here: <a href="https://www.datadriveninvestor.com/">https://www.datadriveninvestor.com</a></p><p>Join our network here: <a href="https://datadriveninvestor.com/collaborate">https://datadriveninvestor.com/collaborate</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebb023d4a50e" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/how-to-write-a-good-readme-for-your-data-science-project-on-github-ebb023d4a50e">How to write a good Readme for your Data Science project on GitHub</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Static Visualization Critique]]></title>
            <link>https://vermapragya.medium.com/static-visualization-critique-f319492d57ed?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f319492d57ed</guid>
            <category><![CDATA[critique]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[dataviz]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Sat, 08 Oct 2022 12:01:48 GMT</pubDate>
            <atom:updated>2022-10-08T12:01:48.394Z</atom:updated>
            <content:encoded><![CDATA[<h4>Data Visualization Criticism…</h4><p>In this blog, I will critique a static data visualization in detail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bd3PT23W9PL2dlqdzOOqxw.png" /><figcaption>Figure 1 — Network graph depicting Wine features</figcaption></figure><p>The goal of the network graph as shown in Figure 1 is to determine the correlation between the frequent adjectives used by the sommeliers.</p><p>This visualization shows the words and phrases used to describe red and white wines and the words used to describe tannins, acidity, and much more. These words are mapped to determine whether they are related strongly or weakly. Furthermore, the visualization depicts the average wine ratings for the corresponding terminology.</p><p>This visualization can be utilized by oenophiles to best describe the wine. They can use this visualization to discover particular words other connoisseurs use. It can also help them in determining whether the words are interchangeable or not when describing wine, and even to ascertain if the words are used correctly or not while describing.</p><p>This visualization depicts three data variables average rating, word count, and correlation, and the encodings used are hue, area, and connectivity respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*jW7px1u62xPT9xRJsFp2xA.png" /><figcaption>Figure 2 — Cluster for Fruit-related data points</figcaption></figure><p>The visualization made by the author is simple and comprehensible. Anyone who will have a quick look at it can understand it quite easily without much effort and time. Labels are placed carefully in the network to avoid hotchpotch. Moreover, the data points are placed in organized clusters as shown in Figure 2 the top left corner comprises adjectives pertaining to the fruity flavors. The data points taken from the bottom right as shown in Figure 3 have words related to earth and herbs. Moreover, the data points that have no relationship to other words are thoughtfully placed in the boundary of the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*IwInly8zTSrtZrOvIXgRcA.png" /><figcaption>Figure 3 — Cluster for Earth-related data points</figcaption></figure><p>The colors used in this visualization chart are indistinguishable. It uses a dichromatic color palette making color shades difficult to differentiate thus, requiring extreme cognitive efforts. Further, the circle size uses the area encodings making it a game of guesstimate to determine the actual value. With this encoding, we can only ascertain a range of values that each point can have based on the legend. Apart from this, the weak links depicted in the graph are not recognizable enough making it difficult for the user.</p><p>To better improve this visualization the author can use a different color scheme so that all points are a bit distinguishable. The color used to represent the weak can be a bit darker as the lighter shade merges with the background. Instead of using the area for the number of occurrences, the author could have used the different shapes to depict 4 different occurrences. Moreover, the author could have included the most words used by connoisseurs using a horizontal bar chart at the bottom that could tell us any particular phrases that they prefer.</p><p>Even with obstacles, the network graph highlights the most used words and their synonyms which was the main purpose of the visualization.</p><p>I like this particular visualization because when I came across this dataset I was not able to properly convey the right information from it (shown in figure 2). The author has imported an extra dataset that includes the most used adjectives of wine (shown in figure 3). Then he obtained these adjectives used in the wine description column of the dataset and mapped them to the average ratings of wine as well. After having dabbed with this dataset I can say that this is the best visualization to represent the wine description column. This dataset was challenging and I couldn’t find a better way to envision it. However, the author has omitted other columns like region and price. The author could have included that as well to better understand the type of wine belonging to a particular region.</p><p>The visualization is by Dr. Torsten Sprenger — <a href="https://github.com/spren9er/tidytuesday/blob/master/images/tidytuesday_201922_wine_ratings_most_frequent_words.png"><em>https://github.com/spren9er/tidytuesday/blob/master/images/tidytuesday_201922_wine_ratings_most_frequent_words. png, 2019.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f319492d57ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Visualization Critique]]></title>
            <link>https://vermapragya.medium.com/dynamic-visualization-critique-ecc5ce460cfa?source=rss-fe546559539d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecc5ce460cfa</guid>
            <category><![CDATA[critique]]></category>
            <category><![CDATA[dataviz]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Pragya Verma]]></dc:creator>
            <pubDate>Sat, 01 Oct 2022 12:02:24 GMT</pubDate>
            <atom:updated>2022-10-01T12:02:24.704Z</atom:updated>
            <content:encoded><![CDATA[<h4>Data Visualization Criticism…</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yovAuTRQ-oRAC7hW" /><figcaption>Photo by <a href="https://unsplash.com/@aditya_ali?utm_source=medium&amp;utm_medium=referral">Aditya Ali</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Dance needs music to set the mood, drop the beat, and create the motivation needed to start moving. I have been dancing since my childhood days, and music plays a crucial role in it. Music makes me feel a certain way, which is why for me it had a significant contribution. Different dance styles require diverse music; upbeat music with high beats per minute and energy is suitable for dance styles such as hip-hop and jazz, whereas dance forms like contemporary, ballet, lyrical, and waltz favor slower songs. The genre I fancy dancing to is hip-hop and it is unquestionably the most popular soundtrack. This is the reason why I have chosen the visualization of the most successful hip-hop music labels since 1989.</p><p>The visualization can be found here:</p><p><a href="https://pudding.cool/2017/03/labels/">Every hip hop record label, since 1989, sorted by their artists&#39; chart performance on Billboard</a></p><p>The author is uncovering the music labels in the world of hip-hop music. The visualization is performed on above 600 hip-hop music labels over the past 25 years which have made it to the Billboard chart. Major rise and fall are highlighted by understanding the labels that produced the most hits at any given time, further elucidating who was wielding enormous influence on hip-hop’s sound, distribution, and direction. A few of the labels under consideration are Jive, Delicious Vinyl, Luke, and many more established in the most prominent regions of the United States like New York, Los Angeles, Miami, and so on.</p><p>Here the music labels are ranked and sorted by the artist’s performance illustrating the number of artists and tracks along with a graph charting the weeks over these 25 years. Moreover, the list can be modified by the use of filters, and with these filters, I was able to twiddle and interpret the information based on year, region, and artists. Furthermore, it is smart to represent music labels as spheres charted on the map of the United States, where the circle size indicates billboard performance. On hovering over these circles it shows the most popular song in the year recorded by the label and other artists’ names who worked with these labels. Moreover, the user can listen to a hit song produced by the label in the year taken into consideration. Additionally, by pressing the play button at the bottom of the map, I was able to scan the map over the years one by one. The performances are also compared and analyzed for the years 1989, 1977, and 2010–15. Thus the visualization over the years makes it straightforward to infer and draw conclusions about how music labels depend on hip-hop music and how the music and artists affect the role of labels in the music industry.</p><p>In my opinion, to understand how the record labels are dependent on artists and music’s popularity, a correlogram graph for 25 years can be created. Using this, the relationship between the label’s ranks with the number of tracks released and the number of artists signed contracts with these labels can be determined as these factors also play a vital role. This graph will give us a numerical value to compare and infer which factors contribute more to the success of record labels.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecc5ce460cfa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>