<?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 Ananya Mittal on Medium]]></title>
        <description><![CDATA[Stories by Ananya Mittal on Medium]]></description>
        <link>https://medium.com/@am12523?source=rss-fe75cb0fb290------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*R3soNqNQcGaX6Jplu7874A.png</url>
            <title>Stories by Ananya Mittal on Medium</title>
            <link>https://medium.com/@am12523?source=rss-fe75cb0fb290------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:44:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@am12523/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[Everyone’s Spending on AI. Almost Nobody Can Prove It’s Working.]]></title>
            <link>https://medium.com/@am12523/everyones-spending-on-ai-almost-nobody-can-prove-it-s-working-b6d4dab48d36?source=rss-fe75cb0fb290------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6d4dab48d36</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[spacex]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ananya Mittal]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 10:31:00 GMT</pubDate>
            <atom:updated>2026-07-07T10:31:00.845Z</atom:updated>
            <content:encoded><![CDATA[<h4>The biggest technology bet in history has almost no proof it’s working. Here’s why the world’s largest companies can’t afford to stop.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kn30_BtZ46T_WkVr" /><figcaption>Photo by <a href="https://unsplash.com/@jakubzerdzicki?utm_source=medium&amp;utm_medium=referral">Jakub Żerdzicki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>On June 12, 2026, SpaceX debuted the largest IPO in history, listing on the Nasdaq at an implied valuation of <a href="https://www.forbes.com/sites/tylerroush/2026/06/18/spacex-stock-plunge-wipes-out-600-billion-after-cursor-deal-spooks-investors/">$1.77 trillion</a>. For about 48 hours, the stock surged past <a href="https://www.forbes.com/sites/tylerroush/2026/06/18/spacex-stock-plunge-wipes-out-600-billion-after-cursor-deal-spooks-investors/">$225</a>, briefly making SpaceX the fourth-most-valuable company on the planet, ahead of Amazon and Microsoft. Investors were euphoric. Elon Musk’s rocket company had finally opened its doors to public markets, and the world was rushing in.</p><p>Then, on Tuesday evening, SpaceX disclosed something else: it had entered a formal agreement to acquire Cursor, the AI-powered code editor, for <a href="https://www.cnbc.com/2026/06/16/spacex-spcx-cursor-acquisition-ipo.html">$60 billion</a> in stock, representing roughly 3.4% dilution of SpaceX’s IPO valuation. That single announcement changed the mood entirely. By Thursday afternoon, SpaceX shares had slumped more than 20% from their peak, erasing roughly <a href="https://www.forbes.com/sites/tylerroush/2026/06/18/spacex-stock-plunge-wipes-out-600-billion-after-cursor-deal-spooks-investors/">$620 billion</a> in market value, and dropping the company from the world’s fourth-largest to its seventh, slipping behind №6 TSMC at $2.38 trillion.</p><p>Now, Cursor is one of the most influential AI coding tools reshaping how millions of developers are writing software. SpaceX is a dominant force with a near-monopoly on orbital launches and a satellite internet business, Starlink, that generated over $11 billion in revenue last year, or <a href="https://www.nytimes.com/2026/06/08/opinion/spacex-ipo-stock-market.html">61%</a> of SpaceX’s total sales. On paper, the deal made strategic sense. But investors weren’t evaluating it on paper, they were evaluating it against a fear that had been building for months: <em>what if all this AI spending never pays off?</em></p><p>The reaction was swift. Morningstar analysts lowered SpaceX’s fair value estimate to $62 from $63, citing <a href="https://www.forbes.com/sites/tylerroush/2026/06/18/spacex-stock-plunge-wipes-out-600-billion-after-cursor-deal-spooks-investors/">“sizable dilution.”</a> Susquehanna started coverage with a “<a href="https://www.investopedia.com/spacex-faces-post-ipo-volatility-yet-wall-street-predicts-significant-stock-price-gains-spcx-ipo-elon-musk-12010674">Neutral</a>” rating, warning that the stock required aggressive growth assumptions in markets that were “relatively unproven.” Meanwhile, Dan Ives and his team at Wedbush captured the overarching risk neatly:<a href="https://www.investopedia.com/spacex-faces-post-ipo-volatility-yet-wall-street-predicts-significant-stock-price-gains-spcx-ipo-elon-musk-12010674"> “Cash burn means the thesis can expire.”</a></p><p>The polite Wall Street way of saying: <em>we have no idea if this works.</em></p><h4>The Month That Broke the Spell</h4><p>SpaceX wasn’t alone. Something much bigger was happening in June 2026 and the Cursor deal was just the most dramatic surface symptom.</p><p>The Magnificent Seven (Alphabet, Amazon, Apple, Meta, Microsoft, Nvidia, and Tesla) lost a combined <a href="https://www.moneycontrol.com/news/business/markets/big-tech-loses-2-3-trillion-in-june-as-investors-ask-where-are-ai-returns-13963735.html">$2.3 trillion</a> in market value over the course of the month. Microsoft had its worst stretch in years, falling around 18% in June. Meta dropped after raising its 2026 AI spending plans to as much as $145 billion. Even Nvidia, which had just reported $81.6 billion in quarterly revenue, slid about <a href="https://www.indmoney.com/blog/us-stocks/ai-stocks-funders-vs-collectors-ai-trade-split">13%</a>.</p><p>Here’s what makes this unusual: this was not a broad tech selloff. It was a targeted reassessment. While the Magnificent Seven bled, ASML hit an all-time high. SK Hynix was up 15%. TSMC climbed 12%. Micron rose 13%. The VanEck Semiconductor ETF was up roughly 64% for the <a href="https://www.indmoney.com/blog/us-stocks/ai-stocks-funders-vs-collectors-ai-trade-split">year</a>.</p><p>Same macro environment. Same AI narrative. Completely opposite market outcomes.</p><p>The market, it seems, had finally started separating the companies spending money on AI from the companies collecting it. And it was making a very clear statement about which side it trusted more.</p><h4>Funders vs. Collectors: The AI Gold Rush, Reframed</h4><p>There’s a useful historical template for what’s happening according to <a href="https://www.indmoney.com/blog/us-stocks/ai-stocks-funders-vs-collectors-ai-trade-split">Bihani</a>. During the California Gold Rush, most prospectors went broke. The people who built real wealth, like Levi Strauss selling dry goods and Sam Brannan reselling mining equipment at steep markups, never mined an ounce of gold. They just needed miners to keep showing up.</p><p>Today’s miners are the hyperscalers. Amazon, Microsoft, Alphabet, and Meta plan to spend a combined <a href="https://www.indmoney.com/blog/us-stocks/ai-stocks-funders-vs-collectors-ai-trade-split">$725 billion</a> on capex in 2026 alone by building data centers, securing power, and acquiring power. On the other hand are the merchants, the suppliers: Nvidia, TSMC, SK Hynix, Broadcom, ASML. Their revenue rises in direct proportion to what the Funders spend. They don’t need AI to work for their customers. They just need their customers to keep ordering. And with Goldman Sachs projecting hyperscaler capex could hit <a href="https://www.indmoney.com/blog/us-stocks/ai-stocks-funders-vs-collectors-ai-trade-split">$1.1 to $1.4 trillion</a> by 2027, that’s a lot of picks and shovels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*6fHgGboGgvMiJjt7KMj8AA.png" /><figcaption>Source: <a href="https://www.goldmansachs.com/insights/articles/tracking-trillions-the-assumptions-shaping-scale-of-the-ai-build-out">Goldman Sachs</a> projections (as of March 2026) via <a href="https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boom-explained-with-six-charts">The Guardian.</a></figcaption></figure><p>Stepping back, my biggest takeaway from this divergence is that the market is actually rewarding the right thing for once: the Collectors are being rewarded because their revenue is real and reported. Nvidia’s data center revenue was up <a href="https://www.indmoney.com/blog/us-stocks/ai-stocks-funders-vs-collectors-ai-trade-split">92%</a> year-over-year. TSMC guided above <a href="https://www.indmoney.com/blog/us-stocks/ai-stocks-funders-vs-collectors-ai-trade-split">30%</a> revenue growth for the full year. These aren’t just promises, they’re receipts. The Funders, meanwhile, are asking investors to take it on faith that somewhere, eventually, all this spending will turn into something more than a very expensive electricity bill. The only Funder that escaped June unscathed was Alphabet, and only because it showed up with a cloud backlog of approximately <a href="https://www.indmoney.com/blog/us-stocks/ai-stocks-funders-vs-collectors-ai-trade-split">$460 billion</a>, nearly double the prior quarter. It had receipts too. The others had plans.</p><h4>The ROI Gap Nobody Wants to Talk About</h4><p>Here’s where the story gets uncomfortable. The market’s skepticism isn’t unfounded. The data on AI returns is, at this point, genuinely sobering.</p><p><a href="https://www.deloitte.com/nl/en/issues/generative-ai/ai-roi-the-paradox-of-rising-investment-and-elusive-returns.html">Deloitte’s 2025 survey</a> of 1,854 executives across Europe and the Middle East found that most respondents reported achieving satisfactory ROI on a typical AI use case within two to four years. That’s significantly longer than the typical seven-to-twelve-month payback period expected for technology investments. Only 6% reported payback in under a year, and even among the most successful projects, just 13% saw returns within 12 months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EexFQPemE3w76X-QIndREw.png" /><figcaption>Source:<a href="https://www.deloitte.com/nl/en/issues/generative-ai/ai-roi-the-paradox-of-rising-investment-and-elusive-returns.html"> Deloitte analysis, 2025</a></figcaption></figure><p>A summer 2025 MIT report found that <a href="https://www.ibm.com/think/insights/ai-roi">95%</a> of generative AI pilots were failing. An <a href="https://www.ibm.com/think/insights/ai-roi">IBM CEO study</a> found that only around 25% of AI initiatives deliver their expected ROI, while just 16% have scaled enterprise-wide. Furthermore, only 29% of executives could confidently measure their AI ROI, despite 79% reporting productivity gains. That gap is becoming the defining tension of the current AI moment, and the stakes are only rising. A former Prudential executive told a room full of banking leaders at the Asian Banking &amp; Finance Summit in Singapore that <a href="https://asianbankingandfinance.net/event-news/ai-governance-failures-threaten-banks-returns">95%</a> of GenAI spend had produced no business outcome. Meanwhile, <a href="https://hbr.org/2026/03/7-factors-that-drive-returns-on-ai-investments-according-to-a-new-survey">71% </a>of global CIOs in a recent HBR cited survey said their AI budgets would be frozen or cut if value couldn’t be demonstrated within two years. The patience clock is ticking.</p><p>What strikes me most about these numbers is not that they’re bad, it’s that they’re predictable. We’ve seen this movie before with every major technology transition. As<a href="https://www.deloitte.com/nl/en/issues/generative-ai/ai-roi-the-paradox-of-rising-investment-and-elusive-returns.html"> Deloitte noted</a>, when factories switched from steam power to electricity in the early 20th century, the productivity gains didn’t show up for decades, because companies initially just swapped out steam engines for electric motors without changing the underlying workflow. The real gains came only when they redesigned the entire factory floor. The same pattern is playing out with AI, and the data confirms it.</p><h4>The Wrong Layer Problem</h4><p>Here’s something that almost never comes up in today’s breathless AI discourse: most organizations are investing in this technology at the wrong level.</p><p>The World Economic Forum published an <a href="https://www.weforum.org/stories/2026/06/ai-investment-surge-results-yet/">article</a> in June 2026 that framed the problem with considerable clarity. Most enterprise AI to date has operated at the level of the individual, be it tools that make an employee faster or a copilot sitting alongside someone doing a job. But the value of AI in large organizations doesn’t accumulate in individual tasks. It’s in the processes that connect them. And those processes have barely been touched. In fact , a PwC study showed that <a href="https://www.weforum.org/stories/2026/06/ai-investment-surge-results-yet/">74%</a> of AI’s economic value is captured by just 20% of organizations, suggesting the majority are leaving most of the value on the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hab9k-WU1EhQ63EyExixjw.png" /><figcaption>Source:<a href="https://www.deloitte.com/nl/en/issues/generative-ai/ai-roi-the-paradox-of-rising-investment-and-elusive-returns.html"> Deloitte analysis, 2025</a></figcaption></figure><p>Look at the data: 48% of organizations use AI tools to support employees and streamline workflows. Another 27% use it to automate simple, rule-based tasks. Only 7% are using advanced agentic AI to redesign entire business processes. The vast majority are giving individual workers slightly faster hammers. Almost nobody is redesigning the house.</p><p>A <a href="https://www.weforum.org/stories/2026/06/ai-investment-surge-results-yet/">McKinsey analysis from 2023</a> identified operations, supply chain, and risk management as the largest untapped AI value pools in the economy. They were also, by a wide margin, the least touched by current deployments. Three years later, they still are. As the WEF put it: a copilot that makes one analyst in a month-long workflow 20% faster doesn’t compress the workflow, it just relocates the bottleneck.</p><p>And the agentic AI wave that’s supposed to fix this? It’s early. Only 10% of surveyed organizations said they are currently realising significant ROI from agentic AI. The <a href="https://www.deloitte.com/nl/en/issues/generative-ai/ai-roi-the-paradox-of-rising-investment-and-elusive-returns.html">2026 Gartner Hype Cycle</a> shows that only 17% of organizations have deployed AI agents to date, though more than 60% expect to do so within the next two years, the most aggressive adoption curve of any emerging technology in Gartner’s survey.</p><p>This may prove to be the important insight in this entire AI returns debate: the technology isn’t failing. The deployment strategy is. Companies are spending millions to make individuals slightly more efficient at tasks that are embedded in processes that haven’t changed in thirty years. It’s like putting a turbocharger on a car that’s stuck in traffic. The engine isn’t the bottleneck, the road is. As ING’s Anand Sachdev put it at the <a href="https://asianbankingandfinance.net/event-news/ai-governance-failures-threaten-banks-returns">Singapore summit</a>: applying AI to inefficient or broken processes won’t fix them, it can actually make things worse.</p><h4>So Why Does Everyone Keep Spending?</h4><p>If the ROI story is this grim, why isn’t anyone pumping the brakes? In fact, Global AI spending reached $235 billion in 2024 and is forecast to more than double by 2028, according to <a href="https://www.weforum.org/stories/2026/06/ai-investment-surge-results-yet/">IDC</a>. Furthermore, <a href="https://www.deloitte.com/nl/en/issues/generative-ai/ai-roi-the-paradox-of-rising-investment-and-elusive-returns.html">Deloitte</a> found that 85% of organizations increased their AI investment in the past 12 months, and 91% plan to increase it again this year, with even more organizations increasing investment by more than 11%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lE1OHJlmqvJQowdPgZZEw.png" /><figcaption>Source:<a href="https://www.deloitte.com/nl/en/issues/generative-ai/ai-roi-the-paradox-of-rising-investment-and-elusive-returns.html"> Deloitte analysis, 2025</a></figcaption></figure><p>The answer is part rational strategy and part pure fear. In <a href="https://www.deloitte.com/nl/en/issues/generative-ai/ai-roi-the-paradox-of-rising-investment-and-elusive-returns.html">Deloitte’s interviews</a>, executives kept returning to variations of the same phrase: “If we do not do it, someone else will — and we will be behind.” A telecom executive was the most honest: “Everyone is asking their organisation to adopt AI, even if they don’t know what the output is.”</p><p>This is classic <a href="https://www.pwmnet.com/content/c2be8498-d4d3-41cd-9e7d-f38aff32ffad">Minsky-cycle</a> thinking. The economist Hyman Minsky warned that stability breeds confidence, confidence becomes optimism, and unchecked optimism leads to recklessness. AI’s ecosystem has developed a circularity that should make anyone nervous: chipmakers sell to cloud providers, cloud providers host startups, startups justify valuations through spending on those same cloud platforms. Revenues can appear robust until you ask where the end customer sits. At some point, demand has to come from outside the loop.</p><p>But there’s also a legitimate case for continued investment. AI capabilities are advancing at a staggering pace. According to <a href="https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boom-explained-with-six-charts">METR</a>, a research organization that measures AI capabilities on coding tasks, AI models are doubling in capability every four months. Anthropic’s Claude Mythos model can now achieve a 50% success rate on tasks that would take a human expert between eight hours and two days. And the adoption is real. <a href="https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boom-explained-with-six-charts">McKinsey</a> reports that nearly 80% of companies are now using AI in at least one business function, up from 33% in 2023.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*De13mPdFBanokEYyUI2vOA.png" /><figcaption>Source: <a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">McKinsey Global Surveys</a> via <a href="https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boom-explained-with-six-charts">The Guardian.</a></figcaption></figure><h4>What the Winners Actually Do Differently</h4><p>If the problem isn’t the technology but the way it’s being deployed, then the obvious question is: what are the companies generating real returns doing differently? Deloitte’s research offers one of the clearest answers. They constructed an<a href="https://www.deloitte.com/nl/en/issues/generative-ai/ai-roi-the-paradox-of-rising-investment-and-elusive-returns.html"> “AI ROI Performance Index”</a> combining direct financial return, revenue growth, cost savings, and speed of results, then isolated the top 20%, or “The AI ROI Leaders.” These organizations share six practices that set them apart.</p><p>First, they treat AI as a <em>business model transformation</em>, not an efficiency tool. 50% defined their most critical AI wins in terms of revenue growth opportunities and 43% pointed to business model reimagination. Second, they <em>fund AI</em> seriously: 95% allocate more than 10% of their technology budget to AI. Third, they take a <em>human-centered approach</em>, with 84% believing agentic AI will enable employees to spend more time on strategic and creative tasks. In fact, another <a href="https://particle.news/share/Q_FQB">study by Ramp and Revelio Labs</a> found that the most intense AI adopters, companies spending around $34 per employee per month on AI, increased their headcount by about 10.2% in the two years since they rolled out the technology internally, with entry-level hiring growing even faster at 12%.</p><p>Fourth, they <em>elevate ownership</em> with 62% of organizations incorporating AI explicitly as part of their corporate strategy. Fifth, they <em>measure ROI differently</em>, where 86% explicitly using different frameworks or timeframes for generative versus agentic AI. And finally, they mandate <em>AI fluency</em>, with 40% requiring AI training across the organization.</p><p>The pattern is clear: the companies getting returns from AI are the ones treating it as a fundamental organizational transformation, not just a plugin. They’re redesigning workflows, retraining people, and rethinking what their business actually does, instead of merely bolting a new tool onto old processes.</p><h4>The Question That Actually Matters</h4><p>So where does this leave us?</p><p>The AI revolution is real. The capabilities are advancing at a rate that would have seemed absurd five years ago. Adoption is accelerating across every sector and geography. Global AI capital expenditure will approach <a href="https://www.pwmnet.com/content/c2be8498-d4d3-41cd-9e7d-f38aff32ffad">$750 billion</a> this year, with Goldman Sachs projecting <a href="https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boom-explained-with-six-charts">$1.6 trillion</a> by 2031. Data centers already account for a disproportionate share of US GDP growth — a Harvard economist calculated that AI-related investment accounted for <a href="https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boom-explained-with-six-charts">92%</a> of America’s GDP growth in the first half of 2025 in addition to 41 AI-related stocks now accounting for nearly half the S&amp;P 500’s market value, according to <a href="https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boom-explained-with-six-charts">Bianco Research.</a></p><p>But revolutions guarantee disruption, not returns. As<a href="https://www.pwmnet.com/content/c2be8498-d4d3-41cd-9e7d-f38aff32ffad"> Michael Strobaek wrote</a>, England’s railway boom built much of today’s network but ruined many of its backers. Only three out of nearly 2,000 American carmakers survived. Technological change can be radical while still wasting enormous amounts of capital.</p><p>Jensen Huang, Nvidia’s CEO, offered a different perspective at<a href="https://www.ibm.com/think/insights/ai-roi"> Cisco’s AI Summit in February</a>. He compared forcing engineers to justify AI work with hard ROI upfront to asking a child to make a business plan for a hobby. “Let a thousand flowers bloom,” he said, encouraging broad experimentation rather than rigid ROI filtering. Easy advice when you’re selling the shovels. Most companies don’t have the luxury of fumbling with hundreds of billions. The real answer is probably more boring: invest seriously, but at the process level. Redesign workflows, don’t just accelerate them. Measure returns with nuance, recognizing that not all returns are immediate or financial. And accept that being early to a revolution usually means paying a premium, not just for the technology itself, but for the lessons that come with it</p><p>The investors who sold SpaceX after the Cursor deal weren’t questioning AI’s potential. They were saying: show us the receipts. That’s not panic. That’s discipline, something that this revolution might need most right now.</p><p>After all, the gold is probably in the ground. But not everyone who digs will find it. And the smart money, as always, is selling the shovels.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6d4dab48d36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mapping wealth diversity across HDI Tiers]]></title>
            <link>https://medium.com/nyu-ds-review/mapping-wealth-diversity-across-hdi-tiers-5f093af812c4?source=rss-fe75cb0fb290------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f093af812c4</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[financial-inclusion]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[applied-data-science]]></category>
            <dc:creator><![CDATA[Ananya Mittal]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 12:31:37 GMT</pubDate>
            <atom:updated>2024-10-01T12:31:37.760Z</atom:updated>
            <content:encoded><![CDATA[<h4>Explore global wealth diversity in this latest study that maps financial inclusion parameters across countries with varying HDI rankings. From gender disparities to borrowing behaviours, discover key insights to unlock the full potential of data-driven actionable solutions to bridge wealth gaps, drive financial equity, and boost economic growth and security worldwide.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9j4TnFzjzL-sHNYC" /><figcaption>Photo by <a href="https://unsplash.com/@agent_illustrateur?utm_source=medium&amp;utm_medium=referral">Christine Roy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Gender and income inequality are well-recognised issues that countries around the world have taken big strides to overcome.<em> </em>Some of the most successful measures include programs providing universal free healthcare in Rwanda and Thailand, the creation of state-savings accounts for the youth in South Korea, or the implementation of housing policies in New Zealand among others. [1]<em> </em>On the other hand, some measures have been less effective. China passed an amendment to the Women’s Rights and Interests Protection Law in 2022 to eradicate gender-based discrimination in the workplace. However, the lack of regulatory power and shortage of childcare and eldercare resources prevents it from truly reaching the success it aims to achieve. [2] Vietnam faces a similar issue, where the provisions of its Law on Gender Equality do not yet consider indirect discrimination and have considerable gaps with current laws on social insurance, marriage and family, and prevention and control of domestic violence. [3]</p><p>Such pitfalls highlight the need to understand the issues and situations that underrepresented groups face so that policy decisions can truly improve financial inclusion and achieve the desired effect. This led me to pursue an investigation into the financial status of different demographic groups who might have disparities in their income to understand gaps that future policies might target to further reduce wealth gap across nations.</p><p><strong>Methodology</strong></p><p>This study particularly focused on three factors that are generally said to influence income and wealth levels — gender, education and current financial status — for segregating the groups. Furthermore, 15 countries were chosen for the purpose of this research. These comprised 5 countries chosen randomly from each of the three HDI (Human Development Index) categories, namely, countries with Low HDI, Medium HDI, and Very High HDI, as ranked in the latest 2021–22 Human Development Report by UNDP (United Nations Development Programme). For reference, HDI is calculated as an aggregate of three indices: life expectancy at birth, average and expected years of schooling, and gross national income per capita.[4]</p><p>Data for the dependent variables was then extracted over three years (2014, 2017, 2021) from the Global Financial Inclusion Index from The World Bank, a report that develops the benchmark for financial inclusion and security across global economics. [5] The dependent variables were chosen from three categories: current financial status, access to financial instruments, and respondents’ opinions on their financial health. The following graphs were finally obtained by performing exploratory data analysis on the dataset and generating visualisations using Python, DTale, and Microsoft Excel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ecf17T57w_iJtqje" /><figcaption><em>Snippet of the raw data [5]</em></figcaption></figure><p><strong>Results and Analysis</strong></p><ol><li><em>Percentage of respondents who have an account</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OrNtJBEohUvlUlU1" /><figcaption><em>Comparing the percentage of respondents who have an account in different countries</em></figcaption></figure><p>Access to financial instruments, especially bank accounts, is a big indicator of the level of financial inclusion in a country. In the graph above, there are some relatively apparent trends that can be seen. First, we can see that, generally, countries that have a lower HDI rank have a lower percentage of respondents who have an account across all three categories, with a stark difference between Low HDI and Very High HDI ranked countries. These numbers also overall increase with time, with more respondents having an account in 2021 as compared to the previous years in most countries.</p><p>However, some interesting observations can also be made. We can see that Senegal and India made great strides in improving access to accounts between 2014 and 2017. This coincides with policy implementations such as the “Pradhan Mantri Jan Dhan Yojana” implemented by the Indian government on August 28, 2014, that aimed to provide no-frills, no-minimum-balance accounts to every adult in the country, including its large rural population. [6]</p><p><em>2. Percentage of respondents who received wages</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fKSdfLaQswN2Bkb-" /><figcaption><em>Comparing the percentage of respondents who received wages in different countries</em></figcaption></figure><p>As opposed to the steady increase seen in the percentage of respondents having accounts, the proportion of respondents who received wages fluctuated, with figures decreasing in 2021 presumably due to the Covid-19 pandemic. However, while this was true of most high HDI ranked countries like France, Switzerland, the U.K., and the U.S., South Korea still saw an increase in the number of respondents who received wages. This can be attributed to the fact that the country was able to avoid severe long-term restrictions, and in fact never imposed a full lockdown because of its highly effective containment strategy. [7] Hence, it fared better than most high-income countries and remained the least economically disrupted economy.</p><p>We can also observe instances of persistent gender inequality in several nations like Afghanistan, Iraq, and Pakistan. These countries have seen a higher percentage of their poorest 40% and those with secondary education or more receiving wages, with these numbers only increasing over the years. However, the proportion of women receiving wages has remained relatively low, with numbers remaining in the low 10% range over all the recorded years.</p><p><em>3. Ability to come up with emergency funds</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bR_lH-J6D9xdaMUu" /><figcaption><em>Mapping the ability of different demographic groups to come up with emergency funds in countries grouped by their HDI category</em></figcaption></figure><p>Some very apparent trends can be seen for this consideration as well. For example, we can observe that a greater proportion of respondents are confident that they can come up with emergency funds with little to no difficulty in higher HDI ranked countries, regardless of demography.</p><p>However, education seems to play an interesting and important role here in improving one’s ability to come up with emergency funds. We can see that over 10% more of respondents with secondary education or higher are able to come up with emergency funds in High HDI countries as compared to the other two categories. Additionally, while a greater proportion of women and the poorest 40% in Low HDI countries are unable to procure emergency funds, this number drastically reduces for the respondents with a higher level of education.</p><p><em>4. Most worrying financial issue</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a42X2qFoDtG-JgIL" /><figcaption><em>Juxtaposing the most worrying financial issue of different demographic groups in countries grouped by their HDI category</em></figcaption></figure><p>There are clear trends in what the respondents in different HDI ranked countries considered as the most worrying financial issue. While respondents in Medium and Low HDI countries were worried about more present medical and education costs, respondents in Very High HDI countries felt relatively more secure about their present financial status and were more worried about future funds for old age.</p><p>Demographically, however, we can see that while women and the poorest 40% were on similar terms about financial issues, the proportion of the population with secondary education or higher had different opinions in Low and Medium HDI countries. In Low HDI countries, this group placed greater importance on education fees than the other two groups, whereas in Medium HDI countries, more people in this group were worried about medical costs as compared to the other two groups.</p><p><em>5. Reasons for borrowing</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LSuOTbMSl1Gnt-qa" /><figcaption><em>Charting the reasons for borrowing for different demographic groups in countries grouped by their HDI category</em></figcaption></figure><p>The visualisation above shows that the biggest reason for borrowing in Low and Medium HDI countries has been for health and medical purposes which coincides with the fact that the most worrying financial issue in these countries has been medical costs as seen in the previous graph. We can also see that education plays an increasingly important reason for borrowing as we move from Low HDI countries to High HDI countries, with education or school fees being the biggest reason for borrowing for respondents in the latter.</p><p>An interesting observation to be made, however, is that respondents in Medium HDI ranked countries have the highest level of borrowing. Additionally, the least reported reason for borrowing across all respondents has been for entrepreneurial purposes, that is, to start, operate, or expand a farm or business. This indicates either a lack of demand for financial instruments catered for these purposes or a lack of availability of appropriate resources and means for the respondents to utilise.</p><p><strong>Challenges and Policy recommendations</strong></p><p>The visualisations obtained and observations made above highlight the need for appropriate action and policy implementations. For example, formal and informal financial instruments such as micro-insurance plans and health subsidies could alleviate worries about medical costs that were observed for respondents in Low and Medium HDI ranked countries. Additionally, after observing the potential impact that education has on the respondents’ ability to come up with emergency funds, it appears that education and training programs on saving plans could improve the citizens’ ability to come up with emergency funds. Finally, credit and other loan instruments need to be adjusted in order to encourage more entrepreneurship as a method of generating further revenue and boosting growth considering the fact that it’s the lowest consideration for borrowing across countries.</p><p>Hence, we’ve been able to obtain intriguing insights from the dataset that could have important implications for governments, private enterprises, and the population as a whole. However, the dataset was limited by the number of countries and considerations that were chosen for practical purposes, and hence provides only a partial view of the whole picture. Furthermore, there was missing data that had to be accounted for while generating the visualisations, further limiting our understanding of the dataset.</p><p>Regardless, this study highlights the importance of using data-driven approaches to understand the predicament of different populations in different economies. Such insights help policymakers understand the specific financial and social challenges faced by diverse populations and allows for more targeted policy interventions to address these problems. This can help nations implement effective measures to combat issues such as gender and income inequality and create a more equitable and progressive world for people from all strata of society.</p><p><strong>References</strong></p><p>[1] NYU Center on International Cooperation, <a href="https://www.nyu.edu/about/news-publications/news/2023/july/nyu-s-center-on-international-cooperation-launches-online-reposi.html">NYU’s Center on International Cooperation Launches Online Repository Showcasing Policies Tackling Inequality</a>, 2023</p><p>[2] Stella Chen, <a href="https://www.scmp.com/news/china/politics/article/3198255/will-chinas-updated-womens-rights-law-actually-help-women">Will China’s updated women’s rights law actually help women?</a>, 2022</p><p>[3] Soyem Osakwe and Nhung Phung, <a href="https://globaldev.blog/gender-inequality-and-ineffective-legal-frameworks-in-nigeria-and-vietnam/">Gender inequality and ineffective legal frameworks in Nigeria and Vietnam</a>, 2023</p><p>[4] <a href="https://hdr.undp.org/system/files/documents/global-report-document/hdr2021-22reportenglish_0.pdf">https://hdr.undp.org/system/files/documents/global-report-document/hdr2021-22reportenglish_0.pdf</a></p><p>[5] UNDP, <a href="https://databank.worldbank.org/source/global-financial-inclusion">Human Development Report</a>, 2022</p><p>[6] Stephen Cecchetti and Kermit Schoenholtz,<a href="https://www.moneyandbanking.com/commentary/2017/11/5/banking-the-unbanked-the-indian-revolution"> Banking the Unbanked: The Indian Revolution</a>, 2017</p><p>[7] L. Yoon, <a href="https://www.statista.com/topics/9308/economic-impact-of-the-coronavirus-covid-19-in-south-korea/#topicOverview">Economic impact of the coronavirus (Covid-19) in South Korea</a>, 2024</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f093af812c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nyu-ds-review/mapping-wealth-diversity-across-hdi-tiers-5f093af812c4">Mapping wealth diversity across HDI Tiers</a> was originally published in <a href="https://medium.com/nyu-ds-review">NYU Data Science Review</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making EDA using Python Easy: DTale (Part 2)]]></title>
            <link>https://medium.com/nyu-ds-review/making-eda-using-python-easy-dtale-part-2-ce83d8325712?source=rss-fe75cb0fb290------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce83d8325712</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[dtale]]></category>
            <category><![CDATA[eda]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Ananya Mittal]]></dc:creator>
            <pubDate>Fri, 09 Feb 2024 20:01:28 GMT</pubDate>
            <atom:updated>2024-02-09T20:01:28.906Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WycWZ5h5aVxCTaug" /><figcaption>Photo by <a href="https://unsplash.com/@hishahadat?utm_source=medium&amp;utm_medium=referral">Shahadat Rahman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Welcome back to our journey on understanding how to use DTale to simplify obtaining analyses and visualizations using Python! In case you haven’t read it, click here to read <a href="https://medium.com/nyu-ds-review/making-eda-using-python-easy-dtale-part-1-366f261da4e9">Part 1</a> that covers the bases of this powerful library.</p><p>In this part, we’ll move forward and explore its main menu options that allow us to work with the entire dataset as opposed to individual columns. As a reminder, the example dataset used, obtained from <a href="https://usa.ipums.org/usa/">IPUMS USA</a> [1], incorporates USA census data in 2021 and involves variables such as sex, level of education, school type, employment and occupation.</p><p>DTale offers 3 main menu options that provide their own sub-options:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTcjA99nb3pNjGqWMJAgqw.png" /></figure><h3>Actions</h3><h4>Dataframe functions</h4><p>This option allows you to build new columns by performing operations on existing columns. Essentially, you enter the two existing columns you want to work with at the bottom and choose what action you want to perform from the given choices depending on the datatypes of your chosen columns. For numeric datatypes, this can involve performing numeric operations or transforming data using normalization and standardization. Other datatypes have different functions such as cleaning and transformation for string data or time series operations for datetime datatypes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*wss6w4HLlc6z4FcVS0ZnjQ.png" /></figure><h4>Merge and Stack</h4><p>If you have different datasets from different sources, you can load all of them onto the same DTale window if you want to work on them individually. However, the library also offers the option to merge these dataframes column-wise or stack them vertically.</p><p><strong><em>Note: </em></strong>While having more data is generally better, mixing data from two different populations and environments can be risky. Hence, you should be careful that you do not reduce the accuracy of the models or visualizations by combining datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7lCZ1e0Fxk2yAdqrWQWX9g.png" /></figure><h4>Summarize Data</h4><p>In pandas, we usually summarize data using group-by or pivot tables to create compact and structured summaries that are easy to visualize. DTale provides the same functionality without requiring us to write the code for each group-by or pivot table. Here, you can select how you want to summarize your data, which columns you want to select for this purpose, and what aggregation function you want to apply to these columns.</p><p><strong><em>Tip: </em></strong>As mentioned in the previous article, you might benefit from saving this summary in a new instance instead of overriding the current dataset, especially if you would like to use the original values for further cleaning or analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mNiBcuAh8ZCXJ3a0" /></figure><h4>Feature Analysis</h4><p>This option aims to remove features that are highly correlated with other features (or columns). This is because highly correlated features provide redundant information, so by removing these columns, you can simplify your models and select a small set of important features that best represent your target variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7UOW3nzU8CoH_uYwOT0FZw.png" /></figure><h3><strong>Visualize</strong></h3><h4>Describe</h4><p>This option is equivalent to the df.describe() function in pandas, and is used to provide a quick overview of the contents of your dataset. Using this feature, you can view different statistics depending on the datatype of your chosen column along with other information such as box-plots and histograms of column values and value counts of unique values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zVBpNUub1r55wVMS" /></figure><h4>Missing Analysis</h4><p>This feature analyzes the presence of missing data and uses the Missingno python package to visualize the missing values through matrix, bar, heatmap, and dendrogram charts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*pH1LWquPbYztWGCFztjEVA.png" /></figure><h4>Correlations</h4><p>This option shows the Pearson correlation matrix for all numerical data and provides a heatmap indicating the level of correlation. This ranges from dark green to yellow as we move from a correlation of 1 to 0 and further onto red for negative correlations.</p><p><strong><em>Tip: </em></strong>You can focus your grid by choosing specific x and y columns whose correlations you would like to view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PF0ACRlMKBaUKssQ" /></figure><h4>Predictive Power Score</h4><p>The PPS library [2] is an asymmetric, data-type-agnostic score that can detect linear or non-linear relationships between two columns. The score ranges from 0 (no predictive power) to 1 (perfect predictive power) and can be used as an alternative to the correlation matrix</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fK9VSKzAZZL86Ri4gy29gg.png" /></figure><h4>Time Series Analysis</h4><p>Data points collected over a period of time may show internal trends or variations which can be mapped out by this option. There was no time series analysis available for my data since I only took a single year into consideration, so here’s a chart from another dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aSDA9UNm0Gz9oot8" /></figure><p><strong><em>Note:</em></strong></p><ul><li>The “index” option should contain the column with values indicating the period of time. The column should be in a date-time format</li><li>The “column” option should be the variable to be studied in numerical dtype format</li><li>You can also aggregate the data using options such as count, sum, mean, variance, maximum, and minimum among others</li></ul><h4>Charts</h4><p>DTale makes use of plotly, an open-source python library used for data visualization, to create interactive plots for multiple variables with different sample sizes and aggregating methods. It offers a variety of different charts that suit different datatypes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hoB15jvyIuwD13FM" /></figure><h3><strong>Highlight</strong></h3><h4>Heat Map</h4><p>This option presents a heatmap for the numerical values on a column-by-column basis. The colors indicate the value of the cell’s datapoint and are most useful for visualizing data with clear patterns or structures.You can also see heatmaps for individual columns by choosing this option from the column options.</p><p><strong><em>Tip</em>: </strong>The presence of outliers might skew the color scale which may then not be able to accurately represent the relative values of the data points. Hence, if your data values vary greatly in magnitude, you may want to normalize the data before generating a heat map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qWqIssqCOu83Pm47zJbZg.png" /></figure><h4>Highlight</h4><p>This option highlights columns based on different factors (dtypes, missing values, outliers, range, and low variance).</p><p><strong><em>Tip: </em></strong>When highlighting the range, you can set your custom range depending on what values you want to focus on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HxwfDoT3AKXd2hwm" /></figure><p>This brings us to the end of my tutorial on DTale! I hope this guide helps you explore this powerful package for yourself and make your analytical journeys easier. If you have any questions or tips to help other readers, make sure to leave them in the comments below!</p><p>References:</p><p>[1] University of Minnesota, IPUMS USA, 2021, <a href="https://usa.ipums.org/usa/">https://usa.ipums.org/usa/</a></p><p>[2] Lee Rowe, <a href="https://medium.com/geekculture/predictive-power-score-implementation-in-python-70558bf91f45">Predictive Power Score Implementation in Python</a>, 2021</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce83d8325712" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nyu-ds-review/making-eda-using-python-easy-dtale-part-2-ce83d8325712">Making EDA using Python Easy: DTale (Part 2)</a> was originally published in <a href="https://medium.com/nyu-ds-review">NYU Data Science Review</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making EDA using Python Easy: DTale (Part 1)]]></title>
            <link>https://medium.com/nyu-ds-review/making-eda-using-python-easy-dtale-part-1-366f261da4e9?source=rss-fe75cb0fb290------2</link>
            <guid isPermaLink="false">https://medium.com/p/366f261da4e9</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[dtale]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[eda]]></category>
            <dc:creator><![CDATA[Ananya Mittal]]></dc:creator>
            <pubDate>Fri, 15 Dec 2023 14:45:49 GMT</pubDate>
            <atom:updated>2023-12-15T14:45:49.625Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fr8kQRXruF04gv5E" /><figcaption>Photo by <a href="https://unsplash.com/@lukechesser?utm_source=medium&amp;utm_medium=referral">Luke Chesser</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Completing an exploratory data analysis (EDA) using a Pandas dataframe can seem tedious and time consuming, especially with the large amounts of code and complex visualizations involved.</p><p>Bringing DTale to the stage! As a powerful data analysis and exploration Python library, <a href="https://www.linkedin.com/pulse/d-tale-360-digitmg-1f">DTale</a> generates an interactive graphical interface that can not only calculate statistics and summaries, but also generate visualizations and carry out more advanced functions such as performing regression and clustering. [1]</p><p>However, while this library is easy to use, even for users with limited programming experience, it can take time to understand the nuances of what it actually offers. This tutorial approaches the library through a fresh lens, explores it step-by-step, and highlights certain points in an effort to ensure that you find quick fixes to some of the common issues you might encounter when using DTale to perform an EDA on your own dataset.</p><p>The example dataset used, obtained from <a href="https://usa.ipums.org/usa/">IPUMS USA</a> [2], incorporates USA census data in 2021 involving variables such as sex, level of education, school type, employment and occupation.</p><h4><strong>Installing DTale</strong></h4><p>You can install DTale using either pip or conda and use it in both Jupyter notebooks and python terminals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1X-H-6_gs-QqhgK9" /></figure><p><strong>Initiating a DTale interface and loading data</strong></p><p><em>Option 1: Initiating the interface with the file loaded</em></p><p>You can initiate the interface by loading the file automatically if you are sure what file you want to open.</p><p><strong><em>Note: </em></strong>You should import pandas to be able to read the file contents. Additionally, the file should be in the same directory as the program or the exact path to the file should be mentioned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*BXTxQIMVCQ8A8Vf13gk_ug.png" /></figure><p><em>Option 2: Initiating a blank interface</em></p><p>You can also initiate the interface without specifying what dataframe you would like to load. This offers you two options: opening the interface in your browser, or within your notebook or environment.</p><p>If you choose to open it in your notebook or python terminal, it will open a window or generate a link respectively. However, from personal experience, it’s easier to work with the interface using a browser, and hence, you might fare better choosing the first option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/0*bNN8CVrKDwQH6Uqt" /><figcaption>Will open a new tab on a browser</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/0*2Ur-WYljkZSfocRY" /><figcaption>Will open a window or generate a link</figcaption></figure><p><strong><em>Note:</em></strong> Initiating the interface without a dataframe loaded will show an error message on the main screen. However, if you hover on the top left of the window and click on the logo “DTale,” the first option will allow you to load the data frame.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uaDtLWSaMn5ujGWn" /></figure><p><strong>Loading the dataframe:</strong></p><p>DTale allows the user to load dataframes either stored locally on their computer or by inputting the link of the website from where the files can be fetched. Here, DTale showcases two very useful features — one, that it allows for a multitude of formats including .csv, .tsv, .xls, .xlsx, and .parquet, and two, that it allows the user to load multiple dataframes in the same window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RjaYHNldQiT3DYTh" /></figure><p>Once the data is loaded, a table will be displayed similar to a pandas dataframe. However, it bears one important distinction — all the cells of this table can be edited directly like you can in an excel sheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fzJLhB5sXM_FD0Xm" /></figure><h4><strong>Column Options:</strong></h4><p>DTale allows you to work with each individual column and perform a variety of actions. While many of these remain common and constant across data types, some of them are individual to the data type you might be working with, such as string or numeric.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JGurAfd9IP26JPmWYKuuQA.png" /><figcaption>Column options for strings and numerics</figcaption></figure><h4><strong>Lock</strong></h4><p>The lock option works very similarly to the lock feature in Excel, where it fixes the selected column to the left of the screen and allows us to scroll to the other columns while keeping that column on the screen. This is especially useful when you need to compare two columns, especially if they are placed far apart.</p><h4><strong>Hide or Delete</strong></h4><p>The “hide” option removes the column from view without deleting the values from the actual dataframe. This will come in handy when you want to focus on certain columns or hide the original column once modifications have been made to it. You can undone this by clicking the right top of the screen.<br><br>Delete, on the other hand, removes the column from the dataframe permanently (similar to the pandas drop() method).<br><strong><em><br>Note: </em></strong>Deleting a column makes it virtually impossible to recover it without having to load the original dataset again, so if you’re someone who has as much anxiety as I do and do not want to delete a column unless you’re absolutely sure, the ‘hide’ function will be your best friend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h3WkQB66h30rTRDj" /><figcaption>For this particular dataset, I altered the numerical values of 1 and 2 in the “sex” column to the string values of Male and Female respectively in the “sex_s” column, so I’m now hiding the original column.</figcaption></figure><h4><strong>Rename</strong></h4><p>Just as the name suggests, this option allows the user to modify the column name to whatever they prefer, allowing for more clarity and less redundancy.</p><h4><strong>Duplicate and Duplicates</strong></h4><p>The first option, like the name insinuates, creates a duplicate column. This feature could come in handy when you want to make significant changes to the values of a column but would like to retain the original values.</p><p>The second option, on the other hand, allows you to view or delete duplicate columns, rows or column names, a feature that can play an important role when cleaning data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vQiJH7V8XlvLsWYG" /></figure><h4><strong>Replacements</strong></h4><p>This option works in a similar fashion to the search and replace function found in MS or Google Suite as well as many other applications. Here, you input the original value in the space corresponding to “search for” and your new desired value in the space corresponding to “replace with.”</p><p><strong><em>Note:</em></strong> The input for the “replace with” option should be of the same datatype as the values in the column selected or it will replace it as “nan,” that is, a missing value (I didn’t realize this and struggled with missing values for eons, so hopefully you’ll be pulling out less hair than I did)</p><p><strong><em>Tip:</em></strong> At the top, you can choose to save these modifications in a “new column” instead of “inplace” which will ensure that the original column remains unchanged and can then be hidden or deleted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UgXZHx2ZM_ioPSqQ" /><figcaption>In this dataframe, sex was assigned numerical values {Male:1, Female:2}, which I converted back to the respective string values</figcaption></figure><h4><strong>Type Conversion</strong></h4><p>This function allows you to convert the values of the selected column from one datatype to another, provided it is a valid operation.</p><p><strong><em>Note:</em></strong> Again, you might benefit from saving these changes in a different column, especially if you would like to use the original values for further cleaning or analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BXZVovIsD9IwwI8c" /><figcaption>In this example, I converted my “sex” column from a numeric datatype to a string datatype so that I can execute the “replacements” function to convert the values from numbers to words</figcaption></figure><h4>Describe</h4><p>This option operates like the pandas describe() function and provides a statistical summary of the column, albeit with a lot more information. It is also available to select from the main menu options to provide a quick overview of the contents of your dataframe.</p><p>For string columns, it provides detailed information on the composition of the characters, the most frequent word, its frequency, and value counts along with a plot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5nxCxtSAWWc_lvnZAvEwFg.png" /></figure><p>For numerical columns, the describe option provides the measures of central tendency and spread along with frequency tables, value counts, box plots, Q-Q plots, and histograms</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*kNf0gNVcMQur4O-Ds_84gQ.png" /></figure><h4>Formats</h4><p>This option allows the user to define how numbers and strings are displayed. It allows us to hyperlink text for string datatypes, while with numerical data, it allows us the option to display commas and exponents, represent values as currencies and decide the number of decimal places we want to work with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxZHxJl9oEPi338a0whHwg.png" /></figure><h4>Clean columns</h4><p>This option is available exclusively for columns containing string data and allows you to clean values by removing punctuation or numbers, replacing spaces or hyphens, and normalizing accent characters among other options, many of which can be chosen all at once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G5aDeKvw1i7FBKsv" /></figure><p>Well, that’s all for the column options. Good job on making it this far! But we’re not done yet. DTale also provides a plethora of main menu options which I can only do justice to in a separate article. So please wait for that, and in the meanwhile, enjoy experimenting with DTale!</p><p>References:</p><p>[1] 360DigiTMG, Linkedin, 10 May 2023, <a href="https://www.linkedin.com/pulse/d-tale-360-digitmg-1f">https://www.linkedin.com/pulse/d-tale-360-digitmg-1f</a></p><p>[2] University of Minnesota, IPUMS USA, 2021, <a href="https://usa.ipums.org/usa/">https://usa.ipums.org/usa/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=366f261da4e9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nyu-ds-review/making-eda-using-python-easy-dtale-part-1-366f261da4e9">Making EDA using Python Easy: DTale (Part 1)</a> was originally published in <a href="https://medium.com/nyu-ds-review">NYU Data Science Review</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>