<?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 Dhanaa Lakshmi on Medium]]></title>
        <description><![CDATA[Stories by Dhanaa Lakshmi on Medium]]></description>
        <link>https://medium.com/@dhanaalakshminarayanan?source=rss-260d70f5c2cd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FoApyai0rEhM5e9s5QguzQ.jpeg</url>
            <title>Stories by Dhanaa Lakshmi on Medium</title>
            <link>https://medium.com/@dhanaalakshminarayanan?source=rss-260d70f5c2cd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:32:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dhanaalakshminarayanan/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[Exploratory Data Analysis (EDA): Turning Messy Data into Meaningful Insights]]></title>
            <link>https://medium.com/@dhanaalakshminarayanan/exploratory-data-analysis-eda-turning-messy-data-into-meaningful-insights-f9b7921c1104?source=rss-260d70f5c2cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9b7921c1104</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[eda]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Dhanaa Lakshmi]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 13:54:11 GMT</pubDate>
            <atom:updated>2025-11-07T13:54:11.085Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever opened a massive spreadsheet and thought, <em>“What even is this?”</em><br> Congratulations — you’ve officially stepped into the world of <strong>Exploratory Data Analysis (EDA)</strong>.</p><p>EDA is like being a detective for your dataset. You’re not fighting crime; you’re fighting missing values, weird outliers, and uninvited NaNs. Armed with curiosity (and maybe a cup of coffee), you poke, clean, and visualize until the data finally starts making sense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1UI9vUI4Y_qkRRoXbAMXlg.png" /></figure><h3>So… Want to know what is EDA?</h3><p>Think of EDA as your first date with data. You’re just getting to know it — asking questions, noticing patterns, and occasionally discovering surprises you didn’t sign up for.</p><p>With EDA, you:</p><ul><li>Get a feel for your data (no hiking boots needed, just curiosity).</li><li>Hunt down mistakes, weird numbers, or missing stuff.</li><li>Paint clear, colorful charts so trends and problems stand out.</li></ul><p>In short — EDA helps you <strong>analyze, understand, and make friends with your data</strong>.</p><h3>Visualization — Because Numbers Deserve a Makeover</h3><p>Let’s be honest: staring at columns of numbers is about as exciting as watching paint dry.<br> That’s where <strong>visualization</strong> swoops in like a superhero.</p><p>Charts, pies, and graphs act like glasses for your data — suddenly, everything comes into focus.</p><p><strong>Why visuals rock:</strong></p><ul><li>You instantly get the <em>big picture</em> (what’s happening, when, and where).</li><li>You can show findings to your boss, client, or cat — and they’ll actually get it.</li><li>You spot unexpected patterns — like “Wait, why do all the errors happen at midnight?”</li></ul><p>So yes, visualization isn’t just about pretty colors; it’s about clarity and storytelling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2XgBt7iTCVmfE9cLfCMoQw.png" /></figure><h3>The EDA Process: From Chaos to Clarity</h3><h4>1. Data Sourcing</h4><p>Start by <strong>gathering your data</strong> — from a file, API, or even the web.<br> This is your raw material. Think of it as uncut diamonds… except some are fake, some are dirty, and a few are missing altogether.</p><h4>2. Data Cleaning</h4><p>Now comes the “fun” part (said no one ever).<br> Data cleaning means fixing typos, removing duplicates, and patching up missing information.</p><p>You might:</p><ul><li>Delete columns or rows that make zero sense.</li><li>Fill in blanks (maybe use averages or common sense).</li><li>Fix weird values (if someone’s age is 300, maybe they’re not from this planet).</li></ul><p>It’s not glamorous, but it’s essential. A clean dataset is like a clean kitchen — easier to cook up great insights.</p><h4>3. Handling Missing &amp; Invalid Values</h4><p>Ah yes, the mysterious <em>NaN</em>, <em>NULL</em>, or just plain <em>missing</em>.<br> Every dataset has that one rebel column that refuses to behave.</p><p>Here’s what you can do:</p><ul><li><strong>Delete</strong> the row (if it’s not important).</li><li><strong>Fill it in</strong> using the mean, median, or a smart estimate.</li><li><strong>Keep it missing</strong>, but make sure your model knows about it.</li></ul><p>Invalid values are their own kind of drama — negative prices, impossible ages, or dates from the future.<br> EDA helps you catch those sneaky errors before they ruin your analysis.</p><h4>4. Feature Scaling</h4><p>Imagine comparing “height in cm” with “salary in lakhs.” One is small; the other’s massive. Scaling levels the playing field.<br> It makes sure no single feature unfairly dominates just because of its size.<br> It’s like giving everyone the same volume level before starting the meeting.</p><h4>5. Outlier Treatment</h4><p>Some numbers just don’t belong — like a student scoring 900 marks out of 100.<br> Outliers can be genuine or total errors.</p><p>You can:</p><ul><li><strong>Remove them</strong> if they’re impossible (no, your youngest customer isn’t 3 years old).</li><li><strong>Cap them</strong> using percentiles.</li><li><strong>Transform them</strong> (log scaling often works like magic).</li></ul><p>Treat them carefully; outliers sometimes tell interesting stories too!</p><h4>6. Visualization &amp; Summarizing</h4><p>Now the fun returns!<br> Time to turn your cleaned-up data into visuals:</p><ul><li><strong>Bar graphs</strong> for category comparisons.</li><li><strong>Pie charts</strong> to show proportions.</li><li><strong>Box plots</strong> for spread and outliers.</li><li><strong>Heatmaps</strong> to see relationships and correlations.</li></ul><p>Each visualization is like a little window into your data’s world.</p><h3>Handling Invalid Values</h3><p>Invalid values are like uninvited guests at a party — they show up anyway.</p><p>Here’s how to handle them like a pro:</p><ol><li><strong>Identify them</strong> — use functions like .isnull(), .info(), or .describe().</li><li><strong>Decide what to do</strong> — drop, replace, or flag.</li><li><strong>Validate logic</strong> — e.g., ages can’t be negative, prices can’t be zero, and you definitely shouldn’t have a 2026 transaction in 2020 data.</li></ol><p>Think of it as quality control — you’re not just cleaning data, you’re saving your future self from endless debugging nightmares.</p><h3>In Short</h3><p>EDA is the flashlight that helps you explore the dark cave of raw data.<br> It’s how you go from “What even is this?” to “Aha! That explains everything.”</p><p>With EDA, you:</p><ul><li>Dig into the real story behind the numbers.</li><li>Spot patterns you’d never expect.</li><li>Build solid foundations before doing anything predictive.</li></ul><p>So next time a messy dataset lands on your desk, don’t panic. Grab your notebook, load up your tools, and start exploring. Because when you do EDA right, <strong>data stops being confusing — and starts being <em>cool</em>.</strong> 😎</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9b7921c1104" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Summary to Prediction: Stepping into Inferential Statistics]]></title>
            <link>https://medium.com/@dhanaalakshminarayanan/from-summary-to-prediction-stepping-into-inferential-statistics-58daa7bc1ea7?source=rss-260d70f5c2cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/58daa7bc1ea7</guid>
            <category><![CDATA[inferential-statistics]]></category>
            <category><![CDATA[stats]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-driven]]></category>
            <dc:creator><![CDATA[Dhanaa Lakshmi]]></dc:creator>
            <pubDate>Mon, 28 Jul 2025 11:48:40 GMT</pubDate>
            <atom:updated>2025-07-28T11:48:40.759Z</atom:updated>
            <content:encoded><![CDATA[<p>We explored Descriptive statistics on the previous blog — the stuff that helps us describe data like its average, how spread out it is, or how often certain values show up. But describing is just the first step. What if we want to <strong>predict</strong>? Or conclude something bigger from just a handful of data?</p><p>Let’s step into the real detective zone of statistics — <strong>Inferential Statistics</strong>.</p><h3><strong>INFERENTIAL STATISTICS</strong></h3><blockquote>Making Bold Guesses with tiny clues</blockquote><p>Imagine tasting one spoon of biryani and guessing the whole pot is amazing (or salty). That’s what inferential stats does — it draws conclusions about an entire population based on a sample.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xiySPaH0a2NZK5d-hL2VGw.png" /></figure><h3>What is it exactly?</h3><p>It’s a <strong>branch of statistics</strong> that uses analytical tools to:</p><ul><li>Draw inferences about a population,</li><li>Based on a sample of data,</li><li>Especially helpful when you don’t have access to the full population data.</li><li>Think of it as the wise friend who doesn’t need to read the whole book to predict the ending.</li></ul><h3><strong>Two Core Areas of Inferential Statistics:</strong></h3><ol><li>Estimating parameters</li><li>Hypothesis Testing</li></ol><p><strong>Estimating Parameters :</strong></p><p>When we use sample data to <strong>guess unknown values</strong> (like the average height of students in an entire university from just one classroom).</p><p><strong>Hypothesis Testing :</strong></p><p>This is the fun part where you make assumptions (called hypotheses) and then <strong>test</strong> them with data to see if they hold up or not. It’s kind of like saying, “I think people who drink coffee are more productive” and then using data to prove or disprove it.</p><h3>Types of Data — Yes, Data Has a Personality!</h3><p>Before you go analyzing anything, you need to understand what type of data you’re working with. Not all data is created equal!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ncZPBx-7k-3JMaDy0ak6Lw.png" /></figure><h3>Data can be either:</h3><ul><li><strong>Categorical (Qualitative)</strong>: Describes categories or labels.</li><li><strong>Numerical (Quantitative)</strong>: Deals with numbers.</li></ul><h3>Categorical (Qualitative) Data:</h3><p>These types of data help classify or label — they don’t have numerical meaning, but they’re important!</p><h4>1. Nominal Data:</h4><ul><li>No natural order.</li><li>Ex: Gender, blood group, eye color.</li><li>Can’t say male &gt; female or A+ &gt; B- blood group.</li><li>Visuals? Use a <strong>pie chart</strong>.</li></ul><h4>2. Ordinal Data:</h4><ul><li>Comes with a sense of order.</li><li>Ex: Economic status (Low, Medium, High).</li><li>But… we don’t know <em>how much</em> better “High” is from “Medium”.</li><li>Visuals? Use a <strong>bar chart</strong>.</li></ul><h3>Numerical (Quantitative) Data:</h3><p>This type of data is all about numbers — measurable, countable, and analyzable.</p><h4>1. Discrete Data:</h4><ul><li>Countable numbers only.</li><li>Ex: Number of students in a class — you can’t have 42.5 students, right?</li></ul><h4>2. Continuous Data:</h4><ul><li>Measurable and infinite values.</li><li>Ex: Height, temperature, weight.</li><li>You could measure someone’s height as 161.53 cm, and still be precise!</li></ul><p>Inferential statistics opens the door to decision-making, forecasting, and generalizing insights beyond the data in front of us. It’s the backbone of data-driven research in nearly every field — from medicine to marketing.</p><p>In our next post, we’ll explore the foundation of inferential stats: <strong>sampling techniques</strong>. Understanding how to select a good sample is key to drawing accurate conclusions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58daa7bc1ea7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Descriptive Statistics: The Ultimate Data Storyteller (No Math Phobia Allowed!)]]></title>
            <link>https://medium.com/@dhanaalakshminarayanan/descriptive-statistics-the-ultimate-data-storyteller-no-math-phobia-allowed-62142e8c0cb8?source=rss-260d70f5c2cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/62142e8c0cb8</guid>
            <category><![CDATA[descriptive-statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Dhanaa Lakshmi]]></dc:creator>
            <pubDate>Mon, 14 Jul 2025 13:21:02 GMT</pubDate>
            <atom:updated>2025-07-14T13:42:48.175Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to another exciting episode..!<br>Ever wondered how Spotify tells you your “Top 10 Songs of the Year” or why your teacher says, “The class average was 75%”? That’s <strong>descriptive statistics </strong>— your behind-the-scenes data BFF!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rdYcnx_haacC7cGrkaHvAA.png" /></figure><p>So… What Is Descriptive Statistics?</p><p>Let’s keep it simple.</p><p><strong>Descriptive statistics</strong> is like giving a neat summary of a bunch of data. Instead of staring at 1000 messy numbers, you describe what they’re saying overall:</p><ol><li>What’s the average?</li><li>How spread out are the values?</li><li>What’s the most common value?</li></ol><blockquote>Think of it as the “storyteller” of data.</blockquote><p>The Two Big Goals of Descriptive Stats:</p><p>1. <strong>Measure of Central Tendency</strong> — “Where’s the center of this data?”<br>2. <strong>Measure of Dispersion </strong>— “How spread out is the data?”</p><p>Let’s break these down one by one — with fun bits and formulas included.</p><h3>1. Measures of Central Tendency</h3><p>These help us understand the typical value in a dataset. The top three are:</p><h4><strong>Mean (Average)</strong></h4><p><strong>Formula:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/75/1*7qF7MIB19VhKLFDUJF_WuQ.png" /></figure><p>Where:<br>∑x = sum of all observations<br>N = number of observations</p><p><strong>Example time!</strong><br>Let’s say five friends earn: ₹10k, ₹20k, ₹12k, ₹13k, and ₹90k.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*J5-a7m3-mEHADlJhxbPoMQ.png" /></figure><p>Sounds good right?</p><h4><strong>Median (Middle Value)</strong></h4><ol><li>Arrange data in order and pick the middle one.</li><li>If even number of data points: Take the average of the two middle values.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*xutyaIYrD312i03AvfhSew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*d1l43JKmbSOzFfDuxcLuKA.png" /></figure><p><strong>Back to our example:</strong><br>Ordered Salaries: ₹10k, ₹12k, ₹13k, ₹20k, ₹90k</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/110/1*IJwf-rnKNBmm4utjvcEcmA.png" /></figure><p>📌 <strong>Quick Insight:</strong> See how the mean was ₹29k (inflated by that ₹90k), while the median is just ₹13k? That’s why <strong>median </strong>is better when outliers are lurking.</p><h4><strong>Mode (Most Frequent Value)</strong></h4><ol><li>The value that appears the most.</li><li>Great for <strong>categorical data</strong> like colors, brands, or favorite pizza toppings.</li></ol><p>There can be:</p><ul><li>Unimodal (one mode)</li><li>Bimodal (two modes)</li><li>Multimodal (multiple modes)</li></ul><h3><strong>2. Measures of Dispersion</strong></h3><p>OK, so we know the center — but how <strong>scattered </strong>is the data?</p><p>Here’s what we use to figure that out:</p><h4><strong>Range</strong></h4><p>Formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*cv64ZfE8i0B1fOqW8Tkj-g.png" /></figure><p>Super simple, right? It gives us the full spread but doesn’t say much about the in-between.</p><h4>Inter-Quartile Range (IQR)</h4><p>Formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/125/1*baDcNISI_qxW1moBeHlZuQ.png" /></figure><p>Measures the middle 50% of the data — super helpful to ignore the noisy outliers.</p><p><strong>Example:</strong><br>Data: 1, 2, 5, 6, 7, 9, 12, 15, 18, 19, 27</p><p>Median = 9</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/126/1*S2Ovqas1oF2HGDiuLyXOcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/126/1*qyBsNq_5ZuKJrWUi5uKbBg.png" /></figure><h4>Variance</h4><p>Measures how much the values vary from the mean.</p><p>Population Variance Formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/113/1*UjM_196WxVJyu7Bah6sBIA.png" /></figure><p>Where:</p><p>x is data points<br>N refers to population size</p><h4>Standard Deviation (SD)</h4><p>Just the square root of variance. Tells us how far values typically are from the mean.</p><p>Population SD Formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/134/1*A2DFIIOJjOV0e5ApK8IL6g.png" /></figure><p>Sample SD Formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/131/1*0QKmN_Wf_U4A_5IQTFXMVg.png" /></figure><p>🧠 <strong>Tip</strong>: Lower SD = data is tightly packed. Higher SD = more spread out.</p><h4>Mean Deviation</h4><p>Formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/1*SzJgWnGJivUz9GUsuEQe3Q.png" /></figure><p>This one’s all about the average of absolute deviations from the mean. It’s simple and gives a rough idea of variability.</p><h4>Final Thoughts</h4><p>Descriptive statistics is not just math — it’s your best friend when you want to make sense of the world using numbers. Whether you’re running a business, analyzing marketing data, or just checking your fitness tracker, this stuff matters.</p><p>So next time someone says “Statistics is boring,” send this blog to them 😉</p><p>Want more fun breakdowns like this? Follow me for upcoming blogs on <strong>Inferential Statistics, Hypothesis Testing</strong>, and more!</p><p>Like if this blog made stats a little less scary. 😉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62142e8c0cb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Talks, We Plot: A Visual Kickstart to Machine Learning]]></title>
            <link>https://medium.com/@dhanaalakshminarayanan/data-talks-we-plot-a-visual-kickstart-to-machine-learning-d2b9cbfbee0a?source=rss-260d70f5c2cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2b9cbfbee0a</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[plotting]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Dhanaa Lakshmi]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 13:56:51 GMT</pubDate>
            <atom:updated>2025-07-01T13:56:51.767Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Welcome to my first blog 👋</strong></h3><p>Hi All, I’m <strong>Dhanaa Lakshmi</strong>, someone who’s always been curious about how machines “learn” and make smart decisions on their own. Lately, I’ve been diving deep into the world of <strong>Machine Learning</strong>, and I figured — why not share the journey while I’m on it?</p><p>This space is for anyone who’s just getting started — whether you’re a student, a beginner in tech, or simply someone curious about what all the ML buzz is about. I’ll be breaking things down into <strong>simple, beginner-friendly posts</strong>, taking you step by step from the basics to building real ML models.</p><p>Let’s learn together — one blog at a time ✨</p><p><strong>So can we start ?</strong></p><p>Before diving into ML algorithms, it’s important to first understand your data — and the best way to do that is through <strong>visualization</strong>.</p><blockquote><strong>“A picture is worth a thousand words”</strong></blockquote><p>As the quote suggests, visualization means giving visual context to information which help’s to identify and infer trends, patterns and outliers in datas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*xI4yEH0UW98hV4Q-aj9D6A.png" /></figure><blockquote><strong>“Data visualization helps to bridge the gap between numbers and words” — Brie E.Anderson, Digital Marketer and Data Scientist at BEAST Analytics.</strong></blockquote><p><strong>Why Data Visualization is important ?</strong></p><ol><li>It Simplies complex data</li><li>Analyze large dataset and have data driven management</li><li>It delivers data with more efficiency, clarity and effectiveness</li><li>Reveals patterns and trends</li><li>Saves time in exploration and Improves decision-making</li></ol><p><strong>Common Visualization Tools in ML :</strong></p><ol><li><strong>Matplotlib</strong> (for basic plots)</li><li><strong>Seaborn</strong> (for advanced statistical visuals)</li><li><strong>Plotly</strong> (for interactive plots)</li><li><strong>Pandas .plot()</strong> (for quick data views)</li></ol><h3><strong>1. Matplotlib — Your First Step Toward Visualizing Data</strong></h3><p><strong>Matplotlib</strong> is a 2D plotting library for Python that helps you visualize data through a variety of static, animated, and interactive plots. It’s great for creating publication-quality graphs with full control over every element.</p><p><strong>Installing Matplotlib</strong></p><p>If you don’t have it installed already, you can install it using pip:</p><pre>pip install matplotlib</pre><p><strong>Plots available in Matplotlib :</strong></p><ol><li>Line plot</li><li>Bar plot</li><li>Histogram</li><li>Scatter plot</li><li>Pie chart</li><li>Box plot</li><li>Area plot</li></ol><p><strong>Let’s break it down with an example:</strong></p><pre>import matplotlib.pyplot as plt<br>import numpy as np<br><br># Sample data<br>x = [1, 2, 3, 4, 5]<br>y = [2, 4, 6, 8, 10]<br>categories = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;]<br>values = [5, 7, 3, 8]<br>random_data = np.random.randn(100)<br>box_data = [np.random.normal(0, std, 100) for std in range(1, 4)]<br>area_y = [1, 3, 5, 7, 9]<br>pie_values = [30, 25, 20, 25]<br>pie_labels = [&#39;Apple&#39;, &#39;Banana&#39;, &#39;Mango&#39;, &#39;Grapes&#39;]<br><br># Create 4x2 subplot grid<br>plt.figure(figsize=(12, 10))<br><br># Line plot<br>plt.subplot(4, 2, 1)<br>plt.plot(x, y, marker=&#39;o&#39;)<br>plt.title(&quot;Line Plot&quot;)<br><br># Bar plot<br>plt.subplot(4, 2, 2)<br>plt.bar(categories, values, color=&#39;orange&#39;)<br>plt.title(&quot;Bar Plot&quot;)<br><br># Histogram<br>plt.subplot(4, 2, 3)<br>plt.hist(random_data, bins=20, color=&#39;green&#39;)<br>plt.title(&quot;Histogram&quot;)<br><br># Scatter plot<br>plt.subplot(4, 2, 4)<br>plt.scatter(x, y, color=&#39;red&#39;)<br>plt.title(&quot;Scatter Plot&quot;)<br><br># Pie chart<br>plt.subplot(4, 2, 5)<br>plt.pie(pie_values, labels=pie_labels, autopct=&#39;%1.1f%%&#39;)<br>plt.title(&quot;Pie Chart&quot;)<br><br># Box plot<br>plt.subplot(4, 2, 6)<br>plt.boxplot(box_data)<br>plt.title(&quot;Box Plot&quot;)<br><br># Area plot<br>plt.subplot(4, 2, 7)<br>plt.fill_between(x, area_y, color=&#39;skyblue&#39;, alpha=0.5)<br>plt.title(&quot;Area Plot&quot;)<br><br>plt.tight_layout()<br>plt.show()</pre><p><strong>Output :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kd18Zt64KNoaOaub4kRPTQ.png" /></figure><h3>2. Say Hello to Seaborn: Data Visualization Made Simple</h3><p>Let’s be real — data is cool, but staring at endless rows and columns? Not so much. That’s where <strong>Seaborn</strong> swoops in like a superhero with a colorful cape. Built on top of Matplotlib, Seaborn is like Matplotlib’s stylish cousin who just <em>gets</em> design.</p><blockquote><em>It is summarized that if Matplolib “Tries to make easy things easy and hard things possible” , seaborn tries to make a well-defined set of hard things easy too.</em></blockquote><p><strong>Why Seaborn is a Vibe ?</strong></p><ol><li>Clean, colorful, and way less code</li><li>Plays super well with Pandas</li><li>Built-in themes that actually look good</li><li>Great for statistical plots (because who doesn’t love a good boxplot?)</li></ol><p>Getting Set Up</p><p>No drama here. Just run this in your terminal:</p><pre>pip install seaborn</pre><p>You’re now officially one command away from plotting magic.</p><p><strong>Let’s See an Example:</strong></p><pre>import seaborn as sns<br>import matplotlib.pyplot as plt<br>import pandas as pd<br><br># Creating a mock version of the &#39;tips&#39; dataset<br>data = {<br>    &quot;total_bill&quot;: [16.99, 10.34, 21.01, 23.68, 24.59, 25.29, 8.77, 26.88, 15.04, 14.78],<br>    &quot;tip&quot;: [1.01, 1.66, 3.50, 3.31, 3.61, 4.71, 2.00, 3.12, 1.96, 3.23],<br>    &quot;sex&quot;: [&quot;Female&quot;, &quot;Male&quot;, &quot;Male&quot;, &quot;Male&quot;, &quot;Female&quot;, &quot;Male&quot;, &quot;Male&quot;, &quot;Male&quot;, &quot;Female&quot;, &quot;Male&quot;]<br>}<br><br>tips_mock = pd.DataFrame(data)<br><br># Plotting<br>plt.figure(figsize=(8, 6))<br>sns.scatterplot(data=tips_mock, x=&quot;total_bill&quot;, y=&quot;tip&quot;, hue=&quot;sex&quot;)<br>plt.title(&quot;Tips vs Total Bill 💸 (Mock Data)&quot;)<br>plt.xlabel(&quot;Total Bill&quot;)<br>plt.ylabel(&quot;Tip&quot;)<br>plt.tight_layout()<br>plt.show()</pre><p><strong>Output :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*EI_J15hZSuPyePvO8Xv--A.png" /></figure><p>If Matplotlib feels like hard work, Seaborn is your chill, artsy friend who says, <em>“Hey, let me handle that.”</em> It’s fun, it’s friendly, and it saves you a ton of time while making your data shine.</p><h3>3. Meet Plotly: The Interactive Chart Magician</h3><p>Okay, so you’ve been using Matplotlib or Seaborn, and your plots look great. But… what if they could <strong>move</strong>, <strong>zoom</strong>, and <strong>hover</strong> like they’re alive?</p><p>Say hello to <strong>Plotly</strong> — your go-to library for creating <strong>interactive</strong> and <strong>beautiful</strong> charts in Python. It’s like Seaborn’s tech-savvy sibling who’s into front-end magic and loves a good hover effect.</p><p><strong>Why Plotly Deserves a Spot in Your Life</strong></p><ol><li><strong>Fully interactive</strong> (hover, zoom, pan, and even export!)</li><li><strong>Gorgeous by default</strong></li><li>Perfect for dashboards, presentations, and reports</li><li>Supports 2D &amp; 3D plots, maps, animations, and more</li><li>No need for JavaScript — you can control everything with Python!</li></ol><p><strong>Installing Plotly</strong></p><p>Super easy. Just run:</p><pre>pip install plotly</pre><p>And boom — you’re ready to go!</p><p><strong>Let’s See an Example:</strong></p><p>Here’s how to make an interactive scatter plot in Plotly:</p><pre>import plotly.express as px<br># Sample dataset<br>df = px.data.iris()<br># Interactive scatter plot<br>fig = px.scatter(df, x=&quot;sepal_width&quot;, y=&quot;sepal_length&quot;,<br>                 color=&quot;species&quot;, size=&quot;petal_length&quot;,<br>                 hover_data=[&quot;petal_width&quot;])<br>fig.update_layout(title=&quot;Iris Dataset Scatter Plot&quot;)<br>fig.show()</pre><p>Try zooming in, hovering, dragging — this isn’t your regular static plot. It’s alive!</p><p><strong>Plot Types That Slap</strong></p><p>Plotly Express supports a bunch of cool plot types:</p><ol><li>px.bar() – for colorful bar charts</li><li>px.line() – for clean line plots</li><li>px.scatter() – for fancy dot games</li><li>px.pie() – yum! for proportions</li><li>px.box() – great for distributions</li><li>px.histogram() – bin it like a pro</li><li>px.treemap() – nested data, beautifully shown</li><li>px.sunburst() – circular storytelling</li></ol><p><strong>Final Thoughts :</strong></p><p>Plotly is like giving your charts a little bit of life — and your viewers a lot of power. Whether you’re building dashboards or just want to impress your friends with some snazzy data visuals, Plotly’s got your back. If you’re thinking <em>“I want my plot to live on a web page”</em> — you’re already halfway there!</p><h3>4. The Line Plot Basics — plt.plot()</h3><p>When I first started learning data visualization in Python, the function I bumped into most was this simple one:</p><pre>plt.plot()</pre><p>At first glance, it doesn’t seem like much — but this tiny function is actually the gateway to creating powerful visualizations. It’s mainly used for <strong>line plots</strong>, which are great for showing how things change over time or how two variables relate.</p><p><strong>A Quick Example</strong></p><p>Let’s say you have some basic data:</p><pre>import matplotlib.pyplot as plt<br>x = [1, 2, 3, 4, 5]<br>y = [2, 4, 6, 8, 10]<br>plt.plot(x, y)<br>plt.title(&quot;Simple Line Plot&quot;)<br>plt.xlabel(&quot;X-axis&quot;)<br>plt.ylabel(&quot;Y-axis&quot;)<br>plt.show()</pre><p>This will give you a clean, straight line connecting the points. It’s probably one of the easiest plots to create — and one of the most useful!</p><p><strong>Want to Add Some Style?</strong></p><p>Yep, plt.plot() lets you customize your graph however you like:</p><pre>plt.plot(x, y, color=&#39;blue&#39;, linestyle=&#39;-&#39;, marker=&#39;o&#39;)</pre><p><strong>Output :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*AguY2SrZhxj4yq0TximNCw.png" /></figure><p><strong>You can change:</strong></p><ul><li>The <strong>color</strong> of the line</li><li>The <strong>line style</strong> (solid, dashed, dotted)</li><li>The <strong>marker</strong> (circles, squares, triangles)</li></ul><p>Small changes like these make your plot way more readable and visually appealing.</p><p><strong>Saving Your Plot</strong></p><p>Want to keep your plot as an image file?</p><pre>plt.savefig(&quot;my_plot.png&quot;)</pre><p>Just like that, your graph is saved locally and ready to be added to your report, blog, or presentation.</p><p><strong>Why Use </strong><strong>plt.plot()?</strong></p><ul><li>It’s beginner-friendly and easy to learn</li><li>Works great for trend analysis and time series</li><li>You can tweak and style it however you want</li></ul><p><strong>Final Thoughts</strong></p><p>plt.plot() is often the first step into the world of Python plotting, and once you get the hang of it, you’ll be using it in almost every data project. It’s clean, quick, and super customizable.</p><p>I hope this gave you a clear and simple start to data visualization using Python. It’s just the beginning — I’ll be sharing more content as I dive deeper into machine learning. Your support truly means a lot and keeps me motivated to keep writing. Feel free to drop your thoughts or feedback — I’d love to hear from all of you!<br>See you in the next one!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2b9cbfbee0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>