<?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 Athisha R K on Medium]]></title>
        <description><![CDATA[Stories by Athisha R K on Medium]]></description>
        <link>https://medium.com/@athishakaliannan?source=rss-6ce1f0ff6afa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tMwDsM7dh6EdMfOMDMETyQ.jpeg</url>
            <title>Stories by Athisha R K on Medium</title>
            <link>https://medium.com/@athishakaliannan?source=rss-6ce1f0ff6afa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 18:35:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@athishakaliannan/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[Simple Sentiment Analysis — Python]]></title>
            <link>https://medium.com/analytics-vidhya/simple-sentiment-analysis-python-bf9de2d75d0?source=rss-6ce1f0ff6afa------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf9de2d75d0</guid>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Athisha R K]]></dc:creator>
            <pubDate>Sun, 01 Aug 2021 14:43:40 GMT</pubDate>
            <atom:updated>2021-08-01T14:43:40.818Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simple Sentiment Analysis — Python</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iWdSAkeeM8M9818-" /><figcaption>Photo by <a href="https://unsplash.com/@stevenlozano?utm_source=medium&amp;utm_medium=referral">steven lozano</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>I</strong>n the modern era, every individual creates a ton of data. The majority of this data is unstructured. The ability of the companies to draw insights from the unstructured data sets them apart from other competitors.</p><p>Let me explain this with an example. Around the world, lakhs of people visit Disneyland every year. The team has tons of data in the form of visitor reviews and ratings. Applying modern-day techniques (like ML, NLP, etc.) can enable them to identify what worked for them and areas that require improvement. Sentiment Analysis is one such tool that helps in understanding the overall tone of the visitor review.</p><h3>Sentiment Analysis</h3><p>Sentiment Analysis measures the person’s inclination towards something using Natural Language Processing(NLP) and Text Analysis. In simple words, using this technique, we will be able to categorize a visitor’s review as a positive or negative review.</p><h3>VADER</h3><p>The NLTK library in Python provides us with a pre-trained model VADER, aimed at sentiment analysis on Social Media. By the end of this tutorial, you would be able to do simple sentiment analysis in Python using VADER.</p><h4><strong>Pre-requisites</strong></h4><ul><li>Familiarity with Google Colab Notebooks, Jupyter Notebooks (or any other equivalent tool)</li><li>Basic understanding of Pandas Dataframe and NLTK Library</li></ul><h4>Dataset</h4><p>The dataset I’ll be using has about 42,000 reviews of 3 Disneyland branches — Paris, California, and Hong Kong, posted by visitors on Trip Advisor. You can download the dataset from <a href="https://www.kaggle.com/arushchillar/disneyland-reviews">Kaggle</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*kP2oCwbPZIQyh218cUEMzQ.png" /><figcaption>Column Description (Source: Kaggle)</figcaption></figure><h4>Expected Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*Oexz2J9xX1zqtngvW_oG0w.png" /><figcaption>Sentiment_Tag: Positive/Negative</figcaption></figure><h4>Download Dataset</h4><p>You could either directly download the dataset from Kaggle or use the Kaggle API token to do the same. Refer to my <a href="https://github.com/athisha-rk/mediumArticlesRelatedFiles/blob/master/Simple_Sentiment_Analysis_Python.ipynb">Colab Notebook</a> for the steps to be followed.</p><h4>Download Required Libraries</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*6QDEtrQzK7fo7GqtsYboxw.png" /><figcaption>Download NLTK and vader_lexicon</figcaption></figure><p>First, we would have to download the NLTK Library and VADER model as shown above.</p><h4>Required Libraries</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*gYxwVQbJyW7-egbLh62qvw.png" /><figcaption>Import Required Libraries</figcaption></figure><p><strong>Read Dataset</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*Lbyj5Ut9FcvsWcvXOXeqkw.png" /><figcaption>Read dataset using Pandas.read_csv()</figcaption></figure><h4>Dataset Overview</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*WrUYEKhV_cZi8gGV1u9iZg.png" /><figcaption>data.shape and data.info()</figcaption></figure><p>We have 42,656 reviews and 6 features in our dataset. We have a mix of int64 and object datatype entries.</p><h4>Prepare Dataset</h4><p>We require only the review id and review text for our analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*6CJbEdavRqIhZOqu-UlMaQ.png" /><figcaption>Extract Review_ID and Review_Text</figcaption></figure><p><strong>A Quick Example using VADER</strong></p><p>Let’s go ahead and apply VADER for the first review, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*sTky_Ch6H9bQ7M5DeqJWYQ.png" /><figcaption>Extract First Review</figcaption></figure><blockquote>If you’ve ever been to Disneyland anywhere you’ll find Disneyland Hong Kong very similar in the layout when you walk into main street! It has a very familiar feel. One of the rides its a Small World is absolutely fabulous and worth doing. The day we visited was fairly hot and relatively busy but the queues moved fairly well.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*eQPPeBH9yhsH-VUagDquVA.png" /><figcaption>Sentiment Analysis for the first Review — rev</figcaption></figure><p>In the resultant dictionary,<br><strong>* Pos: </strong>Positive Review Degree<br><strong>* Neg:</strong> Negative Review Degree<br><strong>* Neu:</strong> Neutral Review Degree<br><strong>* Compound:</strong> It ranges from -1(very negative) to +1(very positive).</p><p>From the result, we could conclude that the review was quite neutral.</p><h4><strong>For All Reviews…</strong></h4><p>This can be easily applied to all the reviews using a for loop and storing the results in four arrays: neg, pos, neu, and compound.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*b0HN8Tewr5CMFcEBoT6ArQ.png" /><figcaption>For all reviews…</figcaption></figure><h4>Append Results to Dataframe</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*wy41tjsMHIInXj8tmliEmA.png" /><figcaption>Append neg, pos, neu, compound to data frame</figcaption></figure><h4>Assign Sentiment Tags</h4><p>We could assign sentiment tags by setting a threshold on the compound or by using the negative and positive features. For demonstration purposes, I have used the maximum of positive and negative to set the tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*EY68ZmUuLV1ruqXQaiULqg.png" /><figcaption>Assign Sentiment_Tag</figcaption></figure><h4>Final Result</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*4Pl02SJKZgBwjffbwvKNaw.png" /><figcaption>Final Result</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*chqv5clls2QOL1bUTgk3VQ.png" /></figure><p>We have got 4K+ negative reviews according to our analysis. I’m sure there are better models than VADER that could analyze it more accurately. You could also come up with your own model using ML and other familiar techniques!</p><p>For further processing, we could save the results as a CSV file as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*v2YnMJ9PiOHKSnMaCRt7OQ.png" /><figcaption>Write data frame to CSV file</figcaption></figure><h4>Useful Links</h4><ul><li><a href="https://github.com/athisha-rk/mediumArticlesRelatedFiles/blob/master/Simple_Sentiment_Analysis_Python.ipynb">Simple Sentiment Analysis Colab Notebook — GitHub</a></li><li><a href="https://www.kaggle.com/arushchillar/disneyland-reviews">Disneyland Reviews Dataset — Kaggle</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf9de2d75d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/simple-sentiment-analysis-python-bf9de2d75d0">Simple Sentiment Analysis — Python</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random Numbers in Python and JavaScript]]></title>
            <link>https://medium.com/analytics-vidhya/random-numbers-in-python-and-javascript-89dc6e6a3de4?source=rss-6ce1f0ff6afa------2</link>
            <guid isPermaLink="false">https://medium.com/p/89dc6e6a3de4</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Athisha R K]]></dc:creator>
            <pubDate>Fri, 26 Feb 2021 16:27:56 GMT</pubDate>
            <atom:updated>2021-02-26T16:27:56.479Z</atom:updated>
            <content:encoded><![CDATA[<h3>Random Numbers !</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KK8GJPB0YlcIHIr8" /><figcaption>Photo by <a href="https://unsplash.com/@jmkong?utm_source=medium&amp;utm_medium=referral">Aaron Sebastian</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One of the objectives of my current project is to make the results obtained from an evolutionary algorithm reproducible. The first thing to do was to extract the current state of the random number generator. I spent few hours reading about true-random numbers, pseudo-random numbers, random number generation algorithms, etc. In this article, I would like to discuss few things that I came across.</p><ul><li>What are random numbers?</li><li>True-random numbers and Pseudo-random numbers</li><li>Random Numbers in Python</li><li>Seed</li><li>Random Number Generator using JavaScript</li></ul><h4>What are random numbers?</h4><p>I came across this concept in C++ Programming class in school. A simple google search “Generate Random Number” could explain that to you(as shown below). The system generates a random number in the range specified by the user. Every number has an equal chance of being generated without any bias.</p><figure><img alt="It is an example of a random number generator on Google. The system has generated 59 as the random number between 10 and 102. The result might be different for you :)" src="https://cdn-images-1.medium.com/max/845/1*GYPNtoEBUha4E_AaNol6YQ.png" /><figcaption>Random Number Generator Example</figcaption></figure><h4><strong>True Random Number and Pseudo-Random Number Generators</strong></h4><p>TRNGs harvest the source of randomness from some physical phenomenon that is expected to be random (such as system time, radioactive decay process, etc).</p><p>PRNGs use computational algorithms to generate random numbers which are not fully random. The results depend upon the initial value called the seed. Hence, knowing the algorithm and the seed one can reproduce these random results. Almost all programming languages can generate only pseudo-random numbers.</p><h4>Random Numbers in Python</h4><p>In python, the <a href="https://numpy.org/doc/1.16/reference/routines.random.html"><em>NumPy.random</em></a> library has various functions to generate random numbers as per our requirements. Here are few examples:</p><figure><img alt="np.random.randint(10,50) gives output as 45." src="https://cdn-images-1.medium.com/max/562/1*E6qV3COT5W945JkEsTkPgA.png" /><figcaption>Generate a Random Integer in the range [10,50)</figcaption></figure><figure><img alt="Result of np.random.random(). It generates a random float in the range [0.0,0.1)" src="https://cdn-images-1.medium.com/max/545/1*Z_j3RsM_04bojsMiBX_HeQ.png" /><figcaption>Generate a Random Float in the range [0.0,0.1)</figcaption></figure><ul><li><a href="https://github.com/athisha-rk/mediumArticlesRelatedFiles/blob/master/RandomNumbers_Python.ipynb"><em>Github: RandomNumbers_Python.ipynb</em></a></li></ul><h4><strong>Seed</strong></h4><p>A seed is a random number that initializes the pseudo-random number generator. With a particular seed, the same sequence of numbers is produced. Hence, setting the seed can make the results reproducible.</p><figure><img alt="np.random.seed(10); np.random.rand(); 0.771320643266746 is always the first random number for seed value=10." src="https://cdn-images-1.medium.com/max/614/1*eCpzFUZ2u5i2KH7PbnR7Lg.png" /><figcaption>Seed in Python</figcaption></figure><p><strong>np.random.get_state()</strong> and <strong>np.random.set_state()</strong> can also help us to save or initialize the state of the random number generator in python.</p><ul><li><a href="https://onlinegdb.com/B1ciWOLfu"><em>Example of Seed — Try it out now!</em></a></li></ul><h4><strong>Random Number Generator using JavaScript</strong></h4><p>In JavaScript, there is no direct function to generate a random integer in a given range. Math.random() returns a random number between 0 (inclusive), and 1 (exclusive). It needs to be manipulated to produce that random integer.</p><figure><img alt="Math.floor(Math.random() * (max — min) ) + min; JavaScript equivalent of Python randint()." src="https://cdn-images-1.medium.com/max/472/1*YY8lqukQgaa81fA9fPY-IA.png" /><figcaption>Generate a random integer between min and max (JavaScript)</figcaption></figure><figure><img alt="Snapshot of Random Number Generator on CodePen" src="https://cdn-images-1.medium.com/max/371/1*1Hv7Oo0lP9rw4i2pXoS6UQ.png" /><figcaption>Generates a random number between 105 and 1000</figcaption></figure><blockquote>min = 105; max = 1000; <strong>=&gt; Math.floor(Math.random()*895)+105</strong></blockquote><figure><img alt="A Snapshot of Random Number Generator Built by Me on Codepen." src="https://cdn-images-1.medium.com/max/1024/1*hM_L1bl5Nk3M5zIj4Bh-lA.png" /><figcaption>A Snapshot of The Random Number Generator Built by Me</figcaption></figure><p><a href="https://codepen.io/rk_athisha/pen/LYbQbOP"><em>CodePen — Random Number Generator by R.K.Athisha</em></a></p><p>I hope this helps you. Let me know your thoughts/suggestions/feedback in the comments section below. Thank You!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89dc6e6a3de4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/random-numbers-in-python-and-javascript-89dc6e6a3de4">Random Numbers in Python and JavaScript</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ultimate Guide to Lists in Python for Beginners]]></title>
            <link>https://medium.com/analytics-vidhya/the-ultimate-guide-to-lists-in-python-for-beginners-e6c46c21d118?source=rss-6ce1f0ff6afa------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6c46c21d118</guid>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Athisha R K]]></dc:creator>
            <pubDate>Wed, 09 Dec 2020 16:36:44 GMT</pubDate>
            <atom:updated>2020-12-09T16:36:44.255Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eh9uINBau6bD7enj" /><figcaption>Photo by <a href="https://unsplash.com/@aaronburden?utm_source=medium&amp;utm_medium=referral">Aaron Burden</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Python is one of the most popular programming languages of our time. It has found an irreplaceable position in the world of data science. In this article, I have discussed the commonly used data structure — Lists. Let’s begin!</p><p>A list is an ordered collection of objects in python. It can store elements of different data types (such as integer, float, string, etc.).</p><p><strong>Few examples…</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*XxuFgt-Wh8Q9SGqGyQd7IA.png" /><figcaption>List of fruits; Empty List; List of elements of different data types;</figcaption></figure><p><strong>Create a List: </strong>A list can be created using [ ] in python as shown below. I’ll be using <em>animals</em> and<em> dogs</em> for further demonstration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*ij357PenuIiAeKA2LJq2xw.png" /><figcaption>Create Lists — Animals, Dogs</figcaption></figure><p><strong>Indexing a List: </strong>List index ranges from 0 to size-1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*T5v-Zcy8eF40O0p-cEDfUg.png" /><figcaption>List Indexing Example</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*oyMewVyOUN7WL5s9JB-Fnw.png" /><figcaption>List Indexing Example in Python</figcaption></figure><p><strong>append( ):</strong> It appends an element to the end of the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*vKfNCzqtDxKuGcRhafbhjg.png" /><figcaption>append() example</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bT1a3YoGumkohNqx" /><figcaption>Just a cute picture of a Akita ❤ Photo by <a href="https://unsplash.com/@lisanto_12?utm_source=medium&amp;utm_medium=referral">Lisanto 李奕良</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I have added some more elements to the lists, <em>animals</em> and <em>dogs</em> using a simple for loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*hZi-HYqdenyJFnbn20i1AQ.png" /><figcaption>Added some more elements to animals and dogs…</figcaption></figure><p><strong>len( ):</strong> It returns the number of elements in the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*bysx700swEarAitcwhVzfQ.png" /><figcaption>size of animals and dogs</figcaption></figure><p><strong>pop( ):</strong> It removes the last element from the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*nt0L1T7PorQ3pP7ViI0OEw.png" /><figcaption>removing the last element in animals — Cat</figcaption></figure><p><strong>pop(i):</strong> It removes the element at index i.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*0K_0DWRTW2nG24ZHzeektw.png" /><figcaption>dogs[2]=Corgi; So ”Corgi” is deleted from the list, Dogs.</figcaption></figure><p><strong>remove(‘ele’):</strong> It removes the element <em>ele</em> from the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*0X84HghXrHNDQtzcJiwELg.png" /><figcaption>‘Dog’ is deleted from animals.</figcaption></figure><p><strong>insert(i,‘ele’):</strong> It inserts element <em>ele</em> at index i.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*hOaJb1_LAfjNAxzeugqdfg.png" /><figcaption>‘Elephant’ is inserted at index 2 of animals</figcaption></figure><p><strong>count(‘ele’):</strong> It returns the number of occurrences of element <em>ele</em> in the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*Bl_2ALygTQEtY9F15e5m0g.png" /><figcaption>‘Elephant’ occurs twice and ‘Lion’ occurs once in animals.</figcaption></figure><p><strong>sort( ):</strong> It sorts a list by default in increasing order. Strings are sorted alphabetically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*grv_Z9AumJuRpEkuKUm_Ag.png" /></figure><p><strong>index(‘ele’):</strong> It returns the index of the element <em>ele</em> in the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*XiUPfbTDzop_Z45vvmeAVg.png" /><figcaption>since animals[1]=’Lion’ and animals[0]=’Elephant’</figcaption></figure><p><strong>reverse( ):</strong> It reverses the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*iTcwaS1FtBDRBfOxgApBAg.png" /><figcaption>Reversal of the list — animals</figcaption></figure><p><strong>extend(lst2):</strong> It appends <em>lst2</em> elements to the existing list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*NF5IQC6UEsHTm3ZyadWbBA.png" /><figcaption>Appending dogs to animals. Why not?! Both are animals…!! :)</figcaption></figure><p><strong>dir([]):</strong> It returns the Different Functions and Attributes associated with List</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*r3s95VO7TkHDe7GGm4Y6_Q.png" /><figcaption>Snapshot of dir([ ])</figcaption></figure><p>There are 46 functions/attributes associated with lists. All the functions that we discussed is also a part of it.</p><p><strong>Questions that you might have…</strong></p><p><strong>1.How will index( ) and remove ( ) behave when the element occurs more than once?</strong></p><ul><li>index( ) — index of the first occurence of the element is returned.</li><li>remove( ) — the first occurence of the element is removed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*bN9b00Tlq25vDisuZMmcFw.png" /><figcaption>Example for Question 1</figcaption></figure><p>In the above example, the <em>‘airport’</em> first occurs at index 1 in <em>places</em>. Therefore, the content of <em>places[1]</em> is removed and not <em>places[4]</em>.</p><p><strong>2.How to sort a list in non-increasing(or descending) order?</strong></p><ul><li>By default, elements are sorted in increasing (or ascending) order.</li><li>When reverse = True, the elements are sorted in decreasing (or descending) order.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*xI9QCzNuckzFq2f5IImXuA.png" /><figcaption>Example for Question 2</figcaption></figure><p><strong>Sample Exercise: Kth Smallest element</strong></p><p>Given an array <strong>arr[]</strong> and a number <strong>K</strong> where K is smaller than size of array, the task is to find the <strong>Kth smallest</strong> element in the given array. It is given that all array elements are distinct.</p><p><strong>Solution</strong></p><p>In python we can solve this question using lists easily. Hint: Sort the list. Please try to code this question on your own.</p><p>Refer to my <a href="https://github.com/athisha-rk/mediumArticlesRelatedFiles/blob/master/_python_lists_.ipynb">Notebook on GitHub</a> for all the code and solution to the exercise.</p><p>Nested Lists, List Slicing, and List Comprehension are some of the topics that a beginner could explore after this.</p><p><strong><em>I hope this helps. Let me know your views/suggestions/questions in the comments section below. :)</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6c46c21d118" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/the-ultimate-guide-to-lists-in-python-for-beginners-e6c46c21d118">The Ultimate Guide to Lists in Python for Beginners</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Easy Ways to Handle Categorical Data — Python]]></title>
            <link>https://medium.com/analytics-vidhya/3-easy-ways-to-handle-categorical-data-python-b43fbd81e227?source=rss-6ce1f0ff6afa------2</link>
            <guid isPermaLink="false">https://medium.com/p/b43fbd81e227</guid>
            <category><![CDATA[pandas-dataframe]]></category>
            <category><![CDATA[scikit-learn]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-preprocessing]]></category>
            <dc:creator><![CDATA[Athisha R K]]></dc:creator>
            <pubDate>Thu, 22 Oct 2020 13:15:19 GMT</pubDate>
            <atom:updated>2020-10-22T13:15:19.288Z</atom:updated>
            <content:encoded><![CDATA[<h3>3 Easy Ways to Handle Categorical Data -Python</h3><figure><img alt="A Picture of 6 diamonds arranged in a horizontal line." src="https://cdn-images-1.medium.com/max/1024/0*KOZt8wu1O0uw_9Ka" /><figcaption>Photo by <a href="https://unsplash.com/@edgardo1987?utm_source=medium&amp;utm_medium=referral">Edgar Soto</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Introduction</h4><p>The NOIR System is to classify data as Nominal, Ordinal, Interval, and Ratio. Right now, only a basic understanding of Nominal and Ordinal is required.</p><ul><li><strong>Nominal:</strong> Categories without any implied order. For example, different blood groups like A+ve, O-ve, etc. do not have an implied ordering among them.</li><li><strong>Ordinal:</strong> Categories with implied ordering. For example, the disease can have several stages: onset, acute, and chronic. Each is more severe than the previous one.</li></ul><figure><img alt="Gender, Fruits, Tennis? are examples of Nominal data type. Running Race results, grade, education are examples of Ordinal." src="https://cdn-images-1.medium.com/max/404/1*V215wtdsFrzxRdw6hBCgQA.png" /><figcaption>Examples of Nominal and Ordinal Data Types</figcaption></figure><p>A categorical Feature can be either Nominal or Ordinal datatype. Here are few examples:</p><figure><img alt="A snapshot of 3 random rows from the iris data-set. Species is a categorical feature." src="https://cdn-images-1.medium.com/max/537/1*ppZtjA_fGZbwOXrta2wwWg.png" /><figcaption>iris.csv: species [‘setosa’ ‘versicolor’ ‘virginica&#39;]</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*u764_XXAboxTVjEUjSAFzg.png" /><figcaption>Seaborn Tips Data-set: sex, smoker, day, time are categorical features</figcaption></figure><p>Categorical features cannot be processed by the computer directly. They need to be encoded to enable further processing and analysis. <strong>Encoding</strong> is the transformation of categorical variables to binary or numerical counterparts.</p><figure><img alt="For example, Encoding of Fruits is: Mango=0, Apple=1, Orange=2, Watermelon=3. Encoding of Play Tennis is: Yes=0, No=1." src="https://cdn-images-1.medium.com/max/340/1*tizrqn1-WxYx9Z1q3Ybh2g.png" /><figcaption>Encoding Examples</figcaption></figure><p>In this article, I’ll be explaining 3 easy ways of encoding in Python.</p><h4>Prerequisites</h4><ul><li>Familiarity with Google Colab Notebooks, Jupyter Notebooks (or any other equivalent tool)</li><li>Basic understanding of Pandas DataFrame and sci-kit learn library in Python.</li></ul><h4>Let’s begin…</h4><p>We shall begin by importing the necessary libraries in python.</p><figure><img alt="Import required libraries like pandas, numpy, seaborn, sklearn.preprocessing, etc." src="https://cdn-images-1.medium.com/max/381/1*jAAOcdBrPOuo9dVYZ0bfgw.png" /><figcaption>Import Necessary Libraries</figcaption></figure><p><strong>Seaborn</strong> library is used to plot graphs in python (similar to matplotlib). It also provides quick access to some example datasets for documenting seaborn or generating reproducible examples for bug reports. The list of available datasets can be obtained using <strong>get_dataset_names()</strong> as shown below.</p><figure><img alt="Code snippet to list the available datasets in seaborn. Some of it are Diamonds, Titanic, Iris and Dots." src="https://cdn-images-1.medium.com/max/334/1*7PHSDgvv-4b2hKZVFGCM1Q.png" /><figcaption>List of Available Datasets in Seaborn</figcaption></figure><p>I will be using the <strong>“Diamonds”</strong> dataset. Please feel free to experiment with other datasets like iris, titanic, planets, and tips.</p><figure><img alt="Load the dataset ‘diamonds’ using seaborn.load_dataset()." src="https://cdn-images-1.medium.com/max/563/1*so07Mj4xIoyARdVMvIAP1Q.png" /><figcaption>Load the dataset: Diamonds</figcaption></figure><p>This classic dataset contains the prices and other attributes of almost 54,000 diamonds. We can also observe that there are no missing values in the dataset.</p><figure><img alt="data.isnull().sum().sum() shows that there are no missing values in the dataset." src="https://cdn-images-1.medium.com/max/534/1*F5xfmjMlfIwogpZWpskJ2Q.png" /><figcaption>Shape of the Dataset and Perecentage of Missing Values</figcaption></figure><p>Many beautiful graphs can be drawn with this data using seaborn and matplotlib as shown below (<a href="https://github.com/athisha-rk/mediumArticlesRelatedFiles/blob/master/categorical_data.ipynb">GitHub</a>).</p><figure><img alt="A colorful Scatterplot of Carat vs Price with hue=Cut" src="https://cdn-images-1.medium.com/max/429/1*y43-nKNcSOuoh8P3r24U6A.png" /><figcaption>Scatterplot of Carat vs Price w.r.t. Cut</figcaption></figure><figure><img alt="A colorful scatter-plot of Depth vs Price with hue=’Cut’." src="https://cdn-images-1.medium.com/max/422/1*tKUugytiWJXTu6Cyb4y0TQ.png" /><figcaption>Scatterplot of Depth vs Price w.r.t Cut</figcaption></figure><p>The categorical features are Cut, Color and Clarity. These three features needs to be encoded before further processing is done.</p><figure><img alt="Different classes in each feature. For example, Color feature has E, I, J, H, F, G, D. Found using data.column_name.unique()." src="https://cdn-images-1.medium.com/max/562/1*MQy_TZgqzKBxm0E38GZHZA.png" /><figcaption>Different classes in each feature</figcaption></figure><p><strong>Method 1: Using apply() for Cut feature</strong></p><p>apply() function allows the user to apply a function on each value of a feature in a dataframe. When we use apply(), it gives us the liberty to map it to any value. The mapping is done for ‘Cut’ as shown below.</p><figure><img alt="Mapping of Cut Feature: Ideal=4, Premium=3, Good=2, Very Good=1, Fair=0" src="https://cdn-images-1.medium.com/max/156/1*y5iiMjV7Dc3tpwjbQSSqYg.png" /><figcaption>Mapping done by CutEncoding( ) for the value ‘cut’</figcaption></figure><figure><img alt="Encoding Cut using apply()" src="https://cdn-images-1.medium.com/max/522/1*Bdzbbw2iBrwPitONHkMUfg.png" /><figcaption>Encoding Cut using apply()</figcaption></figure><p><strong>Method 2: Using Label Encoder for Color feature</strong></p><p>sklearn.preprocessing.LabelEncoder() encodes the value between 0 to n-1. In our data, Color has 7 classes. So the encoded values ranges from 0 to 6. The below code snippet achieves that goal.</p><figure><img alt="Label Encoding of Color (sklearn.preprocessing)" src="https://cdn-images-1.medium.com/max/514/1*Vu7eoDTcUma7p9edV3SIOA.png" /><figcaption>Label Encoding of Color (sklearn.preprocessing)</figcaption></figure><p><strong>Method 3: Using DummyEncoding for Clarity Feature</strong></p><p>pandas.get_dummies() converts the categorical feature to indicator or dummy variables.</p><p><strong>Example:</strong> Consider a small dataset having Tennis? as a feature. Possible values for Tennis? are Yes, No, Maybe. The result of get_dummies() is shown below.</p><figure><img alt="Working of get_dummies() using small dataset having Tennis? (Yes, No, Maybe) as a feature." src="https://cdn-images-1.medium.com/max/587/1*Ba0JlYdKOn59bJ8_ysmqpQ.png" /><figcaption>Illustration of get_dummies()</figcaption></figure><p>get_dummies() can be useful when we are concerned about only one class of a particular feature. When we are trying to shortlist tennis players, the data is regrouped to tennis players and non-tennis players. In such a case, only Tennis_Yes feature is enough.</p><p>The same concept can be applied for ‘Clarity’ in our dataset.</p><figure><img alt="Dummy Encoding of Clarity" src="https://cdn-images-1.medium.com/max/1024/1*V50TOHV6tK8uUU2HERgqYw.png" /><figcaption>Dummy Encoding of Clarity</figcaption></figure><p><strong>Another Quick Example: Iris Dataset</strong></p><ol><li>Load the dataset using seaborn.load_dataset()</li></ol><figure><img alt="load iris dataset" src="https://cdn-images-1.medium.com/max/539/1*I3e2mt5IMm73uaNFlqV9nQ.png" /><figcaption>Load iris dataset</figcaption></figure><p>2. Apply LabelEncoder() for species feature</p><figure><img alt="Label Encoding of species" src="https://cdn-images-1.medium.com/max/491/1*K0HgTO6gTfbOc9lQm7IaDg.png" /><figcaption>Label Encoding of ‘species’</figcaption></figure><p>3. Final results</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*qyV-ruvdIrdbxeTPTdfUuw.png" /></figure><h4><strong>Useful Resources</strong></h4><ul><li><a href="https://www.kaggle.com/shivam2503/diamonds">Download the dataset “Diamonds” from kaggle</a></li><li><a href="https://github.com/athisha-rk/mediumArticlesRelatedFiles/blob/master/categorical_data.ipynb">categorical_data.ipynb</a></li></ul><p>There are a lot many ways to encode data. These three are the easiest among them. Let me know your thoughts/questions in the comments section below :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b43fbd81e227" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/3-easy-ways-to-handle-categorical-data-python-b43fbd81e227">3 Easy Ways to Handle Categorical Data — Python</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Plot Data on a World Map in Python?]]></title>
            <link>https://medium.com/analytics-vidhya/how-to-plot-data-on-a-world-map-in-python-25cf9733c3dd?source=rss-6ce1f0ff6afa------2</link>
            <guid isPermaLink="false">https://medium.com/p/25cf9733c3dd</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[basemap]]></category>
            <dc:creator><![CDATA[Athisha R K]]></dc:creator>
            <pubDate>Fri, 18 Sep 2020 15:46:58 GMT</pubDate>
            <atom:updated>2020-09-22T13:45:48.131Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A Digital Display of World Map with some places marked in red dots" src="https://cdn-images-1.medium.com/max/1024/0*7_14yCCa60xE10iE" /><figcaption>Photo by <a href="https://unsplash.com/@martinsanchez?utm_source=medium&amp;utm_medium=referral">Martin Sanchez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I learned a new thing this week. In Machine Learning class, I clustered weather stations using DBSCAN (maybe topic for another article) and plotted those results on a world map. For this, I used the Basemap package in python.</p><h4><strong>What is Basemap?</strong></h4><p>Basemap is a tool to create beautiful maps in python. It is an extension of Matplotlib. Using Basemap, we can plot coastal lines and countries directly.</p><h4>Prerequisites</h4><ul><li>Basics of Matplotlib and Pandas in Python</li><li>Experience with Jupyter Notebooks or Google Colab Notebooks (or any other equivalent)</li></ul><h3><strong>Lets do this!</strong></h3><p>I’m using Google Colab for this tutorial. First, we need to install the required packages to use the Basemap in python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQGaEiA_OYuCQUuBQDFjPQ.png" /><figcaption>Install The Required Packages</figcaption></figure><p>Here, I’m importing the packages which we will be using later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*Xml7Nv7FlrclvzpczzXArg.png" /><figcaption>Import the Packages</figcaption></figure><p>We can use any dataset which has Latitude and Longitude as features. Here, I’m using the cities.csv dataset provided by my instructor (You can find a similar dataset on <a href="https://www.kaggle.com/max-mind/world-cities-database?select=worldcitiespop.csv">kaggle</a>). Create a Pandas data frame using that dataset file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*N0M2yY-Da4kYHoec6wCLyg.png" /><figcaption>Create a Data Frame using dataset.csv</figcaption></figure><p>The dataset which I have used has 245 entries and 8 features (including latitude and longitude).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MDXnb3VhJogSi9q-zl7Luw.png" /><figcaption>Data Frame Shape and Head</figcaption></figure><p>We need only the latitude and longitude for plotting the map. So the following piece of code creates a data frame having only those 2 features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*DQVlWlFa4XXcPrUaTdpRUA.png" /><figcaption>Extract the required features from the data frame</figcaption></figure><p>Set the upper bound and lower bound of latitude and longitude</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*nr59VP4XDwFzk7_379MVXw.png" /><figcaption>Upper and Lower Bound of Latitude and Longitude</figcaption></figure><p>But how to get the values to set the upper bound and lower bound? I used <a href="https://www.openstreetmap.org/">OpenStreetMap</a> export feature to find those values for South America region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65hssrPrNEuqMpNw5u9KeA.png" /><figcaption>OpenStreetMap Export Feature</figcaption></figure><p>Extract only those data points that lie in the given region. There are 47 data points to plot in the South America region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*oeyUR7Sb5gbNNEDVa1VzjQ.png" /><figcaption>Retrieve data points in the specified area</figcaption></figure><p>Create the Basemap with necessary parameters like upper bound and lower bound of longitude and latitude.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wwfREOySDJJJy9YKIMBF-A.png" /><figcaption>Create Basemap</figcaption></figure><p>Draw coastal lines and countries. xs and ys are relative coordinates on the map. Iterate through the dataset and plot each point on the map. The last line in the below code snippet downloads the image to the computer (or to /content in Google Colab).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*BKBS_N5Z4HZYMazFwsGI3g.png" /><figcaption>Draw the map</figcaption></figure><p>Output of the above code snippet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*bRD_HObJdYsX089tpqWizw.png" /><figcaption>The Final Result!! :)</figcaption></figure><p>The below code snippet can be used to display an image in python notebook. Here, it displays the map that was downloaded before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*LWS-BrLfIM5sXuIap9OIDQ.png" /><figcaption>Code to display an image in python</figcaption></figure><p>Output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8gq_lGt9p25Bh6TAyArtIQ.png" /><figcaption>ExampleMap.png</figcaption></figure><p>The above image is an example of how powerful the Basemap package is. Using the Basemap package we could create many more such maps with ease.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9l4UOdbijFxvaa6H" /><figcaption>Photo by <a href="https://unsplash.com/@kellysikkema?utm_source=medium&amp;utm_medium=referral">Kelly Sikkema</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong><em>Hope this helps. Let me know your views/suggestions/questions in the comments section below. :)</em></strong></p><p><strong>GitHub Link: </strong><a href="https://github.com/athisha-rk/mediumArticlesRelatedFiles/blob/master/Basemap_Example.ipynb">https://github.com/athisha-rk/mediumArticlesRelatedFiles/blob/master/Basemap_Example.ipynb</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25cf9733c3dd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/how-to-plot-data-on-a-world-map-in-python-25cf9733c3dd">How to Plot Data on a World Map in Python?</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database Normalization Cheat Sheet]]></title>
            <link>https://medium.com/@athishakaliannan/database-normalization-cheat-sheet-873964ab8cd2?source=rss-6ce1f0ff6afa------2</link>
            <guid isPermaLink="false">https://medium.com/p/873964ab8cd2</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[normalization]]></category>
            <category><![CDATA[database-design]]></category>
            <dc:creator><![CDATA[Athisha R K]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 14:03:37 GMT</pubDate>
            <atom:updated>2020-07-05T14:03:37.728Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gjt2Pp4rMoyqvV5B" /><figcaption>Photo by <a href="https://unsplash.com/@ismailenesayhan?utm_source=medium&amp;utm_medium=referral">İsmail Enes Ayhan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Database normalization removes redundancy and ensures that data is logically stored. It removes insertion, deletion, and updation anomalies. Here I’ll briefly explain the 5 normalization rules.</p><ol><li>First Normal Form</li><li>Second Normal Form</li><li>Third Normal Form</li><li>BCNF: Boyce and Codd Normal Form</li><li>Fourth Normal Form</li></ol><h3><strong>First Normal Form</strong></h3><p>A table is supposed to be in first normal form if,</p><ul><li>All the attributes are single-valued (atomic).</li><li>All the columns have unique names.</li><li>The order in which data is stored does not matter.</li></ul><p><strong>Example:</strong> In Shirt_Info table, Size attribute is not atomic. Hence it can be decomposed into Design_Info and Size_Info as shown in the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hl6SPml33Igam-hDjZowyw.png" /><figcaption>First Normal Form Example</figcaption></figure><h3><strong>Second Normal Form</strong></h3><p>A table is supposed to be in second normal form if,</p><ul><li>It is in the 1st normal form.</li><li>It does not have any partial dependency</li></ul><p><strong>Example:</strong> In Customer_Info table, Store_Name depends on Store_ID and not on Cust_ID. This is a partial dependency. Hence, Customer_Info is not in second normal form (though it satisfies 1NF). It can be decomposed into Customer_Data and Store_Data as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nayJUG6mL7Yd7v7OGuztMg.png" /><figcaption>Second Normal Form Example</figcaption></figure><h3><strong>Third Normal Form</strong></h3><p>A table is supposed to be in third normal form if,</p><ul><li>It satisfies 2nd normal form.</li><li>It does not have any transitive dependency.</li></ul><p><strong>Example:</strong> Movie_Info is in second normal form but it has a transitive dependency. Therefore, it is not in third normal form. It can be decomposed into Movie_Rating and Genre_Info as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eXKlfg0s0oUelTZsASEEuQ.png" /><figcaption>Third Normal Form Example</figcaption></figure><h3><strong>Boyce and Codd Normal Form (BCNF)</strong></h3><p>A table is supposed to be in BCNF if,</p><ul><li>It is in 3rd Normal Form.</li><li>For every dependency X-&gt;Y, X cannot be a non-prime attribute if Y is prime attribute (i.e. X should be a super key)</li></ul><p><strong>Example:</strong> Student_Info is not in BCNF because in the dependency Faculty -&gt; Subject, Subject is prime attribute and Faculty is non-prime attribute. It can be decomposed into Student_Faculty_Info and Faculty_Info as shown below.</p><p><em>Also read about attribute closure, testing for BCNF and BCNF Decomposition Algorithm.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FEqEuBWz0trX2ofejXwWBQ.png" /><figcaption>BCNF Example</figcaption></figure><h3><strong>Fourth Normal Form</strong></h3><p>A table is supposed to be in fourth normal form if,</p><ul><li>It is in BCNF.</li><li>It has no multi-valued dependency.</li></ul><p><strong><em>Multi-valued Dependency:</em></strong><em> For a dependency A → B, if for a single value of A, multiple values of B exists, then the relation will be a multi-valued dependency.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*R1j-b8acvPK3xRA9ySSVKQ.png" /><figcaption>Fourth Normal Form Example</figcaption></figure><p>Hope this helps. Let me know your feedback/suggestions in the comments section below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=873964ab8cd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>