<?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 Snehit Vaddi on Medium]]></title>
        <description><![CDATA[Stories by Snehit Vaddi on Medium]]></description>
        <link>https://medium.com/@snehitvaddi-writes?source=rss-3f964b447eac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vb-P_TkaiWEIOtW_</url>
            <title>Stories by Snehit Vaddi on Medium</title>
            <link>https://medium.com/@snehitvaddi-writes?source=rss-3f964b447eac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:32:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@snehitvaddi-writes/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[Why Most AI Resume Tools Miss the Point]]></title>
            <link>https://snehitvaddi-writes.medium.com/why-most-ai-resume-tools-miss-the-point-cda5dc61cd7b?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/cda5dc61cd7b</guid>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[ai-resume-screening]]></category>
            <category><![CDATA[ats-software]]></category>
            <category><![CDATA[resume-tips]]></category>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Thu, 12 Feb 2026 00:36:01 GMT</pubDate>
            <atom:updated>2026-02-12T00:36:01.429Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GJ2amddfILfIQ5hF15BngA.png" /></figure><p>Last month I was job hunting. I had a solid resume. Good bullet points, clean formatting, all that. Wasn’t the issue.</p><p>The issue was I found 50 jobs I wanted to apply to. And each one wanted something slightly different.</p><p>The startup wanted scrappy and fast. The enterprise company wanted process and scale. The agency wanted client management. The product company wanted user empathy.</p><p>My resume couldn’t be all of these things at once. So I had two options:</p><ol><li>Send the same resume to everyone and hope it sticks (low success rate)</li><li>Manually customize it 50 times (soul crushing)</li></ol><p>I tried option two. Made it through about 15 applications before I wanted to throw my laptop out the window.</p><p><strong>How I Thought AI Would Help</strong></p><p>I figured, “Hey, AI is supposed to be good at this stuff. Let me try some tools.”</p><p>Teal (<a href="https://www.tealhq.com/">https://www.tealhq.com</a>): Nice interface. Good for tracking jobs. But when it came to tailoring, I was still manually editing each bullet point. Just in a prettier UI than Google Docs.</p><p>Jobscan (<a href="https://www.jobscan.co/">https://www.jobscan.co</a>): Told me what keywords I was missing. Okay, great. Now I’m playing keyword Tetris trying to fit “agile methodology” into bullet point three without sounding like a robot.</p><p>ChatGPT (<a href="https://chat.openai.com/">https://chat.openai.com</a>): This one actually worked pretty well for the AI part. But the workflow was:</p><ol><li>Open job on LinkedIn</li><li>Switch to ChatGPT</li><li>Copy my resume</li><li>Copy the job description</li><li>Write a prompt</li><li>Wait for response</li><li>Copy output</li><li>Paste into Google Docs</li><li>Fix all the formatting that broke</li><li>Export to PDF</li><li>Realize I forgot to update the header</li><li>Start over</li></ol><p>By application #10, I was spending 15 minutes per resume. The AI part took 30 seconds. The other 14.5 minutes was just… administrative hell.</p><p><strong>What I Actually Needed</strong></p><p>I started thinking about what the ideal flow would look like.</p><p>I’m already on LinkedIn looking at a job. That’s where the job description is. That’s where I’m going to apply. Why do I need to leave that page?</p><p>What if the tool just… lived there? Like, I’m looking at a Software Engineer job at Stripe. I click something. It reads the job description right there. Pulls my base resume. Does its thing. Hands me a PDF.</p><p>No copying. No tab switching. No prompt writing. Just: “I want to apply to this” → click → done.</p><p><strong>Finding Something That Actually Worked</strong></p><p>I couldn’t find a tool that did this. Everything made me go somewhere else. Open their app. Paste the job description. Manually trigger the AI. Download. Upload somewhere else.</p><p>So I got annoyed enough that I built it myself. That’s how Finetune Resume (<a href="https://finetuneresume.app/">https://finetuneresume.app</a>) started. Just a Chrome extension that sits on the job pages I’m already looking at.</p><p>You’re on LinkedIn, Indeed, Greenhouse, wherever. You see a job you like. You click the extension icon. Twenty seconds later you have a tailored PDF. That’s it.</p><p>I’m not saying this because I’m trying to sell you something (okay, maybe a little). I’m saying this because I genuinely couldn’t find anything else that worked this way, and I was shocked that it didn’t exist.</p><p>Every enterprise recruiting tool does this. Big companies have systems that auto match candidates to jobs. But they cost $10k/year and they’re built for recruiters, not job seekers.</p><p>I just wanted the same thing, but for people like me who are actually applying to jobs.</p><p><strong>Why This Actually Matters</strong></p><p>Here’s what I noticed after I built this:</p><p>Before: I was applying to maybe 2–3 jobs per day max. I’d get tired. Start overthinking. “Is this even worth applying to?” I’d apply to fewer jobs because each one felt like work.</p><p>After: I applied to 30 jobs in one week. Not because I lowered my standards. Because it stopped being exhausting.</p><p>And that’s the thing that nobody talks about. The tool doesn’t just save time. It changes your behavior.</p><p>When something takes 2 minutes instead of 20, you do it 10 times more often. You say yes to opportunities you would have skipped. You apply to the reach jobs. You try the companies you thought you weren’t qualified for.</p><p>Most of the time, you ARE qualified. You’re just not matching your experience to what they’re asking for. And when you have to do that manually 50 times, you give up.</p><p><strong>What to Look For</strong></p><p>If you’re shopping for an AI resume tool (or building one), ask yourself:</p><p>Does this actually save me time, or does it add steps? If I have to copy paste more than once, it’s adding steps.</p><p>Can I use this while I’m already looking at jobs, or do I have to go somewhere else? Context switching kills momentum. The best tool is the one that lives where you’re already working.</p><p>Does it actually rewrite my content, or just suggest keywords? Keyword matching is not the same as intelligent tailoring. One makes you sound like a robot. The other makes you sound relevant.</p><p>Will I actually use this, or will I give up after the free trial? Be honest. If it feels like work, you won’t use it when you’re stressed and tired and on application #40.</p><p>Most tools fail at least two of these. Took me trying six different ones before I gave up and built what I actually needed.</p><p>Maybe you’ll have better luck. Or maybe you’ll end up building your own thing too. Either way, don’t settle for tools that make you do more work than you were doing before.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cda5dc61cd7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Tried 5 AI Resume Tools. Here’s What Actually Worked.]]></title>
            <link>https://snehitvaddi-writes.medium.com/i-tried-5-ai-resume-tools-heres-what-actually-worked-f276f56ce2fd?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/f276f56ce2fd</guid>
            <category><![CDATA[ai-resume-builder]]></category>
            <category><![CDATA[best-ai-tools]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[ats-friendly-resume]]></category>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 04:22:51 GMT</pubDate>
            <atom:updated>2026-02-11T04:22:51.826Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGLsLSx5hB0YXqU1ECg2sg.png" /></figure><p>I’ve been job hunting for three months. I’m tired, my savings account is crying, and I’ve applied to maybe 80 jobs at this point. Somewhere around application 30, I started wondering if there was a better way than spending 45 minutes customizing my resume for every single job.</p><p>So I tried the AI resume tools everyone keeps talking about. Here’s what I actually found.</p><h3><a href="https://www.tealhq.com/?utm_campaign=[PMax]_Brand&amp;utm_medium=cpc&amp;utm_source=google&amp;utm_content=&amp;utm_term=&amp;utm_group=&amp;cc_platform=google&amp;cc_campaignid=23238633329&amp;cc_adgroupid=&amp;cc_adid=&amp;cc_keyword=&amp;cc_matchtype=&amp;cc_device=c&amp;cc_network=x&amp;cc_placement=&amp;cc_location=9027199&amp;cc_adposition=&amp;gad_source=1&amp;gad_campaignid=23233501080&amp;gbraid=0AAAAACajvHQLC5-xs2R1rCUyr781NxrtW&amp;gclid=Cj0KCQiAy6vMBhDCARIsAK8rOgmQ35zmBp41JLOOke--kFawlq0ZKM4MqCL-HdqitW4iE6FO5hmYatoaAgOKEALw_wcB">Teal</a>: The Job Tracker That Does Resumes Too</h3><p>Teal is genuinely good at one thing: keeping your job applications organized. You get a Kanban board where you can track every job you’ve applied to, and honestly, that alone made me feel less like I was throwing resumes into a void.</p><p>The resume builder is fine. You pick a template, fill in your info, and it looks professional. Where Teal falls short is the tailoring part. You have to manually copy the job description, paste it into Teal, then manually adjust your bullet points based on what you think matches. It’s better than doing it from scratch, but I still spent 20–30 minutes per application.</p><p><strong>Good for:</strong> People who want job tracking and basic resume building in one place<br> <strong>Not great for:</strong> Actually saving time on tailoring</p><h3><a href="https://www.jobscan.co/?utm_term=jobscan&amp;utm_campaign=Brand&amp;utm_source=google&amp;utm_medium=cpc&amp;hsa_acc=6653739431&amp;hsa_cam=13543830640&amp;hsa_grp=124066336456&amp;hsa_ad=738451854895&amp;hsa_src=g&amp;hsa_tgt=aud-1967227894963:kwd-329216966316&amp;hsa_kw=jobscan&amp;hsa_mt=e&amp;hsa_net=adwords&amp;hsa_ver=3&amp;gad_source=1&amp;gad_campaignid=13543830640&amp;gbraid=0AAAAADcNrtDyQcwfdSmDbhhDRG4ImNk6Z&amp;gclid=Cj0KCQiAy6vMBhDCARIsAK8rOgno35n--8NXRsFH0GiFXMTglBjqehaMwA0mDSoPdwd3YlPjfi_JvPUaAvMQEALw_wcB">Jobscan</a>: The ATS Obsessed One</h3><p><a href="https://www.jobscan.co/?utm_term=jobscan&amp;utm_campaign=Brand&amp;utm_source=google&amp;utm_medium=cpc&amp;hsa_acc=6653739431&amp;hsa_cam=13543830640&amp;hsa_grp=124066336456&amp;hsa_ad=738451854895&amp;hsa_src=g&amp;hsa_tgt=aud-1967227894963:kwd-329216966316&amp;hsa_kw=jobscan&amp;hsa_mt=e&amp;hsa_net=adwords&amp;hsa_ver=3&amp;gad_source=1&amp;gad_campaignid=13543830640&amp;gbraid=0AAAAADcNrtDyQcwfdSmDbhhDRG4ImNk6Z&amp;gclid=Cj0KCQiAy6vMBhDCARIsAK8rOgno35n--8NXRsFH0GiFXMTglBjqehaMwA0mDSoPdwd3YlPjfi_JvPUaAvMQEALw_wcB">Jobscan</a> does one thing really well: it tells you if your resume will make it past the robots. You paste your resume and a job description, and it gives you a match score with a breakdown of which keywords you’re missing.</p><p>The problem? You still have to manually rewrite your resume to include those keywords. And sometimes the suggestions are… weird. Like, yes, technically the job description mentions “stakeholder management” five times, but I’m applying to be a software engineer, not a project manager.</p><p>I used Jobscan for about two weeks. My ATS scores went up. My interview rate did not.</p><p><strong>Good for:</strong> Understanding what ATS systems look for<br> <strong>Not great for:</strong> Actually rewriting your resume</p><h3><a href="https://www.kickresume.com/en/">Kickresume</a>: The Pretty One</h3><p><a href="https://www.kickresume.com/en/">Kickresume</a> has beautiful templates. Like, legitimately gorgeous. If you care about design, you’ll love this.</p><p>The AI writing assistant is decent for generating bullet points, but it’s generic. You know that feeling when you read something and can immediately tell it was written by AI? That’s what Kickresume’s suggestions feel like. Lots of “spearheaded initiatives” and “drove results.”</p><p>I tried using Kickresume for a senior engineering role at a startup. The AI suggested I “orchestrated cross-functional synergies.” I’m a backend developer. I write APIs and fix bugs. No one is letting me orchestrate anything.</p><p><strong>Good for:</strong> Making your resume look professional<br> <strong>Not great for:</strong> Writing that sounds like you</p><h3><a href="https://resumeworded.com/">Resume Worded</a>: The Feedback Machine</h3><p><a href="https://resumeworded.com/">Resume Worded</a> is like having a very opinionated editor review your resume. It scans your bullet points and tells you what’s weak, what’s too vague, what needs metrics.</p><p>The feedback is actually useful. It pushed me to add more numbers and make my accomplishments clearer. But it’s still you doing the work. Resume Worded tells you what’s wrong. You have to fix it.</p><p>I spent about an hour per resume with Resume Worded. Better than before, but not exactly fast.</p><p><strong>Good for:</strong> Learning to write better bullet points<br> <strong>Not great for:</strong> Speed</p><h3>⭐️⭐️⭐️ <a href="https://finetuneresume.app/">Finetune Resume AI</a>: The One I Kept Using</h3><p>Full transparency: I kept using <a href="https://finetuneresume.app/">Finetune Resume</a> because it was the only one that actually saved me time.</p><p>Here’s how it works: You upload your base resume once. Then when you’re on LinkedIn or Indeed looking at a job, you click the extension and it reads the job description automatically. No copy pasting. Thirty seconds later, you have a tailored resume.</p><p>The difference is that Finetune Resume actually rewrites your content. Not just keyword stuffing, but rewriting your experience to match what the job is asking for. When I applied to a startup, it emphasized my scrappy side. When I applied to a big company, it emphasized process and scale.</p><p>Is it perfect? No. Sometimes I’d tweak a bullet point or two. But I went from 45 minutes per application to maybe 5 minutes. I applied to way more jobs because it wasn’t exhausting anymore.</p><p><strong>Good for:</strong> Actually saving time while still customizing<br> <strong>Not great for:</strong> People who don’t use LinkedIn/Indeed</p><h3>What I Learned</h3><p>None of these tools are magic. You’re not going to upload your resume and suddenly get interviews at Google. But some make the process way less painful than others.</p><p>If you want job tracking, use Teal. If you need to understand ATS, try Jobscan. If you just want a pretty resume, go with Kickresume.</p><p>But if you’re like me and you’re tired of spending hours customizing resumes, try <a href="https://finetuneresume.app/"><strong>Finetune Resume</strong></a>. It’s the only one that felt like it understood that I needed to apply to 10 jobs this week, not spend all day perfecting one.</p><p>The job market is rough enough. Your resume tool shouldn’t make it harder.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f276f56ce2fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Notes on NumPy (Part-2/2)]]></title>
            <link>https://snehitvaddi-writes.medium.com/quick-notes-on-numpy-part-2-2-5469f349e019?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/5469f349e019</guid>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Sat, 14 Oct 2023 18:49:46 GMT</pubDate>
            <atom:updated>2023-10-14T18:49:46.196Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the second part of our tutorial on NumPy. We will be covering some advanced but essential topics under the programming language. In the first part, we introduced our readers to NumPy and its basic operations like creating arrays, slicing, reshaping, and generating random numbers.</p><p><em>Btw, if you are looking for a Personal or Academic project, ping me @ </em><a href="/service/mailto:v.snehith999@gmail.com"><em>v.snehith999@gmail.com</em></a><em> I have a bunch to guide you.</em></p><p><strong>Section -1: In this section, we will learn about:</strong></p><ul><li>Implementing Universal Functions (Ufuncs)</li><li>Arithmetic Functions</li><li>Trigonometric and Inverse Trigonometric Functions</li><li>Exponents and Logarithms</li><li>Implementing Advanced Ufuncs</li></ul><p><strong>Introduction to Universal Functions (Ufuncs).</strong></p><p><em>Ufuncs</em> in NumPy is simply mathematical functions. These functions include standard arithmetic operations, trigonometric functions, statistical functions, etc.</p><p><em>Ufuncs</em> are used to <em>vectorize</em> operations and thereby remove slow Python loops.</p><p><strong><em>Arithmetic Functions </em></strong>:</p><p>NumPy’s Arithmetic <em>Ufuncs</em> is quite similar to Python’s native arithmetic operations and hence operations like standard addition, subtraction, multiplication, and division can all be easily used:</p><p>Each of these arithmetic operations has a specific NumPy wrapper. Some of the wrappers are:</p><p>+ np.add <br> - np.subtract<br> - np.negative<br> * np.multiply<br> / np.divide<br>// np.floor_divide <br>** np.power <br>% np.modPython Operators VS NumPy wrappers</p><p>Built-in NumPy wrappers for arithmetic operations:</p><p><strong><em>Trigonometric functions</em></strong>:</p><p>NumPy provides many trigonometric functions and some of them are most useful for data scientists, like sin, cos, tan. These trigonometric functions work on radians. Hence, it is important to convert angles into radians. This is done by multiplying the value by pi/180.</p><p><strong><em>Note: </em></strong><em>An array of degrees can be converted into </em>radians<em> by NumPy function </em><strong><em>np.deg2rad([angles])</em></strong></p><p>Here,<em> </em><strong><em>np.linspace()</em></strong> function generates N equally separated numbers between the specified start and end. np.pi is equal to 3.14159… radians which in turn is equal to 180 degrees.</p><p><strong><em>Inverse Trigonometric Functions</em></strong>:</p><p>NumPy also provides various Inverse trigonometric functions. Unlike trigonometric functions, these functions take trigonometric values and return radians.</p><p><strong><em>Exponents and Logarithms</em></strong>:</p><p>Another extremely useful operation available in NumPy Ufuncs is exponents.</p><p>In fact, logarithms are inverse of exponentials. The np.log function is used to find the natural logarithm. It provides two options to compute logarithms, either for base-2 or base-10.</p><p><strong><em>Advances Ufuncs</em></strong>:</p><p>NumPy also provides some interesting aggregates that can be computed directly from the object. Eg. <strong>reduce</strong> and <strong>accumulate</strong> ufuncs.</p><p>Reduce on <strong>np.add</strong> <em>ufuncs</em> returns the sum of all elements in the array. Similarly, reduce on <strong>np.multiply</strong> <em>ufuncs</em> returns the product of all elements in the array.</p><p>Similar to <strong>reduce</strong>, if one would like to store all intermediate results of the computation, one can use <strong>accumulate</strong> in <em>ufuncs</em>.</p><p><strong><em>Multidimensional Aggregation functions</em></strong>:</p><p>Now, let’s move to the various aggregation functions that are provided by NumPy. The aggregation functions operate on unidimensional and multi-dimensional functions. These functions are designed to deal with null and uncertain values. Some of the multidimensional aggregation functions are:</p><p><strong>Section -2: In the next section of the blog, we will learn some other interesting topics related to NumPy. Let’s start with the following:</strong></p><ul><li>Broadcasting</li><li>Rules of Broadcasting</li><li>Examples of Broadcasting</li></ul><p><strong><em>Broadcasting</em></strong>:</p><p>In simple terms. Broadcasting is simply a set of rules for performing binary Ufuncs. The term Broadcasting refers to how NumPy treats arrays with different dimensions during arithmetic operations which leads to certain constraints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*XPE5PfmBgubQu57G.png" /></figure><p>Broadcasting is an extremely useful feature of <em>ufuncs</em> to operate between arrays of different sizes and shapes. Let’s look at a simple example to understand it better:</p><p><strong><em>Rules of Broadcasting:</em></strong></p><p>Broadcasting in NumPy follows a strict set of rules to determine the interaction between the two arrays:</p><ul><li>Rule 1: If the two arrays differ in their number of dimensions, the shape of the one with fewer dimensions is padded with ones on its leading (left) side.</li><li>Rule 2: If the shape of the two arrays does not match in any dimension, the array with a shape equal to 1 in that dimension is stretched to match the other shape.</li><li>Rule 3: If in any dimension, the sizes disagree and neither is equal to 1, an error is raised.</li></ul><p><strong><em>Note:</em></strong> <em>Any NumPy array which undergoes any arithmetic operations should follow these 3 Broadcasting rules.</em></p><p><strong><em>Broadcasting Example 1</em></strong>:</p><p>Let’s consider adding a two-dimensional array to a one-dimensional array:</p><p>The shape of the arrays is as follows:</p><ul><li>M.shape = (2, 3)</li><li>a.shape = (3,)</li></ul><p>If we look at rule 1, it is clear that array <strong>a</strong> has fewer dimensions, so we pad it on the left with ones:</p><ul><li>M.shape -&gt; (2, 3)</li><li>a.shape -&gt; (1, 3)</li></ul><p>Using rule 2, we now see that the first dimension disagrees, so this dimension is stretched to match:</p><ul><li>M.shape -&gt; (2, 3)</li><li>a.shape -&gt; (2, 3)</li></ul><p>Finally, the shapes match and it is clear that the final shape will be <strong>(2, 3):</strong></p><blockquote><strong>M + a = array([[ 1., 2., 3.], [ 1., 2., 3.]])</strong></blockquote><p><strong><em>Broadcasting Example 2</em></strong>:</p><p>Now let’s take a look at an example in which the two arrays are not compatible:</p><p>The shape of the arrays is as follows:</p><ul><li>M.shape -&gt; (3, 2)</li><li>a.shape -&gt; (3, )</li></ul><p>Again, rule 1 tells us that we must pad the shape of <strong>a</strong> with ones:</p><ul><li>M.shape -&gt; (3, 2)</li><li>a.shape -&gt; (1, 3)</li></ul><p>By rule 2, the first dimension of <strong>a</strong> is stretched to match <strong>M</strong>.</p><ul><li>M.shape -&gt; (3, 2)</li><li>a.shape -&gt; (3, 3)</li></ul><p>In the end, we see that according to rule 3, the final shapes do not match. So, these two arrays are incompatible for attempting any operations.</p><p><strong>Import Jovian and Commit</strong>:</p><p><strong>Conclusion:</strong></p><p>With this, we come to the end of PArt 2 of our <strong>Basics of NumPy</strong> series. We have managed to cover many topics, including sequencing, indexing, random numbers, reshaping, Ufuncs, and Broadcasting. We sincerely hope that you have learned not just the basics but have got a good understanding of the intermediate level of <strong><em>NumPy</em></strong> module as well. If you have any questions for us, please do get in touch.</p><p><strong>References:</strong></p><p><strong><em>Complete Jupyter Notebook</em></strong>: <a href="https://jovian.ml/v-snehith999/numpy-basics-part-2">https://jovian.ml/v-snehith999/numpy-basics-part-2</a></p><p><strong>Basics of NumPy — Part 1: </strong><a href="https://hub.jovian.ml/?p=603&amp;preview=true">https://hub.jovian.ml/?p=603&amp;preview=true</a></p><p><strong>Practice NumPy</strong> <strong>functions</strong>: <a href="https://nbviewer.jupyter.org/github/rougier/numpy-100/blob/master/100_Numpy_exercises.ipynb">https://nbviewer.jupyter.org/github/rougier/numpy-100/blob/master/100_Numpy_exercises.ipynb</a></p><p><a href="https://jakevdp.github.io/PythonDataScienceHandbook/02.05-computation-on-arrays-broadcasting.html">https://jakevdp.github.io/PythonDataScienceHandbook/02.05-computation-on-arrays-broadcasting.html</a></p><p><strong><em>👋 </em>About me:</strong></p><p><strong><em>Snehit Vaddi here!</em></strong></p><p>Pursuing Masters in CS at University of Florida. I’m a ML enthusiast and Data freak. Teaching and learning go hand-in-hand for me, fueling my tech journey. Oh, and by the way, I’m on the lookout for some exciting Summer ’24 internships in the US. Let’s connect and collaborate!</p><p><strong>🤝Linkedin: </strong><a href="https://www.linkedin.com/in/snehitvaddi/">https://www.linkedin.com/in/snehitvaddi/</a></p><p><strong>👩‍💻Github: </strong><a href="https://github.com/snehitvaddi">https://github.com/snehitvaddi</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5469f349e019" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ UniTrends: My First Data Engineering Project — US F1 VISA Trends.]]></title>
            <link>https://snehitvaddi-writes.medium.com/unitrends-my-first-data-engineering-project-us-f1-visa-trends-e75ff27c26b2?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/e75ff27c26b2</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[growth]]></category>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 03:09:38 GMT</pubDate>
            <atom:updated>2023-10-29T19:55:03.869Z</atom:updated>
            <content:encoded><![CDATA[<h3>🌐 UniTrends: My First Data Engineering Project — US F1 VISA Trends.</h3><p>Using Telegram API, Kafka, and AWS tools, I analyzed ‘US F1 VISA’ group chats, refining my YouTube content strategy and gaining 10k subscribers through data-driven insights.</p><p>🌟 Embarking my Data Engineering Journey</p><p>As someone new to the realm of data engineering, every step I take feels like both an exploration and a revelation. Venturing into this field, my aim was not just to learn, but to create something meaningful right from the outset. The “US F1 VISA experiences” group on Telegram presented just the right opportunity. Through this project, I hoped to delve deep into the world of data, derive insights, and use those insights to fuel my YouTube channel. The outcome? A significant boost in viewership and an even greater boost in confidence. Join me as I recount this fascinating journey, from the initial challenges to the rewarding outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*NFtJLANZgyOa9xajNpXdAQ.png" /></figure><p>🧠 The Learning Landscape</p><p>The world of data engineering is expansive. Tools like Kafka, AWS Glue, and Amazon Athena, once seeming enigmatic, gradually unveiled their functionalities, proving instrumental to the project&#39;s architecture.</p><p>🔧 Project Implementation:</p><p>You can access my complete code here:</p><p><a href="https://github.com/snehitvaddi/UniTrends/tree/main">GitHub - snehitvaddi/UniTrends: UniTrends: Harnessing the power of data engineering to analyze and derive insights from the US F1 VISA experiences group on Telegram. A project to guide content creation for a YouTube channel and showcase data engineering skills.</a></p><p>I followed this <a href="https://youtu.be/KerNf0NANMo?si=d1roTQ4e224Gi8n1">YouTube tutorial</a> by Darshil Parmar.</p><p>a. Data Extraction from Telegram:<br>The `Teletest.py` script, powered by Python, delved into the Telegram chats, sifting through raw data to prepare it for analysis.</p><p>b. Real-time Data Streaming with Kafka:<br>Kafka, with its prowess in real-time data streaming, came to the fore. The `producer.ipynb` and `consumer.ipynb` notebooks orchestrated the data flow, channeling it towards Amazon S3.</p><p>c. Data Storage in Amazon S3:<br>Amazon S3 stood out for its reliability, ensuring the data&#39;s safety and accessibility.</p><p>d. Structuring with AWS Glue:<br>AWS Glue played a pivotal role in organizing the data, making it structured and query-ready.</p><p>e. Deep Dive Analysis using Amazon Athena:<br>Harnessing Amazon Athena, the data was meticulously analyzed, revealing patterns and trends that informed content creation.</p><p>🌟 Triumphs, Challenges, and Revelations</p><p>The journey was filled with highs and lows. The eureka moments when code executed flawlessly, the challenges in tool integration, and the invaluable insights all contributed to a richer learning experience and tangible outcomes.</p><p>🌱 Reflections and Forward-Look</p><p>The journey into data engineering has just begun. With myriad opportunities ahead, the excitement is palpable. For fellow data aficionados, the invitation is open: explore, innovate, and share. Dive deeper with the <a href="https://github.com/snehitvaddi/UniTrends/tree/main">GitHub repository</a> and engage on my <a href="https://www.youtube.com/channel/UCv7NNu04fbf7Mliy8PWfY9w">YouTube channel</a>.</p><p><strong><em>👋 </em>About me:</strong></p><p><strong><em>Snehit Vaddi here!</em></strong></p><p>Pursuing Masters in CS at University of Florida. I’m a ML enthusiast and Data freak. Teaching and learning go hand-in-hand for me, fueling my tech journey. Oh, and by the way, I’m on the lookout for some exciting Summer ’24 internships in the US. Let’s connect and collaborate!</p><p><strong>🤝Linkedin: </strong><a href="https://www.linkedin.com/in/snehitvaddi/">https://www.linkedin.com/in/snehitvaddi/</a></p><p><strong>👩‍💻Github: </strong><a href="https://github.com/snehitvaddi">https://github.com/snehitvaddi</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e75ff27c26b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Notes on Pandas(Part-2/2)| Snehit Vaddi]]></title>
            <link>https://snehitvaddi-writes.medium.com/pandas-part-2-snehitvaddi-ee93e0faf2ad?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee93e0faf2ad</guid>
            <category><![CDATA[btech-projects]]></category>
            <category><![CDATA[machine-learning-projects]]></category>
            <category><![CDATA[pandas-tutorial]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python-projects]]></category>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Tue, 31 Aug 2021 07:26:12 GMT</pubDate>
            <atom:updated>2021-08-31T07:30:59.798Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Short Notes on Pandas(Part-2/2)| Snehit Vaddi</h3><p>Welcome to the second part of our Basics of Pandas series. In <a href="https://hub.jovian.ml/uncategorized/basics-of-pandas-part-1/">the first part</a>, we got introduced to Pandas, what it is and its various basic concepts like, creation of series, DataFrames in different methods, indexing, indexers, Ufuncs, and handling of missing data. In this blog, we are going to learn about slightly advanced, but definitely some of the most used concepts of Pandas. So, without any further adieu, let’s begin!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*CecK2UFWyRtRbPbNH9pLaQ.png" /></figure><p><em>Btw, if you are looking for a Personal or Academic project, ping me. I have a bunch to guide you. Ping me</em><strong><em> @ </em></strong><a href="/service/mailto:v.snehith999@gmail.com"><strong><em>v.snehith999@gmail.com</em></strong></a><strong><em> 📚</em></strong></p><p><strong>Concatenation:</strong></p><p>Let&#39;s start booming by importing pandas and NumPy libraries!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D0&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D0&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c7f9abba4f406688b693b88d1421841/href">https://medium.com/media/3c7f9abba4f406688b693b88d1421841/href</a></iframe><p>The concatenation of Panda’s series and DataFrame objects is similar to the concatenation of NumPy arrays, which can be done via <strong><em>np.concatenate</em></strong> function. Let’s have a quick look at NumPy array concatenation.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D2&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D2&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/bed375ad4475a6380de701bee803651b/href">https://medium.com/media/bed375ad4475a6380de701bee803651b/href</a></iframe><p>Please note that here the concatenation happened column-wise by default, since no axis attribute was specified.</p><p>Pandas use a function, <strong><em>pd.concat()</em></strong> which acts similar to <strong><em>np.concatenate()</em></strong> with more number of options. The function <strong><em>pd.concat()</em></strong> works for both <strong>Series</strong> and <strong>DataFrame</strong> objects.</p><p><strong><em>Concatenation of Pandas Series and DataFrame:</em></strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D3&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/50faae03fddc92f1ab258ba749286f08/href">https://medium.com/media/50faae03fddc92f1ab258ba749286f08/href</a></iframe><p>Concatenation of higher-dimensional objects, such as DataFrames:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D4&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/be5010726f2b31beb910dd2137385291/href">https://medium.com/media/be5010726f2b31beb910dd2137385291/href</a></iframe><p>Pandas also provide flexibility to concatenate in specific axis. By default, the concatenation takes place row-wise within the DataFrame.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D5&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/72da5625ee3d576b641af8344d10ecc2/href">https://medium.com/media/72da5625ee3d576b641af8344d10ecc2/href</a></iframe><p>Here, the axis is assigned as 1 which represents row-wise concatenation. Similarly, we can concatenate column-wise by specifying the axis as zero (axis=0).</p><p>Sometimes, one may ignore the index and prefer a continuous integer index. This can be done by specifying the parameter ignore_index=True flag in <strong><em>concat()</em></strong> function.</p><p>Another option is to use the keys option to specify a label for the data sources. This creates a hierarchical index which basically means an index above other indexes.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D6&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/68e5c3ee05e45f8de43ecdec6c27b1a7/href">https://medium.com/media/68e5c3ee05e45f8de43ecdec6c27b1a7/href</a></iframe><p><strong><em>Concatenation with joins</em></strong>:</p><p>In general, data from different sources can have different column names. The function <strong><em>pd.concat()</em></strong> offers several options to deal with such data.</p><p>The join parameter in <strong><em>pd.concat()</em></strong> function provides different ways to combine different DataFrames. By default, the join is a union of input columns <strong>(join = ‘outer’)</strong>, but we can change the intersection of the columns using <strong>(join = ‘inner’)</strong>.</p><p><a href="https://jovian.ml/v-snehith999/basics-of-pandas-part-2/v/5&amp;cellId=7">https://jovian.ml/v-snehith999/basics-of-pandas-part-2/v/5&amp;cellId=7</a></p><p><strong><em>Pandas Merge() function:</em></strong></p><p>Joining and merging are very essential functions in databases for data interaction. The <strong><em>pd.merge()</em></strong> function implements various different types of joins like one-to-one, many-to-one, and many-to-many joins.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D8&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D8&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/3491659df611e65453c7e6571d5e0e86/href">https://medium.com/media/3491659df611e65453c7e6571d5e0e86/href</a></iframe><p><strong><em>Merging with specific keys:</em></strong></p><p>Often, DataFrame column names will not match. In such a case, the function pd.merge() is really helpful and provides a variety of options.</p><p><strong><em>Using </em></strong><strong><em>on Keyword</em></strong>:</p><p>While merging two different DataFrames with different columns, we explicitly specify the name of the column using the on keyword. The following example will make it easier to understand:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D9&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D9&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/039b7422e0b1beb88cf24cc7d6ff24dc/href">https://medium.com/media/039b7422e0b1beb88cf24cc7d6ff24dc/href</a></iframe><p><strong><em>Note:</em></strong> While merging DataFrames using the on keyword, one should make sure that both left and right DataFrames have the same column name.</p><p>Let’s check what happens if we specify a column that is not common in DataFrames:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D10&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/1545a888d6bb8389f5d049eb5a92193a/href">https://medium.com/media/1545a888d6bb8389f5d049eb5a92193a/href</a></iframe><p><strong><em>The </em></strong><strong><em>left_on and </em></strong><strong><em>right_on keywords</em></strong>:</p><p>In some cases, one may wish to merge two datasets having different column names but when their content is relatable, one can use the <strong>left_on</strong> and <strong>right_on</strong> keywords to specify the two-column names.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D11&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D11&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c64d82c5dac3728ef133b8100cf9500/href">https://medium.com/media/6c64d82c5dac3728ef133b8100cf9500/href</a></iframe><p><strong><em>The </em></strong><strong><em>left_index and </em></strong><strong><em>right_index Keywords:</em></strong></p><p>Sometimes, rather than merging on a column, one may like to merge on an index. In this case, the index can be used as the key of merging by specifying the <strong>left_index</strong> and/or <strong>right_index</strong> flags to True. For example, in such a case the data may look like this:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D12&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D12&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/261c5899aae86798d78c67d85e42e1f5/href">https://medium.com/media/261c5899aae86798d78c67d85e42e1f5/href</a></iframe><p><strong>Simple</strong> <strong>Aggregation in Pandas</strong> :</p><p>Pandas series and DataFrames include many common aggregates like:</p><ul><li>count() # Total count of items</li><li>first() # First item</li><li>mean(), median() # Mean and Median</li><li>min(), max() # Minimum and Maximum</li><li>std(), var() # Standard deviation and variance</li><li>prod() # Product of all items</li><li>sum() # Sum of all items</li></ul><p><strong><em>Aggregation on Series</em></strong>:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D14&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D14&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/135184c08f70454c4d4fa4ab3eedede9/href">https://medium.com/media/135184c08f70454c4d4fa4ab3eedede9/href</a></iframe><p><strong><em>Aggregation on DataFrames:</em></strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D15&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D15&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/fbfa6631305dc02612a2467669950d6a/href">https://medium.com/media/fbfa6631305dc02612a2467669950d6a/href</a></iframe><p><strong>Pandas <em>GroupBy</em> function</strong>:</p><p>A <strong><em>groupby</em></strong> operation involves one of the following operations on the data objects: <br>- Split <br>- Apply<br>- Combine</p><ul><li>The Split step involves splitting data into sets depending on the value of the specified key.</li><li>The Apply step involves operations like Aggregation, Transformation, Filtration.</li><li>The Combine step merges the results of these operations into an output array.</li></ul><p>Instead of doing all the above steps manually, Pandas provides a function called <strong><em>groupby</em></strong> that can perform several operations like <em>sum</em>, <em>mean</em>, <em>count</em>, <em>min</em>, or other aggregates in a single step! Doesn’t that sound amazing?</p><p>Let’s import a Pandas DataFrame form Seaborn datasets to see an example of groupby() function:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D16&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D16&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/fab6e9a7cd3ed371079bdc4151e1cf6f/href">https://medium.com/media/fab6e9a7cd3ed371079bdc4151e1cf6f/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D17&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D17&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f350f673a0abc305b6591af2487020f/href">https://medium.com/media/1f350f673a0abc305b6591af2487020f/href</a></iframe><p>As we can see, no computation is done until we call some aggregate on the object. We got computed values only after specifying the aggregate function.</p><p>Also, it is interesting to note that the <strong><em>groupby</em></strong> function gives one the flexibility to provide either a single aggregate or a list of aggregate functions.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D19&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D19&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d30e289fba08323daaa48ba618a9492/href">https://medium.com/media/4d30e289fba08323daaa48ba618a9492/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D20&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D20&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/919b9b91c729a3fc1d984f0fa0b557bf/href">https://medium.com/media/919b9b91c729a3fc1d984f0fa0b557bf/href</a></iframe><p><strong><em>Transformations:</em></strong></p><p>The Transformation function on a group or a column returns an object that is indexed as the same size that is being grouped. Thus, the transform should return a result that is the same size as that of a group chunk.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D22&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part-2%2Fv%2F5%26cellId%3D22&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F92ee8c0179724f6ea7c26b1230198d34%2Fpreview%2Fe1a3f6307c454fc9be64bb78fcbb711a&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa0097bec9d76265a00a708dce760bbd/href">https://medium.com/media/aa0097bec9d76265a00a708dce760bbd/href</a></iframe><p><strong>Conclusion:</strong></p><p>So here we are at the end of the two-part Pandas Quick Notes series!<br>We have learned various basic concepts like Concatenation of series, DataFrames, joins, merge function, and its parameters, Aggregation, and GroupBy function. Get in touch and let me know what topics you think we should be discussing the next.</p><p><strong>References:</strong>📗</p><ul><li><strong>Complete Jupyter Notebook</strong>: <a href="https://jovian.ml/v-snehith999/basics-of-pandas-part-2">https://jovian.ml/v-snehith999/basics-of-pandas-part-2</a></li><li><strong>Pandas official documentation:</strong> <a href="https://pandas.pydata.org/">https://pandas.pydata.org/</a></li><li><strong>Python Data Science Handbook</strong>: <a href="https://jakevdp.github.io/PythonDataScienceHandbook/03.00-introduction-to-pandas.html">https://jakevdp.github.io/PythonDataScienceHandbook/03.00-introduction-to-pandas.html</a></li><li><strong>Python Pandas: </strong><a href="https://www.tutorialspoint.com/python_pandas/python_pandas_groupby.htm">https://www.tutorialspoint.com/python_pandas/python_pandas_groupby.htm</a></li><li><strong>Pandas Tutorial</strong>: <a href="https://jakevdp.github.io/PythonDataScienceHandbook/03.00-introduction-to-pandas.html">https://www.geeksforgeeks.org/pandas-tutorial/</a></li><li><strong>Pandas — powerful Python data analysis toolkit</strong>:<a href="https://jakevdp.github.io/PythonDataScienceHandbook/03.00-introduction-to-pandas.html"> https://pandas.pydata.org/docs/pandas.pdf</a></li></ul><p><strong>Author:</strong>🤠</p><p><strong><em>- Snehit Vaddi</em></strong></p><p>I am a Machine Learning enthusiast. I teach machines how to see, listen, and learn.</p><p><strong>Linkedin: </strong><a href="https://www.linkedin.com/in/snehit-vaddi-73a814158/"><strong>https://www.linkedin.com/in/snehit-vaddi/</strong></a></p><p><strong>Github: </strong><a href="https://github.com/snehitvaddi"><strong>https://github.com/snehitvaddi</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee93e0faf2ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essentials of Pandas (Part-1) | Snehit Vaddi]]></title>
            <link>https://snehitvaddi-writes.medium.com/essentials-of-pandas-part-1-snehit-vaddi-45d5db26d9d1?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/45d5db26d9d1</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Tue, 09 Mar 2021 19:37:06 GMT</pubDate>
            <atom:updated>2023-05-25T20:43:37.295Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pandas Quick notes(Part-1/2) | Snehit Vaddi</h3><p>If you are even remotely interested in data science, this blog post will surely help you. In this post, we are going to talk about Pandas. Not the cute animal, but Pandas stands for ‘Python Data Analysis’. <a href="https://pandas.pydata.org/"><strong>Pandas</strong></a> is an open-source Python library that is built on top of NumPy. As the name suggests, it provides various methods to do fast analysis as well as data cleaning and preparation.</p><p>Pandas is fast, flexible, and is designed to make working with ‘relational’ or ‘labeled’ data both easy and intuitive.</p><ul><li><a href="https://v-snehith999.medium.com/beginner-in-ml-have-a-look-at-numpy-basics-part-1-snehit-vaddi-50d4b5782fd">Beginner in ML? Have a look at NumPy Basics — Part 1 | Snehit Vaddi</a></li><li><a href="https://v-snehith999.medium.com/numpy-basics-for-ml-noobs-part-2-snehit-vaddi-f8a374d93705">NumPy Basics for ML Noobs (Part 2)| Snehit Vaddi</a></li></ul><p><strong>When to use Pandas?</strong></p><p>Pandas is used when one is working with tabular data, such as data stored in spreadsheets, databases, and tables, etc. Pandas help one explore, clean, and process data.</p><p><strong>Installation and Importing Pandas:</strong></p><p>Pandas can be installed via pip command from <a href="https://pypi.org/project/pandas/">PyPI</a>.</p><p>!pip install pandas</p><p>Often, Pandas is imported as pd. Usually, along with Pandas, NumPy is also imported.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D0&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D0&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F35ba5f08788442efaed66e91b6c2637a%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/9369c92a06cbf068e4170892e8c672ef/href">https://medium.com/media/9369c92a06cbf068e4170892e8c672ef/href</a></iframe><p><strong>Pandas Series Object</strong>:</p><p>Pandas Series is a one-dimensional labeled array capable of holding any data type element. Unlike Python lists, it allows only the same type of elements.</p><p>Pandas Series can be created in different ways, like:</p><ul><li>Using Python lists</li><li>Using NumPy arrays</li><li>Using Dictionary keys</li></ul><p><strong><em>Series creation using Python lists:</em></strong></p><p>A Pandas Series is a one-dimensional array of indexed data. It can be created from a list as follows:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D2&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D2&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Fc799e980958348ab9872eec1b5c92433%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f3688b5b831ab79f2871df17fb271d3/href">https://medium.com/media/0f3688b5b831ab79f2871df17fb271d3/href</a></iframe><p><strong><em>Note:</em></strong> In the output of the above code, the Series assigns a sequence of indices to a series of values. We can access the values using those index values.</p><p><strong><em>Series creation using Dictionaries:</em></strong></p><p>A Pandas Series can also be created using Python dictionaries with or without explicit indices.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D4&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F4ca0c0f2379c4bc2b4d5ce6e4f89b157%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/d72cc177a24eba84a3003e2a3dd7c569/href">https://medium.com/media/d72cc177a24eba84a3003e2a3dd7c569/href</a></iframe><p><strong><em>Note:</em></strong> If explicit indices are not specified, pandas constructs a series using keys of a given dictionary.</p><p><strong><em>Series creation using NumPy arrays:</em></strong></p><p>A Pandas Series can also be created using NumPy arrays with explicit indices as follows:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D3&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F0184fe859408486fb9c0aa9df4b51e62%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/1a488a8818a459e848f0a34703da4124/href">https://medium.com/media/1a488a8818a459e848f0a34703da4124/href</a></iframe><p><strong><em>Note:</em></strong> Creating a Series with NumPy arrays makes it more efficient than a Python list. Often, to create a Series using the NumPy function, we use different functions like numpy.linespace(), numpy.random.randn()</p><p><strong><em>Ways of accessing Pandas Series elements:</em></strong></p><p>Series elements can be accessed element-wise or by a range of elements as specified below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D5&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Fdfde38817f6546ecb7790274af03bccb%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/b350e2688c3581fe0b8d835ad3e8ed1c/href">https://medium.com/media/b350e2688c3581fe0b8d835ad3e8ed1c/href</a></iframe><p><strong>Pandas DataFrame Object:</strong>🔠</p><p>Pandas DataFrame is a two-dimensional labeled data structure with columns. It is the most commonly used data structure in Pandas.</p><p>If a Series is a one-dimensional array with flexible indices, a DataFrame is a two-dimensional array with both flexible row indices and flexible column names.</p><p>A Dataframe can be constructed in different methods like:</p><ul><li>Using Series</li><li>Using List of Lists</li><li>Using NumPy Arrays</li><li>Using Python Dictionaries</li></ul><p><strong><em>DataFrame creation using Pandas Series:</em></strong></p><p>To create a DataFrame using series, let’s first construct two series named <strong>area</strong> and <strong>population</strong>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D9&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D9&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F643aa73560a84246bf6566baece0f8d0%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/34337738edbca9e796d53b557f4c5e91/href">https://medium.com/media/34337738edbca9e796d53b557f4c5e91/href</a></iframe><p>DataFrame creation using two series i.e., population and area.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D10&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F3acce8a4f815400c883bdb481400f811%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/70743369a3c21ca053cfd7280f2ae750/href">https://medium.com/media/70743369a3c21ca053cfd7280f2ae750/href</a></iframe><p>In order to get column names and index labels, we can use <strong>df.index()</strong> and <strong>df.columns()</strong> methods. Please note that here df represents, DataFrame that we created.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D11&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D11&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F6e63677a2eb444978392f838a8cd8f33%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd9415a369268f088195544f79f98be0/href">https://medium.com/media/fd9415a369268f088195544f79f98be0/href</a></iframe><p><strong><em>Creation of DataFrame for single DataFrame object:</em></strong></p><p>A DataFrame is a collection of Series objects, and a single-column DataFrame can be constructed from a single Series or a single DataFrame object.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D12&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D12&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Fada34106ad5f4e9facebca8c8dcc1baf%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/0933ea38fca47f1421e12d2afd89e4cf/href">https://medium.com/media/0933ea38fca47f1421e12d2afd89e4cf/href</a></iframe><p><strong><em>DataFrame creation using Python List of Lists:</em></strong></p><p>A DataFrame can also be constructed using a list of lists with or without additional parameters like index or columns.</p><p>When index and column parameters are not specified for the creation of DataFrame, Pandas assigns DataFrame with a sequence of integers to the sequence of rows and columns.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D13&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D13&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F4265645d1dfc4602b726d36fd5da8277%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/25e4d424971d45c811a5e95cfc8ba664/href">https://medium.com/media/25e4d424971d45c811a5e95cfc8ba664/href</a></iframe><p>Let’s consider the following example for the creation of DataFrame using a list of lists with columns attribute:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D14&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D14&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F465981c6f4c54bca8954f50cfbfd5dc0%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/4257c0710f6777347e743320067e77f2/href">https://medium.com/media/4257c0710f6777347e743320067e77f2/href</a></iframe><p><strong><em>DataFrame creation using Python Dictionaries:</em></strong></p><p>Similar to Sequence creation, DataFrame can also be constructed using dictionaries. Here, Pandas considers keys as column labels:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D16&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D16&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Fc3b58ecda52c49219d35493c8ff7a207%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e98c62ff0ba775f9b29f270fd74fd42/href">https://medium.com/media/9e98c62ff0ba775f9b29f270fd74fd42/href</a></iframe><p><strong><em>DataFrame creation using NumPy arrays:</em></strong></p><p>Let’s consider a three-dimensional NumPy array. We can create a DataFrame with any specified column and index names.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D17&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D17&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F0d549fda0c86408ebdcd965f46bf5829%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/197782fa1633ac9c0fc8a9701df74a97/href">https://medium.com/media/197782fa1633ac9c0fc8a9701df74a97/href</a></iframe><p><strong>Pandas Indexers : loc, iloc, ix</strong></p><p>In Pandas, there are a lot of ways to pull the elements, rows, and columns from a DataFrame. These slicing and indexing conventions can, however, become a source of confusion.</p><p>If you’re already confused about this, consider the following example to get some clarity:</p><p>Consider a series with explicit indices, an indexing operation such as data[1] will use the explicit indices, while a slicing operation, like data[1:3], will use the implicit index.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D21&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D21&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F3b0074b342fa4891bfdd6a2327edfd44%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/02ca6ab31fdd2130a68c201fd48e171a/href">https://medium.com/media/02ca6ab31fdd2130a68c201fd48e171a/href</a></iframe><p>Because of this potential confusion in the case of integer indexes, Pandas provides some special indexer functions, namely:</p><ul><li>Dataframe.loc[]: This allows indexing and slicing based on an explicit index</li><li>Dataframe.iloc[]: This allows indexing and slicing based on implicit Python-style index</li><li>Dataframe.ix[]: This function is used for both implicit and explicit slicing — both label and integer-based slicing are supported</li></ul><p>Using the <strong>loc</strong> indexer, we can index data based on explicit indexes. Consider a series named data:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D22&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D22&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Fd48b596a7ab44efc9b2c00f9cbcd7d84%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc1534e411e511edf47cb6a6323882a1/href">https://medium.com/media/bc1534e411e511edf47cb6a6323882a1/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D23&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D23&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F031bafb2d5a442c09cedb7960d3ae92d%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/9aa34da58c60de8b7c75f9a0b7eb6102/href">https://medium.com/media/9aa34da58c60de8b7c75f9a0b7eb6102/href</a></iframe><p>Using the <strong>iloc</strong> indexer, we can index data based on the implicit index:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D25&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D25&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Fc16d92cf2d434320a878d4732c3c80d2%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/0e4f4aeef5bfde7a7780956b55ff7546/href">https://medium.com/media/0e4f4aeef5bfde7a7780956b55ff7546/href</a></iframe><p><strong><em>Some important operations on DataFrames:</em></strong></p><p>To understand this better, let’s consider a DataFrame that we had created earlier ie; population and area DataFrames.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D27&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D27&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Fa349a65a9b5c48efbdbf0dc4f72fb354%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce9cad7da782a9f9bdd7fd4809326ac2/href">https://medium.com/media/ce9cad7da782a9f9bdd7fd4809326ac2/href</a></iframe><p><strong><em>Division of two DataFrames</em></strong>:</p><p>Dividing two <strong>Series</strong> objects divides the respective integer elements. Pandas assign NaN(Not a Number) if any number is not available.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D28&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D28&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Ff197d583afce4ae7b667828c5f318217%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c65b254a32da8f6f2c9b571723a78f27/href">https://medium.com/media/c65b254a32da8f6f2c9b571723a78f27/href</a></iframe><p><strong><em>Union of indices</em></strong>:</p><p>Union of indices of two input arrays results in an array with a collection of all indices of both arrays/series.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D28&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D28&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Ff197d583afce4ae7b667828c5f318217%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c65b254a32da8f6f2c9b571723a78f27/href">https://medium.com/media/c65b254a32da8f6f2c9b571723a78f27/href</a></iframe><p><strong><em>Addition of DataFrames:</em></strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D30&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D30&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F83261e2bf179483491689b4a6e8bee42%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/36e3ac5b12bd92b787cdc07beec2d197/href">https://medium.com/media/36e3ac5b12bd92b787cdc07beec2d197/href</a></iframe><p><strong>Handling with Missing Data:</strong></p><p>In the real world], data is rarely continuous and homogeneous. That would be too good to be true! Missing Data can occur when no information is provided for one or more items. To make matters more complicated, different data sources may indicate missing data in different ways.</p><p>But, don’t worry Pandas provides various methods and tools for handling missing data. Here, we will refer to missing data in general as null, NaN (an acronym for Not a Number), or <em>NA</em> values.</p><p>Pandas treat None and NaN as essentially interchangeable for indicating missing or empty values.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D34&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D34&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F6cc10da6fa1348bd8a713ad79943fc39%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/64fe6acce83b9df276f99e57a0e5f9d0/href">https://medium.com/media/64fe6acce83b9df276f99e57a0e5f9d0/href</a></iframe><p><strong><em>Operating on Null Values</em></strong>:</p><p>To deal with null or missing values, Pandas provides several useful methods for detecting, removing, and replacing null values. These are:</p><ul><li>isnull(): It checks null values in Pandas DataFrame and returns Boolean values. True for <em>NaN</em> values</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D36&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D36&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F3e5a828c5deb410d93ea1415acd8b9b5%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb2037a3448db95c42fcfc381d5cc450/href">https://medium.com/media/eb2037a3448db95c42fcfc381d5cc450/href</a></iframe><ul><li>notnull(): It checks not null values in Pandas DataFrame and returns Boolean values. False for <em>NaN</em> values</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D37&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D37&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F1af51961c985441ba15c8c4a2536ff94%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b7f5ccd77b70b6fe640b86de18f731b/href">https://medium.com/media/4b7f5ccd77b70b6fe640b86de18f731b/href</a></iframe><ul><li>dropna(): It drops rows/columns of DataFrames with <em>Null</em> values</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D38&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D38&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F1dd3cd58d0004d59af440e96fe0bb3be%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ea00eccfd3102106d0a09eec0086654/href">https://medium.com/media/5ea00eccfd3102106d0a09eec0086654/href</a></iframe><ul><li>fillna(): It fills <em>Null</em> values in DataFrame with a specified value</li></ul><p>Filling <em>NA</em> values with 0:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D39&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D39&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Fdb9deebf7a6541978ade30fe8a74822c%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/93739367ebbd15198b7ae286e3a272d8/href">https://medium.com/media/93739367ebbd15198b7ae286e3a272d8/href</a></iframe><p>Filling the missing value with the next ones:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D40&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D40&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F010cceb7b9d343279d623a475b7d97e0%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f30f3c083aad0b971f2fe689edf6ab18/href">https://medium.com/media/f30f3c083aad0b971f2fe689edf6ab18/href</a></iframe><p>Interpolating the missing value:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D41&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D41&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2Fdde9dde2b42745a3a861f1cea2b65f99%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc66cf52b00d64ee11bd0d9e3ba27994/href">https://medium.com/media/fc66cf52b00d64ee11bd0d9e3ba27994/href</a></iframe><p><strong>Importing and Uploading Jupyter notebook to Jovian.ml:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D42&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D42&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F70060c30afc7464f9589e3f700176d05%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4a7974f1ef44618f6d717b612d2c0e7/href">https://medium.com/media/f4a7974f1ef44618f6d717b612d2c0e7/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D43&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fbasics-of-pandas-part1%2Fv%2F7%26cellId%3D43&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fb6dd37198e5349e692d815b22448e4a9%2Fpreview%2F565b24caad2f44a6852096484f49159d%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e7cf3226d81e61acca1f0fdb1223a31/href">https://medium.com/media/9e7cf3226d81e61acca1f0fdb1223a31/href</a></iframe><p><strong>Conclusion:</strong>🤩</p><p>With this, we reach the end of the first part of the <strong>Basics of Pandas</strong> series. To sum up, we have touched upon various basic concepts, like the Creation of series, DataFrames in different methods, Indexing, Indexers, Ufuncs, and handling of missing data. We cannot stress this enough but Pandas can indeed be extremely powerful when it comes to data analysis. We hope that this blog will make you want to take a data set and play around it using Pandas. Next time, we will learn a few advanced topics like operating with .csv file, manipulations, and many more! Stay Tuned!</p><p><strong>References:</strong>📗</p><ul><li><strong>Complete Jupyter Notebook</strong>: <a href="https://jovian.ml/v-snehith999/basics-of-pandas-part1">https://jovian.ml/v-snehith999/basics-of-pandas-part1</a></li><li><strong>Pandas official documentation:</strong> <a href="https://pandas.pydata.org/">https://pandas.pydata.org/</a></li><li><strong>Python Data Science Handbook</strong>: <a href="https://jakevdp.github.io/PythonDataScienceHandbook/03.00-introduction-to-pandas.html">https://jakevdp.github.io/PythonDataScienceHandbook/03.00-introduction-to-pandas.html</a></li><li><a href="https://jakevdp.github.io/PythonDataScienceHandbook/03.00-introduction-to-pandas.html"><strong>Pandas Theoretical</strong>: https://medium.com/swlh/the-mastery-of-pandas-i-50156db42125</a></li><li><a href="https://jakevdp.github.io/PythonDataScienceHandbook/03.00-introduction-to-pandas.html"><strong>Pandas Tutorial</strong>: https://www.geeksforgeeks.org/pandas-tutorial/</a></li><li><a href="https://jakevdp.github.io/PythonDataScienceHandbook/03.00-introduction-to-pandas.html"><strong>Pandas — powerful Python data analysis toolkit</strong>: https://pandas.pydata.org/docs/pandas.pdf</a></li></ul><p><strong>Author:</strong>🤠</p><p><strong><em>- Snehit Vaddi</em></strong></p><p>I am a Machine Learning enthusiast. I teach machines how to see, listen, and learn.</p><p><strong>Linkedin: </strong><a href="https://www.linkedin.com/in/snehitvaddi/"><strong>https://www.linkedin.com/in/snehit-vaddi/</strong></a></p><p><strong>Github: </strong><a href="https://github.com/snehitvaddi"><strong>https://github.com/snehitvaddi</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45d5db26d9d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NumPy Basics for ML Noobs (Part 2)| Snehit Vaddi]]></title>
            <link>https://snehitvaddi-writes.medium.com/numpy-basics-for-ml-noobs-part-2-snehit-vaddi-f8a374d93705?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8a374d93705</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Tue, 09 Mar 2021 18:54:44 GMT</pubDate>
            <atom:updated>2021-08-31T06:37:53.459Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quick Notes on NumPy(Part 2/2)| Snehit Vaddi</h3><blockquote>In part-1, we have learnt some essential basics of NumPy. I would highly recommend you to have a look at Part-1 and then go ahead with Part-2.</blockquote><p><a href="https://v-snehith999.medium.com/beginner-in-ml-have-a-look-at-numpy-basics-part-1-snehit-vaddi-50d4b5782fd">Beginner in ML? Have a look at NumPy Basics — Part 1 | Snehit Vaddi</a></p><p>One simply can’t stress enough the importance of NumPy when it comes to programmers. Welcome to the second part of the blog where we shall cover some advanced but essential topics under NumPy. For those of you, who are joining us for the first time, it would be beneficial to check out the first part of our tutorial (Click here to see more: Basics of NumPy) where we introduced our readers to NumPy and its basic operations, like creating arrays, indexing, slicing, reshaping, and generating random numbers. So, let’s get started with the second part of our tutorial and take a look at the topics that we will learn.</p><p><strong>Section -1: In this section, we will learn about:</strong></p><ul><li>Implementing Universal Functions (Ufuncs)</li></ul><blockquote>1. Arithmetic Functions</blockquote><blockquote>2. Trigonometric and Inverse Trigonometric Functions</blockquote><blockquote>3. Exponents and Logarithms</blockquote><ul><li>Implementing Advanced Ufuncs</li></ul><p><strong>Introduction to Universal Functions (Ufuncs).</strong></p><p>The Ufuncs in NumPy are simple mathematical functions. These functions include standard arithmetic operations, trigonometric functions, statistical functions, etc.</p><p>Ufuncs are used to <em>vectorize</em> operations and thereby remove slow Python loops.</p><p><strong><em>Arithmetic Functions </em></strong>:</p><p>NumPy’s Arithmetic Ufuncs are quite similar to Python’s native arithmetic operations and hence operations like standard addition, subtraction, multiplication, and division can all be easily used:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D6&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2Fa559db14ad594781b762ea5d3eb86c46%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3c211a982faa1e28ba328d1d65a26a8/href">https://medium.com/media/e3c211a982faa1e28ba328d1d65a26a8/href</a></iframe><p>Each of these arithmetic operations has a specific NumPy wrapper. Some of the wrappers are:</p><p>+ np.add <br> - np.subtract<br> - np.negative<br> * np.multiply<br> / np.divide<br>// np.floor_divide <br>** np.power <br>% np.modPython Operators VS NumPy wrappers</p><p><strong>Built-in NumPy wrappers for arithmetic operations:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D7&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2F25c7c32ad8364b6e8784055b562f5b37%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/9549430d6a013d42dae02c2aab358bb7/href">https://medium.com/media/9549430d6a013d42dae02c2aab358bb7/href</a></iframe><p><strong><em>Trigonometric functions</em></strong>:</p><p>NumPy provides many trigonometric functions and some of them are most useful for data scientists, like sin, cos, tan. These trigonometric functions work on radians. Hence, it is important to convert angles into radians. This is done by multiplying the value by pi/180.</p><p><strong><em>Note: </em></strong><em>An array of </em><strong><em>degrees</em></strong><em> can be converted into </em><strong><em>radians</em></strong><em> by NumPy function </em><strong>np.deg2rad([angles])</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D9&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D9&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2F24a70e8841184c62bd6a028dd2b788bf%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/d5d96fdaca0a70f6f5e1e074f03e42f6/href">https://medium.com/media/d5d96fdaca0a70f6f5e1e074f03e42f6/href</a></iframe><p>Here, <strong>np.linspace()</strong> function generates N equally separated numbers between the specified start and end. np.pi is equal to 3.14159… radians which in turn is equal to 180 degrees.</p><p><strong><em>Inverse Trigonometric Functions</em></strong>:</p><p>NumPy also provides various Inverse trigonometric functions. Unlike trigonometric functions, these functions take trigonometric values and return radians.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D10&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2F69910143ca7d480792f63b32673f05b5%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf32c241fbe3ea019fb87d1f2ddb9e2c/href">https://medium.com/media/cf32c241fbe3ea019fb87d1f2ddb9e2c/href</a></iframe><p><strong><em>Exponents and Logarithms</em></strong>:</p><p>Another extremely useful operation available in NumPy Ufuncs is exponents.</p><p>In fact, logarithms are inverse of exponentials. The np.log function is used to find a natural logarithm. It provides two options to compute logarithms, either for base-2 or base-10.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D13&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D13&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2F9af9e8cb4e90413ba90e6b018391a94f%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/32ca13b052b133aa10a7d9af9fa25b97/href">https://medium.com/media/32ca13b052b133aa10a7d9af9fa25b97/href</a></iframe><p><strong><em>Advances Ufuncs</em></strong>:</p><p>NumPy also provides some interesting aggregates that can be computed directly from the object. Eg. <strong>reduce</strong> and <strong>accumulate</strong> ufuncs.</p><p>Reduce on <strong>np.add</strong> ufuncs returns the sum of all elements in the array. Similarly, reduce on <strong>np.multiply</strong> ufuncs returns the product of all elements in the array.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D15&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D15&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2F57e22c8407b2435b95e25788ba7c0742%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/23c11b10cb11116a2ba78d6afa346d22/href">https://medium.com/media/23c11b10cb11116a2ba78d6afa346d22/href</a></iframe><p>Similar to <strong>reduce</strong>, if one would like to store all intermediate results of the computation, one can use <strong>accumulate</strong> in ufuncs.</p><p><strong><em>Multidimensional Aggregation functions</em></strong>:</p><p>Now, let’s move to the various aggregation functions that are provided by NumPy. The aggregation functions operate on unidimensional and multi-dimensional functions. These functions are designed to deal with null and uncertain values. Some of the multidimensional aggregation functions are:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D18&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D18&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2Ffe40232f9eb64e6992b266cae83229f3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6c58bd656dd1782dc8498db831cf076/href">https://medium.com/media/a6c58bd656dd1782dc8498db831cf076/href</a></iframe><p><strong>Section -2: In the next section of the blog, we will learn some other interesting topics related to NumPy. Let’s start with the following:</strong></p><ul><li>Broadcasting</li><li>Rules of Broadcasting</li><li>Examples of Broadcasting</li></ul><p><strong><em>Broadcasting</em></strong>:</p><p>In simple terms. Broadcasting is simply a set of rules for performing binary Ufuncs. The term Broadcasting refers to how NumPy treats arrays with different dimensions during arithmetic operations which leads to certain constraints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*fjFV4oLw-kGIM15p.png" /></figure><p>Broadcasting is an extremely useful feature of ufuncs to operate between arrays of different sizes and shapes. Let’s look at a simple example to understand it better:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D21&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D21&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2F07080b01f6c641e78f2e9ab0c3141d72%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ae7d62288226c5903d1b72931193ecf/href">https://medium.com/media/3ae7d62288226c5903d1b72931193ecf/href</a></iframe><p><strong><em>Rules of Broadcasting:</em></strong></p><p>Broadcasting in NumPy follows a strict set of rules to determine the interaction between the two arrays:</p><ul><li>Rule 1: If the two arrays differ in their number of dimensions, the shape of the one with fewer dimensions is padded with ones on its leading (left) side.</li><li>Rule 2: If the shape of the two arrays does not match in any dimension, the array with a shape equal to 1 in that dimension is stretched to match the other shape.</li><li>Rule 3: If in any dimension, the sizes disagree and neither is equal to 1, an error is raised.</li></ul><p><strong><em>Note:</em></strong> <em>Any NumPy array which undergoes any arithmetic operations should follow these 3 Broadcasting rules.</em></p><p><strong><em>Broadcasting Example 1</em></strong>:</p><p>Let’s consider adding a two-dimensional array to a one-dimensional array:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D23&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D23&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2F1f84f8e9b2da411c95d7fa37ff72a778%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/da4f4c1277b1c966dbb2609374dc9dda/href">https://medium.com/media/da4f4c1277b1c966dbb2609374dc9dda/href</a></iframe><p>The shape of the arrays is as follows:</p><ul><li>M.shape = (2, 3)</li><li>a.shape = (3,)</li></ul><p>If we look at rule 1, it is clear that array <strong>a</strong> has fewer dimensions, so we pad it on the left with ones:</p><ul><li>M.shape -&gt; (2, 3)</li><li>a.shape -&gt; (1, 3)</li></ul><p>Using rule 2, we now see that the first dimension disagrees, so this dimension is stretched to match:</p><ul><li>M.shape -&gt; (2, 3)</li><li>a.shape -&gt; (2, 3)</li></ul><p>Finally, the shapes match and it is clear that the final shape will be <strong>(2, 3):</strong></p><blockquote><strong>M + a = array([[ 1., 2., 3.], [ 1., 2., 3.]])</strong></blockquote><p><strong><em>Broadcasting Example 2</em></strong>:</p><p>Now let’s take a look at an example in which the two arrays are not compatible:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D25&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D25&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2Fd48822e702eb4c069acea3d020978a75%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/214c12bb26c29fbca81a03e4fc51a231/href">https://medium.com/media/214c12bb26c29fbca81a03e4fc51a231/href</a></iframe><p>The shape of the arrays is as follows:</p><ul><li>M.shape -&gt; (3, 2)</li><li>a.shape -&gt; (3, )</li></ul><p>Again, rule 1 tells us that we must pad the shape of <strong>a</strong> with ones:</p><ul><li>M.shape -&gt; (3, 2)</li><li>a.shape -&gt; (1, 3)</li></ul><p>By rule 2, the first dimension of <strong>a</strong> is stretched to match <strong>M</strong>.</p><ul><li>M.shape -&gt; (3, 2)</li><li>a.shape -&gt; (3, 3)</li></ul><p>In the end, we see that according to rule 3, the final shapes do not match. So, these two arrays are incompatible for attempting any operations.</p><p><strong>Import Jovian and Commit</strong>:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttp%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D0&amp;dntp=1&amp;display_name=Jovian&amp;url=http%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D0&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/4df874ce632aca7912bdd8b358cb6109/href">https://medium.com/media/4df874ce632aca7912bdd8b358cb6109/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D29&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D29&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2Fae7a469449804d6790db5df7eb391f86%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e836afcbcc4e916f26db1e382ad4c0c/href">https://medium.com/media/2e836afcbcc4e916f26db1e382ad4c0c/href</a></iframe><p><strong>Conclusion:</strong></p><p>With this, we come to the end of PArt 2 of our <strong>Basics of NumPy</strong> series. We have managed to cover many topics, including sequencing, indexing, random numbers, reshaping, Ufuncs, and Broadcasting. We sincerely hope that you have learned not just the basics but have got a good understanding of the intermediate level of the NumPy module as well. If you have any questions for us, please do get in touch.</p><p><strong>References:</strong></p><p><strong><em>Complete Jupyter Notebook</em></strong>: <a href="https://jovian.ml/v-snehith999/numpy-basics-part-2">https://jovian.ml/v-snehith999/numpy-basics-part-2</a></p><p><strong>Basics of NumPy — Part 1: </strong><a href="https://hub.jovian.ml/?p=603&amp;preview=true">https://hub.jovian.ml/?p=603&amp;preview=true</a></p><p><strong>Practice NumPy</strong> <strong>functions</strong>: <a href="https://nbviewer.jupyter.org/github/rougier/numpy-100/blob/master/100_Numpy_exercises.ipynb">https://nbviewer.jupyter.org/github/rougier/numpy-100/blob/master/100_Numpy_exercises.ipynb</a></p><p><a href="https://jakevdp.github.io/PythonDataScienceHandbook/02.05-computation-on-arrays-broadcasting.html">https://jakevdp.github.io/PythonDataScienceHandbook/02.05-computation-on-arrays-broadcasting.html</a></p><p><strong>Author:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*Arv41VjcfUbCXjbC.jpg" /></figure><p><strong><em>- Snehit Vaddi</em></strong></p><p>I am a Machine Learning enthusiast. I teach machines how to see, listen, and learn.</p><p><strong>Linkedin: </strong><a href="https://www.linkedin.com/in/snehitvaddi/"><strong>https://www.linkedin.com/in/snehit-vaddi</strong></a></p><p><strong>Github: </strong><a href="https://github.com/snehitvaddi"><strong>https://github.com/snehitvaddi</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8a374d93705" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginner in ML? Have a look at NumPy Basics — Part 1 | Snehit Vaddi]]></title>
            <link>https://snehitvaddi-writes.medium.com/beginner-in-ml-have-a-look-at-numpy-basics-part-1-snehit-vaddi-50d4b5782fd?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/50d4b5782fd</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Tue, 29 Dec 2020 19:56:32 GMT</pubDate>
            <atom:updated>2023-05-25T23:46:30.222Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quick Notes of NumPy(part-1/2) | Snehit Vaddi</h3><p>The universe of machine learning and data science is a fascinating one. On the surface, it may seem as though one is inundated with data in various forms — be it text, image, or voice, however, if dealt with properly, it makes for not just a great learning experience, but a rather enjoyable one too!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*rPAy8hxMovLkzlnOZ1Bi8g.jpeg" /></figure><p>No matter what data you’re dealing with, the first step always should be to make it analyzable. Indeed, to deal with such massive data, a large amount of computational power is also needed.</p><p>For this reason, efficient storage and data manipulation is the key role of any tool. <strong>NumPy</strong> (<em>Numerical Python</em>) provides an efficient interface that allows one to store and operate on different kinds of numerical data. And that is what we are going to discuss in this blog. We are sure that you are going to enjoy learning about NumPy!</p><p><strong><em>Introduction to NumPy:</em></strong></p><p>Surely, you all know that Python is a great general-purpose programming language on its own. However, popular libraries like NumPy make it a powerful environment for scientific computing. In technical terms, <strong>NumPy is the core library for scientific computing in Python</strong>. It provides a high-performance multidimensional array object and tools for working with these arrays. NumPy contains many other things as well:</p><ul><li><strong>A powerful N-dimensional array object</strong></li><li><strong>Broadcasting functions</strong></li><li><strong>Tools for integrating C/C++</strong></li></ul><p><strong>. . . .</strong></p><p><strong>Difference between NumPy arrays and Python Lists :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AWk6VMCJG6xOwPtKBFRZ0w.png" /></figure><p><strong><em>Why should we use NumPy?</em></strong></p><p>One simple answer to this question is that it definitely eases our programming life! Just imagine, if you had an efficient way of handling data for mathematical operations — wouldn’t you prefer it to write the same on your own?</p><p>Let’s consider a quick example to understand it better. Here, we will compare Python’s built-in <strong>sum()</strong> function and NumPy function <strong>np.sum() </strong>to compute the sum of all values.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-2%2Fv%2F3%26cellId%3D3&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F4476d2062af04237afc2f689ea209e51%2Fpreview%2Fab1f031a2d804323b51afa16eeda9b94%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/75e5eb46937f33eb63ac59958ed4295a/href">https://medium.com/media/75e5eb46937f33eb63ac59958ed4295a/href</a></iframe><p>While Python’s built-in sum function takes approximately <strong>362 <em>milliseconds</em></strong> per loop whereas np.sum function takes only <strong>1.9</strong> <strong><em>microseconds</em></strong>!</p><p><strong><em>Note:</em></strong> <em>The sum function and </em><strong><em>np.sum</em></strong><em> function are not identical</em>. <strong><em>np.sum</em></strong><em> is mostly useful for multidimensional arrays</em>.</p><p><strong><em>Applications of NumPy:</em></strong></p><ul><li>Mathematics and Statistics 📉</li><li>Visualizations (NumPy along with libraries like Matplotlib)📊</li><li>Machine Learning 🤖</li><li>Image Processing 📸 and many more</li></ul><p><strong><em>Installing NumPy:</em></strong></p><p>We can use the ‘<strong>pip</strong>’ command to install the NumPy package either from the command prompt or Jupyter notebook:</p><blockquote>! pip install numpy</blockquote><p><strong><em>Importing Package</em></strong></p><p>By convention, we shall import NumPy as np for ease of coding. To get the version of NumPy, you can use the command <strong>numpy.__version__</strong>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D3&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e11ead2d812cacfa0591aaae294382df/href">https://medium.com/media/e11ead2d812cacfa0591aaae294382df/href</a></iframe><p><strong>Section -1: In this section, we will learn</strong>:</p><ul><li>How to create NumPy arrays from Python Lists</li><li>How to create NumPy arrays from scratch</li><li>How to create an array with a sequence of numbers</li><li>How to create an array of random numbers</li></ul><p><strong><em>Creating arrays from Python lists:</em></strong></p><p>A python list can be converted into a NumPy array using the command <strong>numpy.array()</strong>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D4&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c0f1b319633d821614ec5dad1381faef/href">https://medium.com/media/c0f1b319633d821614ec5dad1381faef/href</a></iframe><p><strong><em>Note:</em> </strong><em>In Python, a list can contain different data types but in a NumPy array, all elements must be of the </em>same <em>type</em>. <em>If not</em>, <em>NumPy would upcast, if possible.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D6&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/8306129c1d3f9f0aa6f273f7d0d05e0e/href">https://medium.com/media/8306129c1d3f9f0aa6f273f7d0d05e0e/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D8&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D8&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/7f579631828f69d92aa7a84465fec092/href">https://medium.com/media/7f579631828f69d92aa7a84465fec092/href</a></iframe><p><strong><em>Creating N-Dimensional arrays using NumPy from scratch:</em></strong></p><p>NumPy provides different methods to create different types of arrays, like:</p><ul><li><strong>np.zeros</strong> # Creates an array filled with zeros</li><li><strong>np.ones</strong> # Creates an array filled with ones</li><li><strong>np.full</strong> # Creates an array of specified sizes filled with a given number</li><li><strong>np.arange</strong> # Creates an array from given starting to ending numbers (it starts with zero by default)</li></ul><p>Let us now look at a visualization of how data is stored in a NumPy array:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D9&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D9&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/5458eccc8acad67c0ca9bd546d7d2137/href">https://medium.com/media/5458eccc8acad67c0ca9bd546d7d2137/href</a></iframe><p>The np.arange() method creates a sequence of numbers in the given range. It has four basic parameters:</p><ul><li>start — starts the array from the start number</li><li>stop — ends the array (excluding the last value)</li><li>step — value to step-up</li><li>dtype — the type of array or matrices</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D10&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/b4101abcef75eaeb1fafa59cd5e2a035/href">https://medium.com/media/b4101abcef75eaeb1fafa59cd5e2a035/href</a></iframe><p><strong><em>Creating array of Random numbers</em></strong>:</p><p>The command np.random() gives the random samples. This module contains simple random data generating methods, distribution functions, and random generator functions. Some functions in <strong>np.random</strong> module are as follows:</p><ul><li><strong>np.random.rand()</strong> # Generates uniform distribution of random numbers</li><li><strong>np.random.normal()</strong> # Generates normal distribution of random numbers(mean 0 and variance 1)</li><li><strong>np.random.randint()</strong> # Generates random integers from inclusive(low) to exclusive(high)</li><li><strong>np.random.random()</strong> # Generates random float values in interval [0.0,1.0]</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D12&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D12&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/65f903be13787328879e63f4652d17f0/href">https://medium.com/media/65f903be13787328879e63f4652d17f0/href</a></iframe><p><strong>Section — 2: In this section, we will learn:</strong></p><ul><li>How to do NumPy array manipulation to access data and subarrays</li><li>How to split, reshape, and join NumPy arrays</li></ul><p><strong>Note</strong>: <strong>numpy.random()</strong> <em>generates different random numbers for each execution. In order to generate the same random numbers, we will use np.seed</em><strong>()</strong><em>.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D15&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D15&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/7b369865868d26a86cd7ecf573862af3/href">https://medium.com/media/7b369865868d26a86cd7ecf573862af3/href</a></iframe><p>Each array has the following attributes — <strong>ndim</strong> (the number of dimensions), <strong>shape</strong> (the size of each dimension), and <strong>size</strong> (the total size of the array):</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D16&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D16&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc21acf87b2fe202dc7327ecdfbc799b/href">https://medium.com/media/bc21acf87b2fe202dc7327ecdfbc799b/href</a></iframe><p><strong><em>Array Indexing</em></strong>:</p><p>Indexing of NumPy arrays is similar to Python’s list indexing. In a 1D array, the ith value can be accessed by specifying the desired index in square brackets.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D18&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D18&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fdd57ac177d28695d49d345f4e4effb/href">https://medium.com/media/4fdd57ac177d28695d49d345f4e4effb/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D19&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D19&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d6c80944982da9146a0bd556f4279f7/href">https://medium.com/media/0d6c80944982da9146a0bd556f4279f7/href</a></iframe><p><strong><em>Indexing of N-Dimensional NumPy array:</em></strong></p><p>In a multi-dimensional array, items can be accessed using a comma-separated tuple.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D20&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D20&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/dc8d13ed1b08af7bca6cd683d33d18bd/href">https://medium.com/media/dc8d13ed1b08af7bca6cd683d33d18bd/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D21&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D21&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c62211b42bb88a1a43def9b4f3f5f1d/href">https://medium.com/media/5c62211b42bb88a1a43def9b4f3f5f1d/href</a></iframe><p>Multi-dimensional NumPy array values can be modified using index notation, as specified above:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D22&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D22&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/070cb908917e8e4ec6f2e826d5c56e5d/href">https://medium.com/media/070cb908917e8e4ec6f2e826d5c56e5d/href</a></iframe><p><strong><em>Note:</em></strong> <em>Unlike python lists, NumPy arrays have a </em>fixed type of element. If we try to modify the value of the NumPy array with different types of elements, the assigned value<em> will be truncated (or) neglected.</em></p><p><strong>NumPy Subarrays and Array Slicing:</strong></p><p>NumPy slicing follows the standard Python list slicing. We use square brackets to access individual array elements and colon ( : ) to slice and access subarrays.</p><p>x[start:stop:step] . By default <strong><em>start</em></strong><em> =0</em>,<strong>stop</strong> =<em>size of dimension</em>, <strong>step</strong> =1</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D24&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D24&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed10af905877a1fb27d53e924137d9fd/href">https://medium.com/media/ed10af905877a1fb27d53e924137d9fd/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D25&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D25&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d62c125ac787699fbe73522ac4106bd/href">https://medium.com/media/1d62c125ac787699fbe73522ac4106bd/href</a></iframe><p><strong><em>Slicing multi-dimensional NumPy array:</em></strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D26&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D26&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/9866a46af5c97629e662f4b2defac0ce/href">https://medium.com/media/9866a46af5c97629e662f4b2defac0ce/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D27&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D27&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e2378157c1ce3ae806078bfe5ff97d0/href">https://medium.com/media/7e2378157c1ce3ae806078bfe5ff97d0/href</a></iframe><p>In a multi-dimensional NumPy array, [ : , : ] specifies all rows and all columns. [ : 2 , : ] specifies array from row index 0 to exclusive index 2.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D28&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D28&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/4f38ce0bdd49665ea9e32b291b9a7141/href">https://medium.com/media/4f38ce0bdd49665ea9e32b291b9a7141/href</a></iframe><p>NumPy array can be copied using .copy()method:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D29&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D29&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8edbcd7750d3c60603d3add4452295c/href">https://medium.com/media/e8edbcd7750d3c60603d3add4452295c/href</a></iframe><p><strong><em>Reshaping of NumPy arrays</em>:</strong></p><p><strong>reshape</strong> is one of the important functions in NumPy library. It converts an <strong>m-dimensional array to n-dimensional matrices/array.</strong></p><p><strong><em>Note:</em></strong> <em>In order to make </em><strong><em>reshape</em>()</strong> work properly, the size of the initial array must match the size of the reshaped array. One of the common uses of this method is to convert 1-dimensional array to n-dimensional array.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D31&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D31&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/43e6118c7d8b878f70e93dd7d66edf39/href">https://medium.com/media/43e6118c7d8b878f70e93dd7d66edf39/href</a></iframe><p>Instead of using the <strong>reshape</strong> method, this can be more easily done by <strong>newaxis</strong> keyword.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D32&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D32&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c8b954c6785986c3dfd8b0b20020f20e/href">https://medium.com/media/c8b954c6785986c3dfd8b0b20020f20e/href</a></iframe><p><strong><em>NumPy array Concatenation:</em></strong></p><p>Concatenation or joining of two arrays in NumPy is primarily done using three methods:</p><ul><li>np.concatenate</li><li>np.hstack # Horizontal Stack</li><li>np.vstack #Vertical Stack</li></ul><p>np.concatenate has two arguments — arrays to concatenate and axis.</p><ul><li>axis = 0 # Concatenate along row-wise (default)</li><li>axis = 1 # Concatenate along column-wise</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D34&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D34&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f2ad4345990a2309f0348ac078d1687/href">https://medium.com/media/0f2ad4345990a2309f0348ac078d1687/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D35&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fnumpy-basics-part-1%2Fv%2F4%26cellId%3D35&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ff2853d2e7d76439599f6a02b794d3c7a%2Fpreview%2F5164231c58ef440fa2ae913fc36edee3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/962e802ffd3ffb0d41a1abd2b43c2aec/href">https://medium.com/media/962e802ffd3ffb0d41a1abd2b43c2aec/href</a></iframe><p><strong>Conclusion:</strong></p><p>With this, we conclude the first part of our Basics of NumPy series. We hope we simplified it for you and made it enjoyable for you to read and learn. In the next part, we will cover some interesting topics few in-depth like <em>Arithmetic functions, Trigonometric functions</em>, <em>Exponents and Logarithms</em>, <em>Minimum and Maximum,</em> etc.</p><p><strong>References<em>:</em></strong></p><p><strong><em>Complete Jupyter Notebook</em></strong>: <a href="https://jovian.ml/v-snehith999/numpy-basics-part-1">https://jovian.ml/v-snehith999/numpy-basics-part-1?action=embed&amp;cellId=2</a></p><p><strong>Basics of NumPy — Part 2:</strong> <a href="https://hub.jovian.ml/?p=654&amp;preview=true">https://hub.jovian.ml/?p=654&amp;preview=true</a></p><p><a href="https://jakevdp.github.io/PythonDataScienceHandbook/02.02-the-basics-of-numpy-arrays.html">https://jakevdp.github.io/PythonDataScienceHandbook/02.02-the-basics-of-numpy-arrays.html</a></p><p><strong>Author:</strong></p><p><strong><em>- Snehit Vaddi</em></strong></p><p>I am a Machine Learning enthusiast. I teach machines how to see, listen, and learn.</p><p><strong>Linkedin: </strong><a href="https://www.linkedin.com/in/snehit-vaddi-73a814158/"><strong>https://www.linkedin.com/in/snehit-vaddi-73a814158/</strong></a></p><p><strong>Github: </strong><a href="https://github.com/snehitvaddi"><strong>https://github.com/snehitvaddi</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50d4b5782fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[COVID-19 / Pneumonia Prediction using Deep Learning]]></title>
            <link>https://snehitvaddi-writes.medium.com/covid-19-pneumonia-prediction-using-deep-learning-3fcddba12df5?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fcddba12df5</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[keras]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Wed, 25 Nov 2020 13:34:00 GMT</pubDate>
            <atom:updated>2021-08-31T06:40:23.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v96tRS_AWS5nKQQD6arkog.png" /><figcaption>Upper abdomen X-Ray scans of Covid +ve people</figcaption></figure><p>Currently, the entire world is gripped by the fear of novel coronavirus. As of June 2020, there were over 8 million cases recorded worldwide. The pandemic has not only brought life across the globe to a standstill but also affected the mental health of millions. What makes it worse is the fact that most people do not know the exact way they contract the virus. Some experts, including the WHO, say that the virus spreads through either direct or indirect contact with a person — droplets that spread when an infected person sneezes or coughs is one of the ways by which this virus spreads.</p><p>It is also true that the one thing that can help nations nip this virus is conducting tests on infected persons as early as possible. So, in this blog, we will look at how we can predict coronavirus test results using X-ray images.</p><p><strong><em>⚠ Disclaimer</em></strong></p><p>This blog post on COVID-19 prediction is a proof-of-concept and for educational purposes only. It is not meant to replace professional medical advice.</p><p><strong>Predicting COVID-19 using X-ray images</strong></p><p>In this tutorial, we will use X-ray images to analyze the health of the patient’s lungs. COVID-19 virus usually attacks the epithelial cells of human beings (cells that line the various surfaces of the human body). So, the X-ray scan will help us identify the affected epithelial cells on the surface of the respiratory tract. Also, since X-ray scans are easier to get than a CT scan, so, we opted for the same for our tutorial.</p><p><strong>Step 1: <em>Training Keras model to predict COVID-19 / Pneumonia / Normal cases</em></strong></p><p>For the first step, you can go ahead and download the training and testing dataset from the link below:<br><a href="https://drive.google.com/open?id=1wwXhV2pNJjGdC4dsMz3NQxfhojthUbeB">Drive Link</a></p><p>Link for complete code <a href="https://github.com/snehitvaddi/NovelCorona-Pneumonia-Prediction_V2">GITHUB REPO</a></p><p>Your downloaded data set folder should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8YAj0YF-obYx9lFk.png" /></figure><p>figure 1: Example of a directory structure of X-ray images of COVID-19 positive patients. Using X-ray images we train CNN (Convolutional Neural Network) to detect COVID-19 using Keras and Tensorflow</p><p><strong>1.1 Importing modules</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D1&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D1&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c212499a04b74f1469932ab95afd93fd/href">https://medium.com/media/c212499a04b74f1469932ab95afd93fd/href</a></iframe><p>We need cv2 and matplotlib to perform image manipulations and visualizations, OS, and glob for file system management. Here is the list of images in the “dataset/test/covid” folder:</p><p>Here is the list of images in the “dataset/test/covid” folder.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D7&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/ebd225d7da0e3f157599793c95301757/href">https://medium.com/media/ebd225d7da0e3f157599793c95301757/href</a></iframe><p><strong>1.2 Data cleaning, naming, and structuring (optional)</strong></p><p>If you have your own dataset, you can create a separate folder for each label and name the folder with the image label. Eg: All COVID images can be moved into the ‘covid’ folder.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D6&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/09b96a2641115e015bf4c9fe931cce79/href">https://medium.com/media/09b96a2641115e015bf4c9fe931cce79/href</a></iframe><p><strong>Step 2: <em>Image Manipulation and Augmentation</em></strong></p><p>It is usually a good idea to manipulate the image using rotation, resizing, and scaling. This helps make the model more robust to different images that our dataset may not have. We can use the <strong>ImageDataGenerator</strong> to do this automatically for us.</p><p>In general, datasets are represented with two CSV files — one for training and the other for testing. The entire training set can fit into RAM and no data augmentation is required there. However, real-world datasets are rarely that simple! (I’m sure all of you who’re reading this are nodding in agreement right now.) Real-world datasets are often too large to fit into memory and they also tend to undergo overfitting of the ML model.</p><p>To avoid this data augmentation is performed. Here, <strong>generators</strong> are used for various purposes, like to load images in batches, to augment images, and to save memory consumption.</p><p>“from keras.preprocessing.image import ImageDataGenerator”</p><p><strong>2.1 Initialising ImageDataGenerator object</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D13&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D13&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f31007a016b678ac2ac2670a85741aa8/href">https://medium.com/media/f31007a016b678ac2ac2670a85741aa8/href</a></iframe><ul><li>rotation_range=30, # Rotate the image by 30 degrees</li><li>width_shift_range=0.1, # Shift the image width by maximum 10%</li><li>height_shift_range=0.1, # Shift the image height by maximum 10%</li><li>rescale=1/255, # Rescale the image by normalizing it</li><li>shear_range=0.2, # Shear means cutting away a part of the image (maximum 20%)</li><li>zoom_range=0.2, # Zoom into the image by 20% maximum</li><li>horizontal_flip=True, # Allow horizontal flipping</li><li>fill_mode=’nearest’ # Fill in missing pixels with the nearest filled value</li></ul><p>Here is a preview of the transformed image:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D14&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D14&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c2d05cd70ddafc89757db27beb9a0ed/href">https://medium.com/media/7c2d05cd70ddafc89757db27beb9a0ed/href</a></iframe><p><strong>2.2 Generating Batches</strong></p><p>f<strong>low_from_directory:</strong> This method takes the path of a directory and generates batches of augmented data and additional parameters, like target_size, batch_size, and class_mode.</p><p>In this case, we will assign batch_size as 16 (based on my dataset size). Since our model predicts multiple classes, that is three, class_mode is assigned as categorial.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D15&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D15&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e0962fefe27fc7f97b26e33863906206/href">https://medium.com/media/e0962fefe27fc7f97b26e33863906206/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D16&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D16&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/021b4fa2ad93e562163d5ad005f5bf9b/href">https://medium.com/media/021b4fa2ad93e562163d5ad005f5bf9b/href</a></iframe><p><strong>Step 3: <em>Building the CNN with Keras</em></strong></p><p>The next step would be to import modules that are required to design a convolutional neural network. The network inputs images of size (150,150,3) where 3 represents the three colored channels.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D18&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D18&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/b167291dec1131dc8053e9fa30dcef4f/href">https://medium.com/media/b167291dec1131dc8053e9fa30dcef4f/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D19&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D19&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/6bd15e44244419a19c09ff38bb6cb5d7/href">https://medium.com/media/6bd15e44244419a19c09ff38bb6cb5d7/href</a></iframe><p>The model type that we will use is Sequential as it is the easiest way to build a model in Keras. A sequential model also allows you to build a model layer by layer.</p><p>Our first two layers are Conv2D layers. The first layer consists of 32 filters and the second convolution layer consists of 64 filters. So, a kernel of size (3,3) means there is a 3x3 matrix, the dot product of the 3x3 matrix of the image, and a 3x3 matrix of random numbers. This output is given as input for the next layer. This is repeated for all 64 filters.</p><p>The activation function we will use for our first two layers is the ReLU or Rectified Linear Activation. This activation function has been proven to work well in neural networks.</p><p>After each convolution layer, a pooling layer will be added. The pooling layer reduces the size of the image; <strong>pool_size</strong> of (2,2) takes each 2x2 matrix of input image pixels and replaces it with the maximum value of that matrix.</p><p>In between the Conv2D layers and the dense layer, there is a ‘Flatten’ layer. Flatten serves as a connection between the convolution and dense layers.</p><p>‘Dense’ is the layer type we will use in our output layer. Dense is a standard layer type that is used in many cases for neural networks.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D20&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D20&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c06ccd9b8f9d949e35f7341bb4dcb34/href">https://medium.com/media/5c06ccd9b8f9d949e35f7341bb4dcb34/href</a></iframe><p><strong>Step 4: <em>Training the model</em></strong></p><p>Since we are using generators, the model is trained using fit_generator; fit_generator method first accepts a batch of a dataset, performs backpropagation on it, and then updates the weights in the model. This process is repeated for the number of epochs specified.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D25&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fv-snehith999%2Fcorona-pneumonia-normal-keras%2Fv%2F8%26cellId%3D25&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F47cba7bedd9d4287858c9e510c18153f%2Fpreview%2F91e4380bbaef4eefa725ca9fb8446efe%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/88c0f246a85cb109952c8048dc9d00f0/href">https://medium.com/media/88c0f246a85cb109952c8048dc9d00f0/href</a></iframe><p><strong>4.1 Results and Visualisation 📈</strong></p><p>We find that our model has an accuracy of <strong>85%</strong> in the training set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/0*MLxBvxjUlG_jSECP.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/0*aIhBCqWBZj3dkyiy.png" /></figure><p><strong>Conclusion :</strong></p><p><strong><em>🔑 To this end, we have made the code, model, and results available </em></strong><a href="https://jovian.ml/v-snehith999/corona-pneumonia-normal-keras"><strong><em>here</em></strong></a><em>. We shall also update the dataset and model as and when more data gets publicly accessible. We are, in fact, looking for a better method to evaluate the entire test set.</em></p><p>😅 Please note that we have also discovered that our model loss is spiking towards the end of training and we are looking for a possible solution.</p><p><strong>NOTE:</strong> <em>If any of you managed to get a better metric than me, please do share your learnings. </em><strong><em>After all, knowledge only grows with sharing!</em></strong></p><h3>⚠Creator Disclaimer</h3><p>All results from this open-source code should only be used for research/academic/personal purposes only. As the models are trained on the open-source datasets, any form of commercial use is strictly prohibited. Please contact us for any further queries.</p><p><strong>References<em>:</em></strong></p><p><a href="https://towardsdatascience.com/using-deep-learning-to-detect-ncov-19-from-x-ray-images-1a89701d1acd">towardsdatascience.com/using-deep-learning-to-detect-ncov-19-from-x-ray-images-1a89701d1acd</a></p><p><a href="https://jovian.ai/v-snehith999/corona-pneumonia-normal-keras">https://jovian.ml/v-snehith999/corona-pneumonia-normal-keras</a></p><p><strong>Author:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*TBJBugUBKvISOjaY.jpg" /></figure><p><strong><em>- Snehit Vaddi</em></strong></p><p>I am a Machine Learning enthusiast. I teach machines how to see, listen, and learn.</p><p><strong>Linkedin: </strong><a href="https://www.linkedin.com/in/snehitvaddi/"><strong>https://www.linkedin.com/in/snehit-vaddi</strong></a></p><p><strong>Github: </strong><a href="https://github.com/snehitvaddi"><strong>https://github.com/snehitvaddi</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fcddba12df5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Most used Scikit-Learn Algorithms Part-1|Snehit Vaddi]]></title>
            <link>https://medium.com/analytics-vidhya/most-used-scikit-learn-algorithms-part-1-snehit-vaddi-7ec0c98e4edd?source=rss-3f964b447eac------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ec0c98e4edd</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[scikit-learn]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Snehit Vaddi]]></dc:creator>
            <pubDate>Sun, 02 Aug 2020 18:15:44 GMT</pubDate>
            <atom:updated>2022-09-16T04:39:25.463Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are even remotely interested in data science, this blog post will surely help you😇. In case you are a beginner in Machine learning, this blog is tailored absolutely for you!! If not no problem, it is always worth revising the basics of Machine learning😉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-eLjPY7UGSoQhSyW5qC6gw.jpeg" /></figure><p><strong>Just a peek into ML Basics:</strong></p><p>Machine learning is generally split into two main categories: <strong>Supervised</strong> <strong>learning and</strong> <strong>Unsupervised learning</strong>.</p><p>In <strong>Supervised learning</strong>, an algorithm is trained on a labeled dataset. The labeled data set is one that has both input and output parameters. Supervised Learning is further classified into two types. <strong>Classification</strong> and <strong>Regression</strong>.🤩</p><p><strong>Classification:</strong> Samples belong to two or more classes, and we want to learn from already labeled data how to predict the class of unlabeled data. In simple, the Classification problem is like this, the given sample could be either this or that. <em>For example</em>, Gmail classifies mails into different classes like social, promotions, updates, primary, and forums.📩</p><p><strong>Regression:</strong> If the desired output consists of one or more continuous variables, then the task is called regression. For example, the temperature in a city. Here the temperature increases or decreases continuously.📈</p><p><strong>Introduction to Scikit Learn:</strong>😍</p><p><strong>Scikit-learn</strong> is a Python module for machine learning built on top of SciPy. Scikit-learn offers various important features for machine learning such as classification, regression, and clustering algorithms and is designed to interoperate with Python numerical and scientific libraries like <strong>NumPy</strong> and <strong>SciPy</strong>.</p><p><strong>Supervised Algorithms In Scikit-Learn</strong>:😎</p><p>As we discussed before, Machine Learning has 2 types of algorithms i.e <strong>Supervised</strong> and <strong>Unsupervised</strong>. Let’s see some of the most popular offered by Scikit learn in supervised algorithms:</p><ul><li>Support Vector Machines</li><li>Nearest Neighbors</li><li>Generalized Linear Models</li><li>Naive Bayes</li><li>Decision Trees</li><li>Stochastic Gradient Descent</li><li>Neural network models (supervised)</li><li>Multiclass and multilabel algorithms</li></ul><p>You can view all the available supervised algorithms <a href="https://scikit-learn.org/stable/supervised_learning.html">here</a>.</p><p><strong>Unsupervised Algorithms In Scikit-Learn</strong>:🤠</p><p>Scikit-learn also offers many useful unsupervised algorithms. Some of them are:</p><ul><li>Clustering</li><li>Biclustering</li><li>Manifold learning</li><li>Gaussian mixture models</li><li>Novelty and Outlier Detection</li><li>Neural network models (unsupervised).</li></ul><p>You can view all the available supervised algorithms <a href="https://scikit-learn.org/stable/supervised_learning.html">here</a>.</p><p><strong>Model Selection and Evaluation in Scikit-Learn:</strong>🤓</p><p><strong>Model selection</strong> is the process of choosing between different <strong>machine learning</strong> approaches — e.g. SVM, logistic regression, etc. <strong>Model Evaluation</strong> is a process to find the best <strong>model</strong> that represents our data and how well the chosen model will work in the future. Eg: To avoid Overfitting and Underfitting. Some of the methods offered by scikit-learn are:</p><ul><li>Cross-validation: evaluating estimator performance</li><li>Tuning the hyper-parameters of an estimator</li><li>Model evaluation: quantifying the quality of predictions</li><li>Model persistence</li><li>Validation curves: plotting scores to evaluate models.</li></ul><p><strong>Let’s implement some of the Scikit-learn Algorithms: </strong>🔥🎇</p><p><strong><em>Installing and Importing Scikit-Learn:</em></strong></p><p>If you already have a working installation of NumPy and scipy, the easiest way to install scikit-learn is using pip:</p><pre>pip install -U scikit-learn</pre><p>Or using conda:</p><pre>conda install scikit-learn</pre><p><strong><em>Linear Regression model:</em></strong></p><p>The objective of a linear regression model is to find a relationship between one or more features and a continuous target variable. Only one feature is called Uni-variate Linear Regression; if there are multiple features, it is called <em>Multi</em>ple Linear Regression. It performs a regression task.</p><p>Let’s start building model by importing modules like sklearn(<strong>alias Scikit-learn</strong>) and numpy.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D1&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D1&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/d64c0c40e6712711fe2ec028ddb6166c/href">https://medium.com/media/d64c0c40e6712711fe2ec028ddb6166c/href</a></iframe><p>sklearn.datasets package consists of few built-in datasets. See the full list <a href="https://scikit-learn.org/stable/datasets/index.html">here</a>. For now, let&#39;s import the Diabetes dataset and explore it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D2&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D2&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/497dcc48fb03fd2025f8ac2505344467/href">https://medium.com/media/497dcc48fb03fd2025f8ac2505344467/href</a></iframe><p>As we can see, the Diabetes dataset consists of a total of 422 samples with 10 features each. Now, we can split the dataset into the test and train sets using train_test_split function of sklearn.model_selection package.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D3&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4c1d4499a4d1559b70fbfcc99271210/href">https://medium.com/media/f4c1d4499a4d1559b70fbfcc99271210/href</a></iframe><p>After splitting the data into training and testing sets, finally, the time is to train our algorithm. For that, we need to import LinearRegression class, instantiate it, and call the fit() method along with our training data.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D4&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/7cf49d5ce67e2279f37f29023144ae2d/href">https://medium.com/media/7cf49d5ce67e2279f37f29023144ae2d/href</a></iframe><p>Now that we have completed training in our model, it’s time to make some predictions. For predictions, we use the train set which is completely unseen by the model and see how accurate our algorithm/model predicts.🤞🤞</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D5&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e2eafdb2c2ccfc824c9f2da7ee1f10a/href">https://medium.com/media/4e2eafdb2c2ccfc824c9f2da7ee1f10a/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D6&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ced490c5ced63a130f0c280413ef8ac/href">https://medium.com/media/0ced490c5ced63a130f0c280413ef8ac/href</a></iframe><p>We can also visualize comparison result as a bar graph using the below script :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*da5exy_g9jo7HpFXAGHXnA.png" /></figure><p><strong><em>SVM (Support Vector Machine) model:</em></strong></p><p>Support Vector Machines(SVM) are among one of the most popular and talked about machine learning algorithms. SVM can be used for both Classification and Regression.</p><p>The main objective of SVM is to <strong>find a hyperplane in an N-dimensional space that distinctly classifies the data points</strong>. SVM cannot be applied to the majority of large datasets since the classes must be separated by a boundary that should be linear. Detailed Explanation <a href="https://towardsdatascience.com/a-friendly-introduction-to-support-vector-machines-svm-925b68c5a079">here</a>.</p><p>Let’s see an example using a breast cancer dataset.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D10&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d35451a0869d2b74a6605ffac2b1a49/href">https://medium.com/media/6d35451a0869d2b74a6605ffac2b1a49/href</a></iframe><p>As you can see, this dataset consists of 30 features and 569 samples and only two classes i.e. either <strong><em>malignant</em></strong> or <strong><em>benign</em></strong>. Now, we can split the dataset into the test and train sets using train_test_split function of sklearn.model_selection package.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D11&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D11&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e2b51f0b1471a71c6beda939feaf4ad/href">https://medium.com/media/3e2b51f0b1471a71c6beda939feaf4ad/href</a></iframe><p>Now let’s build a Support Vector Machine model. For this, import SVM module and create a support vector classifier object using SVC() function. Then, the model can be trained using fit() function and get predictions on train set using predict() function.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D12&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D12&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f473b7480bdf6b2b432d83adeb8d701b/href">https://medium.com/media/f473b7480bdf6b2b432d83adeb8d701b/href</a></iframe><p>Since, it is a classification problem we can use different evaluation metrics like <strong><em>Accuracy</em></strong>, <strong><em>Prediction</em></strong>, <strong><em>Recall</em></strong>.</p><ul><li>Accuracy: how often is the classifier correct?</li><li>Precision: what percentage of positive tuples are labeled as such?</li><li>What percentage of positive tuples are labeled as such?</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D13&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D13&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/3aa4aff8e52ab3329b860d4b847eeaa2/href">https://medium.com/media/3aa4aff8e52ab3329b860d4b847eeaa2/href</a></iframe><p><strong>Random Forest model:</strong></p><p>Random forest is a supervised ensemble learning algorithm that is used for both classifiused for both classifications andcations as well as regression problems. But however, it is mainly used for classification problems. As we know that a forest is made up of trees and more trees mean more robust forests. Similarly, the random forest algorithm creates decision trees on data samples and then gets the prediction from each of them and finally selects the best solution by means of voting.</p><p>It is an ensemble method that is better than a single decision tree because it reduces the over-fitting by averaging the result.</p><p><strong><em>Why Random?</em></strong>🤔</p><p>In the Random Forest model, random represents two features, one is a random sampling of training data set whole building trees and the other is random subsets of features considered when splitting nodes.</p><p><strong><em>How the Algorithm works?</em></strong></p><p>It involves four steps:</p><p>Step-1: Select random samples from a given dataset.</p><p>Step-2: Construct a decision tree for each sample and get a prediction result from each decision tree.</p><p>Step-3: Perform a vote for each predicted result.</p><p>Step-4: Select the prediction result with the most votes as the final prediction.</p><p>Now we have a basic idea of working of Random Forests, lets try the algorithm on Iris data which is a built-in dataset of Scikit-learn.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D15&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D15&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/be4f2d9dfd7aab4295df776b3778dc29/href">https://medium.com/media/be4f2d9dfd7aab4295df776b3778dc29/href</a></iframe><p>So, the iris dataset consists of 150 samples with 4 features each. The dataset has 3 classes. Now, we can split the dataset into the test and train sets using train_test_split function of sklearn.model_selection package.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D16&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D16&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/539ea020d07f59f7776fd6cc5f194fa2/href">https://medium.com/media/539ea020d07f59f7776fd6cc5f194fa2/href</a></iframe><p>After splitting, you will train the model on the training set and perform predictions on the test set.</p><p><strong>n_estimators</strong> parameter is the number of trees to be used in the <strong>forest</strong>. It is used to control the number of trees to be used in the process.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D17&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D17&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/7720d4a5cd76db95df43eaa1e8ffa512/href">https://medium.com/media/7720d4a5cd76db95df43eaa1e8ffa512/href</a></iframe><p>After training, check the accuracy using actual and predicted values.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D18&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D18&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/721d3dc770d665aeb53f27dfd0bfe409/href">https://medium.com/media/721d3dc770d665aeb53f27dfd0bfe409/href</a></iframe><p><strong>Importing and Uploading Jupyter notebook to Jovian.ml:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ml%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D19&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ml%2Fv-snehith999%2Fscikit-learn-part-1%2Fv%2F3%26cellId%3D19&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fv-snehith999%2Fprofile_images%2F8d85517f8c924ae1b753a7add113768d%2Fmedium.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/52ea45bca24134147ad605c4833e6f3b/href">https://medium.com/media/52ea45bca24134147ad605c4833e6f3b/href</a></iframe><p><strong>Conclusion:</strong>🤩</p><p>By the end of the Part-1 of <strong>Scikit Learn for Beginners </strong>series, we have learned basics of Machine Learning, types of ML, Introduction of Scikit-Learn, Different algorithms offered by Scikit-Learn and also implemented most popular supervised learning algorithms like SVM, Linear Regression, and Random Forests. In Part-2 of this series, we are going to learn many more interesting Unsupervised algorithms. Stay Tuned!! 😎</p><p><strong>References:</strong>📗</p><ul><li><strong>Complete part-1 Notebook</strong>: <a href="https://jovian.ml/v-snehith999/scikit-learn-part-1">https://jovian.ml/v-snehith999/scikit-learn-part-1</a></li><li>Scikit-Learn OfficialGitHub <a href="https://scikit-learn.org/stable/">https://scikit-learn.org/stable/</a></li><li>Scikit-Learn Introduction: <a href="https://medium.com/@deepanshugaur1998/scikit-learn-part-1-introduction-fa05b19b76f1">https://medium.com/@deepanshugaur1998/scikit-learn-part-1-introduction-fa05b19b76f1</a></li><li>Linear Regression: <a href="https://towardsdatascience.com/a-beginners-guide-to-linear-regression-in-python-with-scikit-learn-83a8f7ae2b4f">https://towardsdatascience.com/a-beginners-guide-to-linear-regression-in-python-with-scikit-learn-83a8f7ae2b4f</a></li><li>SVM: <a href="https://www.datacamp.com/community/tutorials/svm-classification-scikit-learn-python">https://www.datacamp.com/community/tutorials/svm-classification-scikit-learn-python</a></li><li>Random Forest: <a href="https://www.datacamp.com/community/tutorials/random-forests-classifier-python">https://www.datacamp.com/community/tutorials/random-forests-classifier-python</a></li></ul><p><strong>Author:</strong>🤠</p><ul><li><strong><em>Snehit Vaddi</em></strong></li></ul><p>I am a Machine Learning enthusiast. I teach Machines how to See, Listen, and Learn.</p><p><strong>LinkedIn: </strong><a href="https://www.linkedin.com/in/snehit-vaddi-73a814158/"><strong>https://www.linkedin.com/in/snehit-vaddi/</strong></a></p><p><strong>GitHub: </strong><a href="https://github.com/snehitvaddi"><strong>https://github.com/snehitvaddi</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ec0c98e4edd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/most-used-scikit-learn-algorithms-part-1-snehit-vaddi-7ec0c98e4edd">Most used Scikit-Learn Algorithms Part-1|Snehit Vaddi</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>