<?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 Pawan Bhandarkar on Medium]]></title>
        <description><![CDATA[Stories by Pawan Bhandarkar on Medium]]></description>
        <link>https://medium.com/@bhandarkar?source=rss-ec1d3a247f11------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HMe8MO3-4UB5z1-xNyIQDQ.png</url>
            <title>Stories by Pawan Bhandarkar on Medium</title>
            <link>https://medium.com/@bhandarkar?source=rss-ec1d3a247f11------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:10:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhandarkar/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[Stop coding in Javascript! Use Typescript instead]]></title>
            <link>https://bhandarkar.medium.com/stop-coding-in-javascript-use-typescript-instead-643f76a6bdba?source=rss-ec1d3a247f11------2</link>
            <guid isPermaLink="false">https://medium.com/p/643f76a6bdba</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Pawan Bhandarkar]]></dc:creator>
            <pubDate>Fri, 23 Jul 2021 19:43:04 GMT</pubDate>
            <atom:updated>2021-07-23T19:44:00.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDRRhxjQoWQxK1tquuQsQg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@pinjasaur?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Paul Esch-Laurent</a> on <a href="https://unsplash.com/s/photos/javascript?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Recently, I created a <a href="https://twitter.com/bhandarkarpawan/status/1418632095530766336?s=21">Twitter thread</a> about why Typescript should be your preferred language for web development. These thoughts were based on the experiences I had while learning Javascript and how TS helped me overcome them, during the last 2 years of my Web Development journey.</p><p>Here I present the key take-ways from that thread:</p><h4>1. Typescript is Javascript, but better 💪</h4><p>TS is an open-source language that adds static typing to javascript. If you already know/ are learning javascript, TS is a big upgrade that’s easy to learn and get the hang of. Once you start using it, it will become a powerful tool in your arsenal!</p><h4>2. Compile-time safety for the win 🙌</h4><p>Ever had a situation where a function accidentally received a null when it was expecting a number? With static types, you can rest assured that the input and output of your functions will always be the expected type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6BV2ztpIIS0ZqUPR3vFTg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YwS3tSFsQRv8SPfiHEw0eA.png" /><figcaption>The same function with(right) and without(left) Typescript</figcaption></figure><h4>3. Interfaces for improved development 🧑‍💻</h4><p>You can harness the power of interfaces to make your classes and objects more secure than ever! Interfaces make your life easier by always reminding you of common functions that you may have missed during class definition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDlhrspKdUCKj8P--fVueg.png" /><figcaption>Never miss out on a function definition!</figcaption></figure><h4>4. Your IDE remembers 💡</h4><p>When your code grows large, it’s easy to forget what function is expecting what arguments. This can lead to a lot of back and forth between files, which takes time and patience. With typescript and the right extensions, your IDE tracks it for you!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c_YkjxVtNkRkzuUZd9oRNQ.jpeg" /><figcaption>With the Typescript extension, VSCode knows exactly what to expect!</figcaption></figure><h4>5. Javascript is also typescript ↔️</h4><p>Do you want to start using typescript quickly? It’s easy! Since typescript is a superset of Javascript, you can technically get started by renaming your .js files to .ts and adding type annotations wherever prompted. Just make sure you have the typescript compiler installed!</p><h4>6. Improved Readability 🔍</h4><p>Typescript when used correctly, also serves as a form of basic documentation. This is extremely critical when your code is read by other developers in the future. Type annotations allow others to know exactly what to input to provide to your functions and what to expect in return.</p><h4>7. Final thoughts 💭</h4><p>With enough practice, Typescript can save you a lot of time and frustration that you would otherwise have spent looking for semantic/runtime errors. A lot of IDEs have great support for TS and can make your development process more enjoyable than ever!</p><p>Did I miss out on any points?</p><p>Feel free to comment your thoughts about TS below.👇</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=643f76a6bdba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Going Real Time with Typescript and WebSockets.]]></title>
            <link>https://medium.com/geekculture/going-real-time-with-typescript-and-websockets-fe11d1447f44?source=rss-ec1d3a247f11------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe11d1447f44</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[websocket]]></category>
            <category><![CDATA[flask]]></category>
            <dc:creator><![CDATA[Pawan Bhandarkar]]></dc:creator>
            <pubDate>Sun, 02 May 2021 14:56:00 GMT</pubDate>
            <atom:updated>2021-05-04T10:25:33.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aWj-iaLLtT4M2SGuqZCotA.png" /></figure><p>Throughout my bachelor’s degree, I had developed a keen interest in Machine Learning and its applications. So naturally, my four years in college were for the most part spent working on AI projects of varying scales. It was only after graduation did I take my first dip in the ocean of Web Development. This was largely in part because of my new job at a startup that required me to help the company develop software to support a massive ongoing Computer Vision-based project.</p><p>But it was only when I wrote my first line of React code, coupled with the elegance of Typescript did I start to truly appreciate the art of GUI development. However, the journey ahead is long and arduous. So this series of posts not only serves as a way for me to internalize some of the concepts but also as a way to share some ideas with others who are just starting. I will walk you through my development process, while describing the caveats faced along the way and how I try to solve them.</p><p>In this post, I start by building a simple application that can be used to send real-time chat messages between two or more users.</p><h3>React</h3><p>React is a GUI framework developed by Facebook. I quite like React mainly because of two reasons:</p><ol><li>It couples HTML with Javascript, allowing you to easily integrate serverside scripting with the display components.</li><li>React is quite high performance. It provides you with a plethora of components that can be used to minimize how much and how often the GUI needs to be refreshed.</li></ol><h3>Typescript</h3><p>While typescript is generally preferred for larger projects, it can be a huge timesaver once you get used to it. It makes use of interfaces and types to ensure type safety at compile time. This means no more accidentally trying to print the length of a null variable or adding a string to an integer.</p><p>Typescript files are saved with the .tsxextension. It is important to differentiate them from the other types of files you might encounter when dealing with React and Javascript such as .js .ts and .jsx</p><h3>Python</h3><p>For the server, I use Flask-SocketIO to accept and broadcast messages from various clients using the WebSocket Protocol.</p><p>Since you’re reading this article and not one titled “Basics of Web Development”, I will assume some familiarity with React and Python. However, for the uninitiated, I will leave links to all major concepts at the relevant places throughout the article. So let’s get started!</p><p>All code used in this article will be in this <a href="https://github.com/PawanBhandarkar/DemoProjects/tree/master/FlaskReactWebSocketDemo">Github repo.</a></p><h3>Part 1: The Backend.</h3><p>Generally, whenever I start building a web-based project, I like to start with the backend. This helps me get past most of the heavy lifting right at the start. However since this is a simple project, the backend is fairly simple.</p><h4>Step 1: Create a conda virtual env and activate it.</h4><p>It’s always best practice to use a new virtual environment to avoid module version clashes.</p><pre>conda create -n chatroom python==3.7<br>conda activate chatroom</pre><h4>Step 2: Install the required python modules</h4><p>We will be using flask-socketio and gevent to host the websocket server.</p><pre>pip3 install flask_socketio gevent gevent-websocket</pre><h4>Step 3: Build the server</h4><p>Thanks to the brilliant minds behind the Flask python library, we can get a WebSocket server up and running in just 12 lines of code as shown below. The only purpose of this server is to accept incoming client connection requests and broadcast the messages to all connected clients.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eba6eceb5fcdc60b0a604f3f35b9315a/href">https://medium.com/media/eba6eceb5fcdc60b0a604f3f35b9315a/href</a></iframe><p>We can now run out server using</p><pre> python3 server.py</pre><h3>Part 2: The Frontend</h3><p>For the front end, I use React-Typescript. I also use React-Boostrap CSS styling for my components. This is made convenient thanks to the<a href="https://react-bootstrap.github.io/"> ReactBootstrap </a>npm module. Lastly, I also use<a href="https://www.npmjs.com/package/socket.io-client"> Socket.io-client</a> npm module to set up the client side socket connnection.</p><h4>Step 1: Create a Typescript Project</h4><p>Now we get to the most complex part of this project. But don’t worry! We’ll walk through it one step at a time.</p><p>Firstly, we need to initialize a new typescript project. The easiest way to do it is to use <a href="https://reactjs.org/docs/create-a-new-react-app.html#create-react-app">create-react-app</a>. Recently, they added support for typescript which cuts down 90% of the headache!</p><p>We will also use React-Bootstrap GUI components since it allows us to have a decent looking page without having to dive into the CSS which is outside the scope of this post. We also need to install the corresponding types for typescript to kick in.</p><pre>npx create-react-app gui --template typescript<br>cd gui<br>npm i react-bootstrap bootstrap<br>npm i @types/react-bootstrap @types/bootstrap --save-dev<br>npm i socket.io-client @types/socket.io-client</pre><p>While this should work right out of the box, there’s currently <a href="https://github.com/facebook/create-react-app/issues/10109#issuecomment-752650608">some issue </a>that prevents you from doing so. The following command will fix it:</p><pre>npm i @types/react --save-dev</pre><p>Now. You can run npm start and it should load up the landing page for ReactTypescript:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D-CigtIEHcJwCOsdK-D39w.png" /></figure><p>We’re halfway there 🎉</p><h4>Step 2: Build the GUI</h4><p>Next, we have to replace the default template with our code and make it look more like a chat app.</p><p>The best practice, as described in <a href="https://dev.to/bravemaster619/how-to-use-socket-io-client-correctly-in-react-app-o65">this blog post</a> is to make use of React Context to declare the socket object as a globally accessible component. So let’s create a file called socket.tsx for this purpose and add the following code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3080249c957f8b7b4654129c3ae32f4b/href">https://medium.com/media/3080249c957f8b7b4654129c3ae32f4b/href</a></iframe><p>Next, we create a file called ChatRoom.tsx that will contain most of our GUI code. We will make use of React <a href="https://www.freecodecamp.org/news/react-components-jsx-props-for-beginners/">Functional Components</a> for this purpose.</p><p>Note: in the code gists that follow, ... is used to indicate that some code has been omitted to aid in explanation.</p><p>First, we create and export a basic functional component with the states we will be using.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18b23cafb347dfa917a6214acdb34cf9/href">https://medium.com/media/18b23cafb347dfa917a6214acdb34cf9/href</a></iframe><p>In the above gist, the states are:</p><ol><li>socket : The context variable which is the socket object.</li><li>username : Used to store the identifier for each new user.</li><li>message : Used to store the newly typed message before sending.</li><li>allMessages : Used to story the chat history.</li><li>error : Used to store error messages (Optional).</li><li>loggedIn : Used to decide whether to show login page or chat page.</li></ol><p>Next, let’s define a hook to react to incoming messages. We will use the useEffect() hook for our purpose.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8464891ca421f3ee4f07f9e16531955a/href">https://medium.com/media/8464891ca421f3ee4f07f9e16531955a/href</a></iframe><p>React Hooks can be a bit challenging sometimes, even for veteran Web Developers. So to quickly summarise the useEffect() Hook, just know that:</p><ol><li>The function defined in useEffect(()=&gt;{}) will execute once when the component mounts AND once for every time the variable declared within the box brackets [] changes</li><li>They run asynchronously and should be preferred for non-blocking operations such as communicating with a backend.</li></ol><p>Next, we will create a function to send messages to the server, when a user clicks the Send Button:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/33c620efdc05c578f82f357a0707f230/href">https://medium.com/media/33c620efdc05c578f82f357a0707f230/href</a></iframe><p>For the above, we also define a typescript interface that is used for messages. i.e, rather than sending a plain message string to the server, we send the message along with the username of the currently logged-in user. This helps differentiate the messages in the chat room.</p><p>Finally, we will create a function to set the login status so that we can transition from the login page to the cat page.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/158ec4f6cbb697653bd7eac1d47c2579/href">https://medium.com/media/158ec4f6cbb697653bd7eac1d47c2579/href</a></iframe><p>Great! We’re almost there! Now all that’s left is to add the actual display components. As described previously, we will use 2 layouts:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e7a1a69add14c45fa45991bb4d6474a/href">https://medium.com/media/1e7a1a69add14c45fa45991bb4d6474a/href</a></iframe><p>Note: The best practice is to use separate files for each React Component. But since I wanted to keep the example project fairly simple, I opted to define them within the main component.</p><p>We then add some logic to select the appropriate display component:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c82361fca002c1f8bc0e4285f534410/href">https://medium.com/media/8c82361fca002c1f8bc0e4285f534410/href</a></iframe><h4>Step 3: Putting it all Together</h4><p>All that’s left now is to bring all these components together in the App.tsx file so that we can run it using npm start .</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/20038f4df2e59a2f993c5779fbface1b/href">https://medium.com/media/20038f4df2e59a2f993c5779fbface1b/href</a></iframe><h4>Step 4: Run the App!</h4><p>Congratulations on making it to the finish line! You can now run your code and marvel at your newly built chat room! Run the following commands from the root of your project:</p><pre>python3 server.py<br>cd gui <br>npm start</pre><p>The final app will look something like this. Note that I have launched http://localhost:3000 on two separate browser windows to visualise the real-time communication betweem them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ZGXE-oyCBAI6acij8tIRJQ.gif" /><figcaption>And that’s a wrap!</figcaption></figure><h3>Conclusion</h3><p>Note that even though the end application looks quite simple, you now know enough to apply these concepts to your own projects. Here are some ideas on how you can take this project forward:</p><ol><li>Add CSS styling to make it look more appealing</li><li>Add support to send images over the Websocket protocol.</li><li>Host the application online (ex on Heroku)</li><li>Experiment and apply your own ideas to make it stand out!</li></ol><p>Thank you for reading this article in its entirety. If you liked it, make sure to share and leave some comments about what you’d like me to cover next. As always, constructive criticism is always welcome! Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe11d1447f44" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/going-real-time-with-typescript-and-websockets-fe11d1447f44">Going Real Time with Typescript and WebSockets.</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Covid-19 EDA: Man vs Disease]]></title>
            <link>https://bhandarkar.medium.com/covid-19-eda-man-vs-disease-85e3f17091d4?source=rss-ec1d3a247f11------2</link>
            <guid isPermaLink="false">https://medium.com/p/85e3f17091d4</guid>
            <category><![CDATA[hope]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pawan Bhandarkar]]></dc:creator>
            <pubDate>Sat, 06 Feb 2021 17:20:52 GMT</pubDate>
            <atom:updated>2021-02-06T17:20:52.069Z</atom:updated>
            <content:encoded><![CDATA[<h4>A deep dive into the war against the pandemic.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hV-Jds1wWNn8NJSCKcwZHw.jpeg" /><figcaption><a href="https://edition.cnn.com/interactive/2020/health/coronavirus-questions-answers/">Image Source: CNN</a></figcaption></figure><h3>Introduction</h3><p>It has been over a full year since we started this difficult battle against Covid-19 and it has cost us dearly. These fast-spreading microscopic creatures that are too small to be even be seen with the naked eye have somehow shaken the entire world and changed life as we know it. People all over the world are racing against the clock to fight this pandemic. We, the bright minds of the internet and aspiring Data Scientists, can do our part by using our skills to generate powerful insight that can make the lives of those affected a little better.</p><p>Every day, there’s an abundance of data being made publicly available on the internet, each one containing different statistics surrounding the Covid-19 pandemic. In this article (and by extension, the Kaggle Notebook), I aim to bring two such datasets together and visualise the war against Covid-19.</p><p>If you like this article and are interested in taking a closer look at the data, I encourage you to check out my <a href="https://www.kaggle.com/pawanbhandarkar/covid-19-eda-man-vs-disease">Kaggle notebook</a> for the code used to generate the plots you see here.</p><h3>Data Involved:</h3><p>The only reason I decided to take up this analysis as an analytics project was because of two intriguing datasets I found on Kaggle:</p><figure><a href="https://www.kaggle.com/gpreda/covid-world-vaccination-progress"><img alt="" src="https://cdn-images-1.medium.com/max/625/1*EB7bZKiMjvquEvkBpBMWYQ.png" /></a></figure><p><a href="https://www.kaggle.com/josephassaker/covid19-global-dataset/code">Covid-19 Global Dataset</a> contains data scraped from <a href="http://worldometers.info/">worldometers.info</a> and presented in two CSV files. The first file stores day-to-day information about active cases, death rates and recovery statistics while the other summarises this data by country.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*qLigl0s_BDr6gb9GJT8X-w.png" /></figure><p><a href="https://www.kaggle.com/gpreda/covid-world-vaccination-progress">Covid-19 World Vaccination Progress</a> Dataset contains data collected daily from the <a href="https://ourworldindata.org/">Our World in Data</a> Github Repository for Covid-19.</p><p>At the time, many talented Kagglers before me had already published insightful notebooks analysing the datasets separately. But none had worked on bringing them together and generating a unified view of what I like to call, “Man vs Disease.”</p><h3>Technical Background</h3><p>In this part of the article, I will give a brief overview of some of the technical work involved in generating these visualisations. Unless you are interested in Programming with Python and the subject of Data Science, feel free to skip this section and jump straight into the visualisations.</p><h4>Data Preprocessing</h4><p>Any reputed data scientist will tell you that the most critical step in any Data-driven project is data processing. By taking these datasets from Kaggle instead of scraping it ourselves, we cut down on a lot of the hard work that usually goes into making data available for analysis.</p><p>However, we still need to perform some minor cleanup to make it suitable (and convenient!) for our use-case. As you will see in the notebook, I perform the following steps to prepare the data:</p><ol><li><strong>Resolve conflicting Country names</strong>: For example, one dataset stores the American data under “The United States” while the other stores it as “USA” and similarly, for the UK. We also have some inconsistent casing that we need to resolve as in the case of “Isle Of Man” and “Isle of Man”.</li><li><strong>Data Summarization</strong>: As we had mentioned in the Data section above, we have both daily and summary data available for the Covid-19 dataset, but only the daily data for the Vaccination dataset. We will generate the vaccination summaries ourselves so that they can be visualized together with the Covid-19 summaries.</li></ol><p>Additionally, we will also generate some new features from the existing ones, such as log-scaled values that make the graphs easier to interpret, percentage statistics of the available features (as a fraction of the population) etc.</p><h4>Technology Stack</h4><p>In this analysis, I used python as the primary programming language because of its rich palette of tools that make data analysis a cinch. Some of the python packages I used are:</p><ol><li><a href="https://plotly.com/python/"><strong>Plotly</strong></a> is an extremely versatile library of tools for generating interactive plots that are easy to interpret and customise</li><li><a href="https://numpy.org/doc/stable/user/index.html"><strong>Numpy</strong></a><strong> </strong>is a popular library used for array manipulation and vector operations. It is used extensively across python projects that require scientific computing.</li><li><a href="https://pandas.pydata.org/"><strong>Pandas</strong></a> is another library for data science that is just as popular as numpy. It provides easy to use data structures and functions to manipulate structured data.</li></ol><p>These tools are well documented and come with several examples that make it easy to start using them. You can check out the linked documentation pages for more information.</p><h3>Visualisations</h3><p>This section is the crux of the project, where we take the cleaned and processed data and turn them into intuitive graphs. Note that since Medium does not support interactive graphing, I have uploaded screenshots from my Kaggle Notebook. To get the full Plotly Experience, you can check out the notebook linked in the introduction.</p><h4>Visualising Summaries</h4><p>Let’s kick things off by visualising the summaries we computed back in the Data Processing section. Since data is summaries by countries, the visualisations can get quite skewed when we sort the values. So for the sake of comprehension, we will only compare the top-20 countries in each section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*0zTiFmevvhFSbOYRQnWZsw.png" /></figure><p>At first glance, it might seem that <strong>French Polynesia</strong> is suffering the worst since almost 70% of those tested for Covid-19 came back positive. However, we must consider the possibility that only those exhibiting severe symptoms were tested, in the first place. I will leave this investigation to the readers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*sEl7Gog_fqe7LftYBAqpEA.png" /></figure><p>Above, is perhaps the scariest graph in my analysis and the one that is the largest cause for concern. These are the numbers that we are fighting to reduce. As we have heard from multiple sources online, these numbers mainly represent the old and those with pre-existing medical conditions fighting for their lives against this terrible virus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*S9S54ufN3idvTXXMVUYFFw.png" /></figure><p>We see that the <strong>USA</strong> and <strong>China</strong> are leading in terms of the total number of vaccinations administered. Note that this is an indicator of people who have received at least the first dose since the vaccination process generally consists of multiple doses administered over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*vH8jDGPLz5vWM6mYPARQgg.png" /></figure><p>The above plot might seem confusing at first, but it makes sense since we consider the people vaccinated as a percentage of the country’s population. The top 5 countries graphed above have relatively smaller populations than those that come after.</p><h4>Visualising Global Statistics</h4><p>Plotly comes with some quick and easy ways to plot global data on a world map. By doing so, it helps us conveniently understand the metrics for the countries of our interest. If you visit the notebook, you can hover the mouse cover over each country and get a complete breakdown of Active Cases, Total Deaths and Total Recovered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7m4T4NyMrIwXg5Xe7krgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Agi9jrE7OyO1A_bSbYUzrg.png" /></figure><p>The above plots show how the virus has impacted the world on two separate scales: <strong>Country</strong> and <strong>Continent</strong>. These are the numbers highly discussed in news articles, instant messaging apps and on social media. We see that overall, the USA and Europe are the worst hit continents, with Asia close behind.</p><h4>Visualising Vaccination</h4><p>We have seen how the virus has manifested in different parts of the world. Now in this section, we will visualise how the vaccination has been progressing since it’s inception in late 2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GnLsD3nFVi3tXOKIlMHInA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zKsmdylzlG2JuFQ_5gAA_w.png" /><figcaption>Different countries use different combinations of the available vaccines.</figcaption></figure><p>Plotly also enables us to visualize how a metric changes over time, in the form of animations. If this looks interesting as a gif, you would be please to know that in the notebook, you can stop at each time step and examine the values for each country individually, by hovering your mouse cursor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*AUG2X8D69eblnHqvY2xWKg.gif" /></figure><p>The following line chart is another perspective of the same data. For the sake of readability, we only plot the top-10 countries here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*IVP-XWryr9ZyzjA-oPclrQ.png" /></figure><h4>Visualising the race against Covid</h4><p>In this final section, we will emphasise on the premise of this analysis: Man vs Disease. We will combine both of these datasets to generate plots that directly contrast the virus spreading and the efforts made to contain it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkKbLnyjNeXt_HTUsDRhgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NzLH4-CsnIqRn_Zhb4HULg.png" /></figure><p>The above graphs shows how slowly but surely, the vaccines are being administered in increasingly large numbers each day. If we look carefully, we can also identify a slight downward trend in the number of new cases each day, as the vaccinations progress. Humanity is on its way to victory!</p><h3>Conclusion</h3><p>COVID-19 has taken a heavy toll on humankind. We have lost far too many people and suffered too much for too long. Now is the time to fight back. Let 2021 be the year we reclaim what 2020 took from us. Regardless of what people might say, always wear a mask when out in public and maintain social distancing. DO NOT give in hearsay! Only when all of the graphs plotted in the innumerable notebooks posted by the talented people on the internet point heavily in our favour, having dwarfed the damage this pandemic has already done, will we be able to call it a victory.</p><h4>TOGETHER, WE CAN!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85e3f17091d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Campus Recruitment : How do YOU get hired?]]></title>
            <link>https://bhandarkar.medium.com/campus-recruitment-how-do-you-get-hired-f96f6bad9026?source=rss-ec1d3a247f11------2</link>
            <guid isPermaLink="false">https://medium.com/p/f96f6bad9026</guid>
            <category><![CDATA[placement]]></category>
            <category><![CDATA[recruitment]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Pawan Bhandarkar]]></dc:creator>
            <pubDate>Sun, 10 May 2020 15:21:33 GMT</pubDate>
            <atom:updated>2020-05-11T01:30:29.954Z</atom:updated>
            <content:encoded><![CDATA[<h3>Campus Recruitment: How can YOU get hired?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56hCR1CdiU6fEpctJkpdyw.jpeg" /></figure><p>Campus Recruitment is an obstacle that almost all Engineering students face at some point in their lives. As a final year Computer Science Student, when I came across a dataset titled <a href="https://www.kaggle.com/benroshan/factors-affecting-campus-placement"><em>Campus Recruitment</em></a> on Kaggle, I was instantly drawn to it, in hopes of not only understanding the general trend in the industry but also of reassuring myself that I was not a lost cause. Although this dataset is from an MBA college, I think it can still be used to extract valuable information about how ones academic choices can impact their placements.</p><p>The dataset itself is rather small and contains parameters such as a student’s choice of the board for school education, their scores in 10th and 12th grade, whether or not they had prior work experience, etc. Out of the 215 students present in the dataset, 148 students have been placed.</p><p>In this blog post, I would like to share some of the key insights I gained during my analysis of this dataset and kick off a discussion about the implications of these observed trends. However, it is important to come to terms with the limited nature of this dataset and the fact that it is not representative of the full spectrum of students that take part in Campus Recruitment programs.</p><p>If you would like to check out how I applied the CRISP-DM process this dataset along with the code used to generate the plots in this post, you can check out my work on Github <a href="https://github.com/PawanBhandarkar/CRISP-DM-for-Recruitment-Data">here</a> or on Kaggle <a href="https://www.kaggle.com/pawanbhandarkar/crisp-dm-for-recruitment-data">here</a>.</p><h3>Question 1 :</h3><h4>Does the board of education affect placements?</h4><p>I find this question particularly interesting because the general trend that I have observed in new parents these days in India is their increasing preference to enrol their kids into the central board of education than others. This dataset allows us to investigate the following two questions:</p><ul><li>Are central board students more likely to get placed than others?</li><li>Are these kids more likely to be offered a higher salary than others?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*xm8m4Vc4SQt_2zg9Ats05w.png" /><figcaption>Placements by Board of Education</figcaption></figure><p>From the above graph, it might seem that those who took a combination of Central and Others between their 10th and 12th grades were less likely to get placed than those that took Central or Others consistently. However, looking at the number of samples in each of these groupings, we see that (Others, Central) and (Central, Others) have significantly fewer samples than the other two. For our analysis, we will focus on (Central, Central) and (Others, Others) and see if one has any noticeable advantages over the other.</p><p>Here, it seems that the choice of the board doesn’t seem to particularly increase one’s chances of getting placed but maybe it has a role to play in determining one’s salary? Let’s check!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*LcqPp-MgsrgrYsUhnXLVug.png" /><figcaption>Salary by Board of Education</figcaption></figure><p>These two groups seem to have about the same average salary. If the board did indeed matter, we would expect one group to have a noticeably higher mean than the other. In case of the number of placed themselves, the (others, others) group does seem to have slightly higher chances of placements but this could be attributed to the difference in sample counts.</p><p>Now that we have checked potential reasons for parents to choose Central over others, let us now analyse this from a student’s perspective. The general opinion is that Central board can be much harder than others (i.e state board). Does this mean that students have to work harder to get placed in one group than the other? Let us check.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0G-yaGkGdM95vk1iSYNw8A.png" /></figure><p>It seems that among the placed students, those from Central Board scored less in the 10th grade than their counterparts. This could be an indication of how the examinations in the central board tend to be more difficult resulting in a lower average score. However, the opposite seems to be true in the case of the 12th grade. Maybe the more rigorous process the students faced in their secondary schooling better prepared them for their 12th?</p><p>You know what they say: “<em>Some questions are better left for a different dataset.</em>”</p><h3>Question 2</h3><h4>Does it really matter how much you score in your school days?</h4><p>Growing up with Indian parents, I was always told throughout my school days that I should work hard and do well in my exams so that one day I would be able to <em>get a good job</em>. This led me to always try and score as highly as I could on my examinations. With this dataset, let us try to answer the age-old question: “Is there evidence to prove that scoring higher in your school days helps you get placed?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*nyR5fx2lMRbjcSZaP9t-uw.png" /><figcaption>Comparison of Scores Obtained by Placed vs Non-Placed students</figcaption></figure><p>Interesting! There does seem to be a visible trend here. Students who got <strong>Placed </strong>(orange) seem to have on an average, scored better in both their 10th and 12th than their <strong>Non Placed</strong> counterparts (blue). It could be the case that the scores were indeed helpful in impressing potential employers but on the other hand, it is also possible that those students that worked hard in their school days developed the right mindset to keep working and built other skills that increased their employability!</p><h3>Question 3</h3><h4>Is one stream inherently better than the other?</h4><p>In India, when we complete our 10th-grade education, we are met with arguably the most important crossroads our lives. What next: Science, Commerce or Arts? Unfortunately, during my 10th grade, I was faced with a number of health issues and I had to rely on my parents and relatives to choose my path for me while I recovered.</p><p>They insisted that I take up Science, citing reasons such as “There’s a lot of scope for students of science!” and “You’ll get job easily!”.</p><p>Looking back on my journey so far, I do not regret having taken up Science because eventually, Computer Science is where I found my calling. But I’m curious to see if students in one stream are more likely to get a job than some other. Is my relatives’ line of reasoning correct?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*dn4dJmzDtfE6D4MB4AykrA.png" /></figure><p>Arts does seem to be lagging behind in placements but then again it has significantly fewer samples than commerce and science. For our analysis, we will focus on only Science and Commerce, which from the looks of it, have near-identical placement rates.</p><p>Maybe one stream is more likely to be offered a higher salary?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*Ttr2MDpm78LEnYKUczXKsw.png" /><figcaption>Salary by Selected Stream in 12th</figcaption></figure><p>Hmm. Even though the mean salary does look quite similar, maybe the difference lies in the distribution of jobs? Maybe the reason my relatives tried to push Science as the “superior stream” was that there are more high paying jobs than others?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*SIWZEAixGMveWbU743hxcw.png" /><figcaption>Salary Distribution by Selected Stream</figcaption></figure><p>Looks like both streams have about the same spread of salaries. There are some outliers in both cases and Science does seem to have an ever-so-slightly higher third quartile value. But not enough to make it significant.</p><p><strong><em>Conclusion</em></strong>: <em>My relatives are lunatics.</em></p><h3>Question 4</h3><h4>Which degree and MBA specialization has the Highest Salary?</h4><p>We finally come to what I think might be the most relevant information to an employer. A student’s MBA specialization is closely tied to the kind of skills that a company would be looking for and consequently, the salary being offered. The next closest qualification of importance would be the student’s undergraduate degree. Let us look at how these two features affect the salaries being offered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*fDPc5bZKsms7xZVqNA6Lsw.png" /><figcaption>Salary by Degree type and Specialization</figcaption></figure><p>It seems as though the highest salaries that were offered were to students who pursued the Marketing &amp; Finance specialisation after obtaining a UG degree in Commerce and Management. However, these are clearly major outliers. It seems than in general, Students with a Science and Technology UG degree pursuing Mkt&amp;Fin specialization were more likely to get higher-paying jobs.</p><h3>Question 5</h3><h4>Does gender bias exist in campus recruitment?</h4><p>The last question that I would like to answer is an important one. Do companies seem to discriminate between men and women when it comes to placements and salaries?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*X1LlxCwlYqHLMBsyd6zezw.png" /></figure><p>There does seem to be a general trend that men in this dataset have been paid higher than women. But we can also see that the dataset contains fewer samples of females than it does of males.</p><p>Regardless, I think this is slightly concerning that we see hints of such biases existing in today’s society and that the dataset creator might want to take this up with his college!</p><h3>Conclusion</h3><h4>Quick Recap</h4><p>In this analysis, we explored a dataset containing campus recruitment data for students from an MBA college. Through our analysis, we found that:</p><ol><li>The board of school education doesn&#39;t matter when it comes to placements or even salaries.</li><li>Placed students seem to have performed better in their 10th and 12th exams than Non-Placed Students</li><li>The choice of a stream does not really matter when it comes to placements from an MBA perspective.</li><li>Among the various specializations, students with a Sci&amp;Tech UG degree and Mkt&amp;Fin MBA specialization appear to have slightly higher salaries.</li><li>The salaries for female students seem to be generally slightly lower than men.</li></ol><h4>What does this mean for you?</h4><p>We must understand that the results and observations made in this analysis need to be taken with a grain of salt. As I had mentioned earlier, the dataset is highly limited and as a result, heavily biased towards a small set of students from a single MBA college.</p><p>When it comes to getting hired, there are innumerable different factors that also play a big role such as industry requirements, the emerging technology, global trends, the students’ communication skills, personalities, mindset etc.</p><p>Therefore, I urge you to simply follow your heart, make your own choices and give your all towards achieving your goals. Regardless of what a dataset might indicate as being the <em>best stream</em> or <em>best specialization</em>, ultimately, the <em>best job</em> is the one that makes you happy!</p><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f96f6bad9026" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>