<?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 Abhijeet Patil on Medium]]></title>
        <description><![CDATA[Stories by Abhijeet Patil on Medium]]></description>
        <link>https://medium.com/@patilabhijeetges89?source=rss-9f6d4b4bc632------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Opy20DDMU6iuGYpKSLlhig@2x.jpeg</url>
            <title>Stories by Abhijeet Patil on Medium</title>
            <link>https://medium.com/@patilabhijeetges89?source=rss-9f6d4b4bc632------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:28:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@patilabhijeetges89/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[How I Benchmarked the Top Testing Frameworks — And What I Learned]]></title>
            <link>https://patilabhijeetges89.medium.com/how-i-benchmarked-the-top-testing-frameworks-and-what-i-learned-d2c23334304b?source=rss-9f6d4b4bc632------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2c23334304b</guid>
            <category><![CDATA[junit]]></category>
            <category><![CDATA[testng]]></category>
            <category><![CDATA[nunit]]></category>
            <category><![CDATA[testing-framework]]></category>
            <category><![CDATA[xunit]]></category>
            <dc:creator><![CDATA[Abhijeet Patil]]></dc:creator>
            <pubDate>Fri, 04 Apr 2025 22:24:39 GMT</pubDate>
            <atom:updated>2025-04-04T22:24:39.784Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Benchmarked the Top Testing Frameworks — And What I Learned</h3><p><em>“Ever spent hours debugging code only to realize your testing framework was slowing you down? I’ve been there, and it led me to dive deep into the world of software testing frameworks.”</em></p><p>As a computer science student, I explored how these tools shape software quality, efficiency, and even your CI/CD pipeline. Here’s what I discovered.</p><p><strong>Why Testing Frameworks Matter</strong></p><p>Think of writing software as baking a cake. You mix the ingredients (code), pop it in the oven (run the program), and hope it tastes good (works as expected). But what if the recipe’s off? Testing frameworks are like taste-testers — they check each bite (or piece of code) to ensure it’s right before serving it to your users. Without them, you’d be guessing if your app works, and that’s a recipe for disaster — crashes, angry users, or worse.</p><p>These tools don’t just spot problems; they save time and effort. Instead of manually clicking through your app to test every feature (boring!), frameworks like JUnit or TestNG run hundreds of checks in seconds. They’re a must-have for developers who want reliable, high-quality software without losing their sanity. My research showed they’re especially key in today’s fast-paced world, where apps must launch quickly and work perfectly.</p><p><strong>The Big Four: A Quick Rundown</strong></p><p>So, what are these frameworks? Let’s meet the stars I studied:</p><figure><img alt="The go-to for Java devs, simple and widely supported, but no native parallel execution." src="https://cdn-images-1.medium.com/max/163/1*WQhwzKq5Xt2NGlyFdydSrg.png" /><figcaption><strong>JUnit</strong>: The go-to for Java devs, simple and widely supported, but no native parallel execution</figcaption></figure><p>The friendly helper for Java developers. It’s like a trusty calculator — simple, reliable, and great for basic math (or basic tests). It’s super popular because it’s easy to use and works with tools like Maven, which help build Java projects. Downside? It’s not the fastest for big jobs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/164/1*_Kkx3pQ2JlRGiSln5i0PmQ.png" /><figcaption><strong><em>TestNG</em></strong>: JUnit’s cooler cousin with parallel testing and dependency management — perfect for big projects</figcaption></figure><p>JUnit’s cooler, more adventurous sibling. Imagine a multitasker who can juggle tasks at once — like testing multiple parts of your app simultaneously. It’s perfect for bigger projects where speed and flexibility matter, and it even plays nice with web testing tools like Selenium.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/128/1*vG2VI0gwQV-7i4QI0QVYyw.png" /><figcaption><strong><em>NUnit</em></strong><em>: A .NET favorite, fast and Azure-friendly, though less flexible outside Microsoft’s ecosystem</em></figcaption></figure><p>The go-to for folks using .NET (Microsoft’s coding world). It’s like a high-speed train — fast, efficient, and built for the .NET tracks. It’s awesome if you’re working with Visual Studio or Azure DevOps, though it’s less comfy outside that ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/148/1*zpF3SV1nJ8E_-fRnBcnNBQ.png" /><figcaption><strong><em>xUnit</em></strong>: The lightweight, cross-platform champ for microservices and cloud setups</figcaption></figure><p>The chill, adaptable one. Picture a lightweight bike that can ride anywhere — across Java, .NET, or even cloud setups. It’s simple and speedy, making it a favorite for modern projects like microservices (think small, independent app pieces) or apps running in Docker containers.</p><p><strong>What I Found: Performance and Practicality</strong></p><p>When I dug into these frameworks for my research, I wanted to know: how do they stack up in the real world? My paper analyzed benchmark tests - think of them as timed challenges to see which tool finishes fastest and works smartest. The results came from controlled experiments comparing JUnit, TestNG, NUnit, and xUnit, and they revealed some pretty useful insights.</p><p>Here’s the rundown:</p><p>NUnit and xUnit were the speed kings, clocking in at around 4.2 and 4.5 seconds to handle a hefty batch of tests. They’re like sprinters who don’t waste energy, keeping computer resources light. TestNG wasn’t far behind at 5.1 seconds, and here’s where it gets cool — it can run multiple tests at once, like a chef flipping burgers on two grills. That makes it a powerhouse for big projects. JUnit, though, took a bit longer at 6.3 seconds. It’s steady and reliable, but it doesn’t juggle tasks without some extra setup, so it’s more of a one-thing-at-a-time player.</p><p>What’s this mean for you? If you’re coding a small app or just learning the ropes, JUnit’s simplicity keeps things stress-free. Working on a massive project with tons of moving parts? TestNG’s ability to multitask saves the day. For .NET developers, NUnit’s speed is a win, and xUnit’s flexibility shines if you’re bouncing between platforms or building for the cloud. It’s all about picking the right tool for the job — speed, scale, or ease, depending on what you need.</p><p><strong>Automation and CI/CD: The Game-Changer</strong></p><p>Here’s where it gets exciting: automation. Imagine not just testing your app, but having it test itself every time you tweak the code — automatically. That’s what modern developers do with CI/CD pipelines (fancy terms for “continuous integration and delivery”). It’s like setting up a conveyor belt that builds, tests, and ships your app without you lifting a finger.</p><ul><li><strong>TestNG</strong> and <strong>NUnit</strong> are automation superstars. TestNG can run tests side-by-side and handle complex setups, while NUnit fits perfectly into Microsoft’s Azure DevOps world. Both make your conveyor belt hum.</li><li><strong>JUnit</strong> is great too, but it needs a little extra setup to match their automation tricks — like adding a plugin to get parallel testing.</li><li><strong>xUnit</strong> keeps it simple and light, making it a dream for cloud setups (think apps running on servers far away) or Docker containers.</li></ul><p>In my tests, all four played nicely with tools like Jenkins or GitHub Actions, which are like the managers of that conveyor belt. For example, TestNG paired with Selenium can auto-test a website, while xUnit thrives in a Dockerized world. Automation’s the future — it’s faster, smarter, and lets developers focus on creating, not fixing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*aOeOjTCl798zitTf47hZQg.png" /><figcaption><strong>Table 1</strong>. Framework with supporting capability</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*wO9nKKrKiFdoiRKXzFf22A.png" /><figcaption><strong>Table 2</strong>. Framework with compatibility</figcaption></figure><p><strong>Conclusion</strong></p><p>So, which framework wins? It’s not a cage match — it’s about what fits <em>your</em> needs. JUnit’s perfect if you’re starting out or keeping it simple. TestNG tackles big, complex projects with ease. NUnit’s your pick if you’re in the .NET crowd, and xUnit’s the flexible friend for cloud or cross-platform work. My research showed they all boost software quality, but the best one depends on your app, your team, and how fast you need to move.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2c23334304b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Students Attendance System]]></title>
            <link>https://patilabhijeetges89.medium.com/automated-students-attendance-system-4825c23bdf1c?source=rss-9f6d4b4bc632------2</link>
            <guid isPermaLink="false">https://medium.com/p/4825c23bdf1c</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[image-classification]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Abhijeet Patil]]></dc:creator>
            <pubDate>Fri, 21 May 2021 11:16:30 GMT</pubDate>
            <atom:updated>2021-05-21T11:22:37.306Z</atom:updated>
            <content:encoded><![CDATA[<p>Face recognition used to be rocket science within the pre-2012 days. But now, because of the explosion in Deep Learning thanks to rapid advancements in GPU compute capabilities, the technology has become quite accessible. Many free and paid services provide pre-trained neural networks for the aim of face recognition and analysis. You only have to be compelled to have basic programming skills to use their API.</p><p>Attendance management is important to every single organization such as employees and students to keep a track of their daily schedule and maximize their performance. Managing student attendance during lecture periods has become a difficult challenge and major task as manual computation produces errors and wastes tons of your time. For the stated reason, an efficient Android application for attendance management system is designed to track student’s activity in the class. This application takes attendance electronically and therefore the records of the attendance are stored in a database. Google Firebase is used for the Application Database to develop iOS, Android, and Web Apps. Firebase provides tools for tracking the analytics, reporting, and fixing app crashes. TensorFlow is used for image classification with pertained models and image segmentation to predict whether the pixels of the image are associated with a certain class trained with peoples, places, and more. Insertions, deletions, and changes of knowledge within the system can be done straight through the designed GUI without interacting with the database tables. Different presentation of information is obtainable from the system. The test case of the system exposed that the system is functioning enormously and is prepared to use to manage to attend students for any department of the University.</p><h3>IMPLEMENTING THE ATTENDANCE SYSTEM</h3><p>Firstly, we have developed the Android Application of Attendance System with the help of <strong>ANDROID STUDIO. </strong>An efficient Android application for attendance management system is designed to track student’s activity in the class.</p><blockquote><strong>Android User Interface</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*Ek1nnzBLL3vqxGqetuG0bQ.png" /><figcaption><strong>Figure: Login/Sign Up Page</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*unLVdUZ6n1IIz9ffeIhiKg.png" /><figcaption><strong>Figure: Upload Image</strong></figcaption></figure><blockquote><strong>Methodology</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*dbonkhUiap-16n0aRUrQIw.png" /><figcaption><strong>Figure: FLOWCHART FOR AUTOMATED STUDENTS ATTENDANCE SYSTEM</strong></figcaption></figure><p>For implementing the automated face recognition system, we need to follow some particular methodologies. The certain steps need to be performed for this process. Those steps are as follows:</p><p><strong>Steps for Face Recognition based Attendance System:</strong></p><p>• Enrollment</p><p>• Image Acquisition.</p><p>• Converting the image into a grayscale image.</p><p>• Classification of Skin.</p><p>• Face Detection.</p><p>• Face Recognition.</p><p>• Attendance marking</p><p>Above are the steps which need to be followed for successful attendance marking.</p><p><strong>Enrollment:</strong> The student or person will be enrolled to the database using their general information and unique biometric features. This information will be saved in the form of templates. The enrollment includes:</p><p>• Taking image by camera</p><p>• Enhancement of that image</p><p>• Feature extraction</p><ul><li>Maintain Database</li></ul><p>The image of the person will be captured from the camera and then it will be enhanced using histogram equalization and noise filtering. Then after this process, the features are extracted from the image. The unique features will be stored in the face database and a particular id will be assigned to that person.</p><p><strong>Image Acquisition: </strong>A high-definition camera device will be installed in front of the classroom. The camera device will capture the image of the whole classroom. This captured image is given as an input to the system.</p><p>Grayscale conversion of image: The image which is captured from the camera device sometimes may have the brightness in it which needs to be removed for the appropriate result. Therefore the Captured image is converted to a grayscale image for the enhancement</p><p><strong>Skin Classification:</strong> In the skin classification technique, all the pixels are made black except the pixels which are closely related to the skin. Those pixels become white. The accuracy of the face detection algorithm is improved after skin classification.</p><p><strong>Face Detection: </strong>After the enhancement of the image, the image comes to the face detection module. This module will detect the faces of students from images. The Viola and Jones Algorithm is used for the purpose of face detection. It is also known as the Ada-Boost algorithm for face detection which is created by Viola P. and M. 1. Jones.</p><p><strong>Face Recognition:</strong> Face recognition is the next step after face detection. Face recognition can be achieved by cropping the faces from the image and comparing them with the enrolled images in the face database for face recognition, the concept of selection of a region of interest is used, and the faces are verified one by one using the EigenFace method.</p><p><strong>Attendance:</strong> After the verification of faces and successful recognition is done, the attendance will be marked on the server.</p><blockquote><strong>Database</strong></blockquote><p>This application takes attendance electronically and therefore the records of the attendance are stored in a database. Google Firebase is used for the Application Database to develop iOS, Android, and Web Apps. Firebase provides tools for tracking the analytics, reporting, and fixing app crashes.</p><p><strong>Firebase Console</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*t8eZxpcq_ojeKFSE11T1Nw.png" /><figcaption><strong>Figure: Database</strong></figcaption></figure><p>The dataset of the people is created and added to the SampleImages folder. The folder directory path is present in the code for importing the images. When doing so we need to make sure that the image name is the same as the name of the person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*giCZZnz2WYTxu1Z_qoti2Q.png" /></figure><blockquote><strong>User Interface</strong></blockquote><ol><li>Install Python and dependencies. Follow this in the <a href="http://baseapp.com/deepsight/docs/tutorials/0_prepare/">documentation</a>.</li><li>Install OpenCV along with python wrappers. Follow the guides for <a href="https://www.learnopencv.com/install-opencv3-on-windows/">Windows</a> and <a href="https://www.learnopencv.com/install-opencv3-on-ubuntu/">Linux</a>.</li><li>Install NumPy using pip install numpy</li><li>Install requests using pip install requests</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iZE0s-IrIkdxe5YITWn8SA.png" /><figcaption><strong>Figure: Image Training Code</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*2JOzQkHG1OSmRlgi3bTwCQ.png" /><figcaption><strong>Figure: USER INTERFACE</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N4hp_OU5yGPETQGT_2ZasQ.png" /><figcaption>Figure: Track with UI Code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*IWcLw4mAWj_UfBpAu1-euw.png" /><figcaption><strong>Figure: FACE DETECTED</strong></figcaption></figure><p>Once the face is compared, for visual confirmation, the name of the person is displayed. We are using a rectangular box displayed around the face with the person’s name at the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*jJgaPF77jJ4DpV1lL1pxWg.png" /><figcaption><strong>Figure: FACE RECOGNIZED</strong></figcaption></figure><p>Once the face is recognized, we need the log the data into the CSV file format. The file can also be opened in MS Excel for any further edits. In this project, we are logging the Id, Name, Date and Time of the person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oof5pl5vrJE4C8nqxb6_kQ.png" /><figcaption><strong>Figure: Attendance Recorded In ExcelSheet</strong></figcaption></figure><p><strong>You can Refer this Github Repository :</strong></p><p><a href="https://github.com/abhipatil99/AUTOMATED-STUDENTS-ATTENDANCE-SYSTEM">https://github.com/abhipatil99/AUTOMATED-STUDENTS-ATTENDANCE-SYSTEM</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4825c23bdf1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recognizing Handwritten Digits with Scikit Learn]]></title>
            <link>https://patilabhijeetges89.medium.com/recognizing-handwritten-digits-with-scikit-learn-210620ab7780?source=rss-9f6d4b4bc632------2</link>
            <guid isPermaLink="false">https://medium.com/p/210620ab7780</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Abhijeet Patil]]></dc:creator>
            <pubDate>Thu, 23 Jul 2020 16:20:57 GMT</pubDate>
            <atom:updated>2020-07-23T16:20:57.237Z</atom:updated>
            <content:encoded><![CDATA[<p>As we all know, Machine Learning and Artificial Intelligence industry is at its boom period. There is no doubt, every computer scientist is interested to explore it and dive deep into it. This is very interesting as it helps to give a machine, power to learn by itself and make decisions and predictions.</p><p><strong>What is Machine Learning?</strong></p><p>Machine Learning is a part of Artificial Intelligence that provides a system the ability to learn and make decisions by itself. It trains a machine using the existing data and values.</p><p>In this module we will be make a ML model to recognize handwritten digits using scikit-learn.</p><p><strong>Scikit-Learn</strong></p><p>It features various <a href="https://en.wikipedia.org/wiki/Statistical_classification">classification</a>, <a href="https://en.wikipedia.org/wiki/Regression_analysis">regression</a> and <a href="https://en.wikipedia.org/wiki/Cluster_analysis">clustering</a> algorithms including <a href="https://en.wikipedia.org/wiki/Support_vector_machine">support vector machines</a>.</p><p><strong>The Hypothesis to be tested: The Digits data set of scikit-learn library provides numerous datasets that are useful for testing many problems of data analysis and prediction of the results. Some Scientist claims that it predicts the digit accurately 95% of the times. Perform data Analysis to accept or reject this Hypothesis.</strong></p><p>Let’s import some of the important libraries to start with are analysis</p><pre>from sklearn import svm<br>from sklearn import datasets<br>import matplotlib.pyplot as plt<br>%matplotlib inline</pre><p>We create an estimator of SVC type and then choose an initial setting.</p><pre>svc = svm.SVC(gamma=0.001, C=100.)</pre><p>Load the digits dataset.</p><pre>digits = datasets.load_digits()</pre><p>The images of the handwritten digits are contained in a digits.images array. Each element of this array is an image that is represented by an 8x8 matrix of numerical values that correspond to a grayscale from white, with a value of 0, to black, with the value 15.</p><p>This is how we look on our training dataset.</p><pre>plt.subplot(321)<br>plt.imshow(digits.images[1701], cmap=plt.cm.gray_r, interpolation=’nearest’)<br>plt.subplot(322)<br>plt.imshow(digits.images[1702], cmap=plt.cm.gray_r, interpolation=’nearest’)<br>plt.subplot(323)<br>plt.imshow(digits.images[1703], cmap=plt.cm.gray_r, interpolation=’nearest’)<br>plt.subplot(324)<br>plt.imshow(digits.images[1704], cmap=plt.cm.gray_r, interpolation=’nearest’)<br>plt.subplot(325)<br>plt.imshow(digits.images[1705], cmap=plt.cm.gray_r, interpolation=’nearest’)<br>plt.subplot(326)<br>plt.imshow(digits.images[1706], cmap=plt.cm.gray_r, interpolation=’nearest’)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/0*U03rhVR2Kks7UHe5.png" /></figure><p><strong>We divide our dataset into two parts:</strong></p><p>1. Training set</p><p>2. Testing set</p><p>This is how we train our ML model.</p><pre>svc.fit(digits.data[1:1790], digits.target[1:1790])</pre><h3>Use this model to predict and match the results.</h3><pre>svc.predict(digits.data[1791:1797])#To check if it is true<br>print(digits.target[1791:1797])</pre><p>The hypothesis is accepted.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=210620ab7780" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[911 Calls Project]]></title>
            <link>https://patilabhijeetges89.medium.com/911-calls-project-ff9be8ba1e1?source=rss-9f6d4b4bc632------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff9be8ba1e1</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[seaborn]]></category>
            <dc:creator><![CDATA[Abhijeet Patil]]></dc:creator>
            <pubDate>Tue, 14 Jul 2020 13:12:57 GMT</pubDate>
            <atom:updated>2020-07-14T13:12:57.544Z</atom:updated>
            <content:encoded><![CDATA[<p>For this capstone project we will be analyzing some 911 call data which i have uploaded on Github. The data contains the following fields:</p><ul><li>lat : String variable, Latitude</li><li>lng: String variable, Longitude</li><li>desc: String variable, Description of the Emergency Call</li><li>zip: String variable, Zipcode</li><li>title: String variable, Title</li><li>timeStamp: String variable, YYYY-MM-DD HH:MM:SS</li><li>twp: String variable, Township</li><li>addr: String variable, Address</li><li>e: String variable, Dummy variable (always 1)</li></ul><p>Just go along with this notebook and try to complete the instructions or answer the questions in bold using your Python and Data Science skills!</p><p>=&gt; <strong>Python code and Dataset is available on my Github. </strong><a href="https://github.com/abhipatil99/911-Calls-Project">https://github.com/abhipatil99/911-Calls-Project</a></p><p>=&gt;To do Data Science with Python, I use Python with the following software libraries:</p><ul><li><strong>Numpy</strong>: it contains many functions for numerical computation (vectors, matrices, polynomials, etc.).</li><li><strong>Matplotlib</strong>: it allows to trace and visualize data in the form of graphs.</li><li><strong>Pandas</strong>: it allows to manipulate and analyze data (dataframes).</li><li><strong>Seaborn</strong>: it complements Matplotlib by providing attractive statistical graphics.</li></ul><p>Let us start by importing the required libraries and our data-set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1_PivhkUH5_-Y3fi.png" /><figcaption>Importing Libraries</figcaption></figure><p><strong>Read in the csv file as a dataframe :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZfzK8kdkjRJyhCiaR6jk7w.png" /></figure><p><strong><em>Importing our data-set:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-0L19wXt47EQzwPLHftBA.png" /></figure><ol><li>What are the top 5 zipcodes for 911 calls?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vc5Bx2E7iZE-szL_-fkmZg.png" /></figure><p>2) ** In the titles column there are &quot;Reasons/Departments&quot; specified before the title code. These are EMS, Fire, and Traffic. Use .apply() with a custom function to create a new column called &quot;Reason&quot; that contains this string value.**</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p8t_P6Z_IjzHKKbHTF8YMQ.png" /></figure><p>**For example, if the title column value is EMS: BACK PAINS/INJURY , the Reason column value would be EMS. **</p><p>3) What is the most common Reason for a 911 call based off of this new column?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DbJUBzB2ZtOs1cwuDBFrEQ.png" /></figure><p>4) Now use seaborn to create a countplot of 911 calls by Reason</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*430yI4p8-wCxpKs1CBkJcw.png" /></figure><p>5) What is the data type of the objects in the timeStamp column?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lLci1tPcUPyU1INwbmt2Ig.png" /></figure><p>6) You should have seen that these timestamps are still strings. Use pd.to_datetime to convert the column from strings to DateTime objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g4jRMGq_gyJqG--zNjVSSA.png" /></figure><p>7) ** You can now grab specific attributes from a Datetime object by calling them. For example:** <br> <br> time = df[&#39;timeStamp&#39;].iloc[0] time.hour</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uV2AeKiPVkohHVuTVs8Ltw.png" /></figure><p>**You can use Jupyter&#39;s tab method to explore the various attributes you can call. Now that the timestamp column are actually DateTime objects, use .apply() to create 3 new columns called Hour, Month, and Day of Week. You will create these columns based off of the timeStamp column.**</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08CxJouPPJwqcmiSoaukgA.png" /></figure><p>8) Notice how the Day of Week is an integer 0-6. Use the .map() with this dictionary to map the actual string names to the day of the week: <br> dmap = {0:’Mon’,1:’Tue’,2:’Wed’,3:’Thu’,4:’Fri’,5:’Sat’,6:’Sun’}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdVk1tilwe_disOd280-aQ.png" /></figure><p>9) Now use seaborn to create a countplot of the Day of Week column with the hue based off of the Reason column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ld9fZZxJrBmp4Jlcg7gM-w.png" /></figure><p>10) You should have noticed it was missing some Months, let&#39;s see if we can maybe fill in this information by plotting the information in another way, possibly a simple line plot that fills in the missing months, in order to do this, we&#39;ll need to do some work with pandas.</p><p>Now create a gropuby object called byMonth, where you group the DataFrame by the month column and use the count() method for aggregation. Use the head() method on this returned DataFrame</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZNUUeEgB77NNZHSsIZAndg.png" /></figure><p>11) Now create a simple plot off of the dataframe indicating the count of calls per month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCQks-ip0VVUWmXvFhPfDQ.png" /></figure><p>12) Now see if you can use seaborn&#39;s lmplot() to create a linear fit on the number of calls per month. Keep in mind you may need to reset the index to a column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3OyB_IDFpOH7qcS89qQpQ.png" /></figure><p>13) Create a new column called &#39;Date&#39; that contains the date from the timeStamp column. You&#39;ll need to use apply along with the .date() method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7be4Cbih3NDmIwyqReVamw.png" /></figure><p>14) Now groupby this Date column with the count() aggregate and create a plot of counts of 911 calls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKhuJJEwgNK6BZqxVxaXQA.png" /></figure><p>15) Now recreate this plot but create 3 separate plots with each plot representing a Reason for the 911 call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CwEwQtbgDAB7qCXoJwZifQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3kodRs55F7qZd7Qco3rQWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KqUh4bipfNipWB07FfZ2Fg.png" /></figure><p>16) Now let&#39;s move on to creating heatmaps with seaborn and our data. We&#39;ll first need to restructure the dataframe so that the columns become the Hours and the Index becomes the Day of the Week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AenV_ikA9PDDrZTi_8LI9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LnQCmc33p0pB5yOBOfI9rA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff9be8ba1e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Movie-Ratings Analytics]]></title>
            <link>https://patilabhijeetges89.medium.com/movie-ratings-analytics-c3d9cf5441a4?source=rss-9f6d4b4bc632------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3d9cf5441a4</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[seaborn]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Abhijeet Patil]]></dc:creator>
            <pubDate>Mon, 13 Jul 2020 17:11:13 GMT</pubDate>
            <atom:updated>2020-07-13T17:11:13.233Z</atom:updated>
            <content:encoded><![CDATA[<p>The Movie-Rating Datasets has database of world cinema. This datasets contains a large number of public data on films such as the title of the film, the year of release of the film, the genre of the film, the audience, the rating of critics, Budget and Year of Release.</p><p>=&gt; <strong>Python code and Dataset is available on my Github. </strong><a href="https://github.com/abhipatil99/Movie-Rating-Analytics">https://github.com/abhipatil99/Movie-Rating-Analytics</a></p><h3>Python and Data Science</h3><p>To do Data Science with Python, I use Python with the following software libraries:</p><ul><li><strong>Numpy</strong>: it contains many functions for numerical computation (vectors, matrices, polynomials, etc.).</li><li><strong>Matplotlib</strong>: it allows to trace and visualize data in the form of graphs.</li><li><strong>Pandas</strong>: it allows to manipulate and analyze data (dataframes).</li><li><strong>Seaborn</strong>: it complements Matplotlib by providing attractive statistical graphics.</li></ul><p>There is also the Python Scikit-learn library that allows machine learning.</p><p>The first task of the Data Analytics is to prepare the data in a CSV file which i have provided above with Github link.Then, after the dataset is ready, you must explore the data and analyze it. Once this step is done, he must model the data, adapt and validate it. Once the data modeling is complete, the last step is to visualize the results and interpret them.</p><p>Let us start by importing the required libraries and our data-set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t0Jyg6WwiBnjdThJqXqC7g.png" /><figcaption>Importing Libraries</figcaption></figure><p><strong><em>To Read the Dataset :</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p89WLDUmhqJa1L4KwmZzYA.png" /></figure><p><strong><em>Importing our data-set</em></strong></p><h4>Data analysis</h4><p>I thus recovered the dataset with the Python script. With the Pandas library, it is possible to have an overview of the dataset and by applying functions like info(), describe() and head(), I could check the contents of my dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YkDLze34sNcbiOQzsbQpCw.png" /><figcaption>Data-set</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ywh6X67EmbkQnEyyvaNxJw.png" /></figure><p><strong>Q1) list of top 10 movie(descending order) in terms of budget</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3l09CcH7VdbddkgLwugTGg.png" /></figure><p><strong>Q2) list of top 10 movie (ascending order) in terms of budget</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9LwsHxrHxbQs1Gm78LAGXg.png" /></figure><p><strong>Q3) Which genre is the best in terms of price budget</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dMm9fDYC7dns-1lTDS3tmg.png" /></figure><p><strong>Q4) Distribution(graph) of audience rating</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZNfrpLFkKhuEnTPFGLTJQ.png" /></figure><p><strong>Q5) Distribution(graph) of critics rating (rotten tomato)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBTAW7F8S4gtMZ7Z9-Tc3Q.png" /></figure><p><strong>Q6) Distribution of budget</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RAitcOXFfFGAYEyFtiuJ2w.png" /></figure><p><strong>Q7) Distribution of critics rating</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xh8wJ9S4FW6B074_Aq-yjA.png" /></figure><p><strong>Q8) Distribution of audience rating</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ZCF1eQcj8IZ251s9O6crQ.png" /></figure><p><strong>Q9) Histogram of critics rating</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SMX8j59HQtj9wd0_V3zHRg.png" /></figure><p><strong>Q10) histogram of audience rating</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tiL5YZiOZxl6OOW9QWMVWA.png" /></figure><p><strong>Q11) Show the total count of all the different genre present in the dataset</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJUBg03a4969_5rIkU0DDw.png" /></figure><p><strong>Q12) Show the graph of rating based on genre</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QyRvA4bOMgMR4PA_krbB-A.png" /></figure><p><strong>Q13) Scatter plot of critics rating vs audience rating</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*la0nkh30R7kYnfC6uUkEzQ.png" /></figure><p><strong>Q14) Box plot based on genre and critics rating</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENWAqoZcoOxSGRqkid-4VA.png" /></figure><p><strong>Q15) Bx plot based on genre and audience rating</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9XNQ7-NQ_hHEkLcZk0Q48A.png" /></figure><p><strong>Q16) Pairplot of the whole data set</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6RMR4hpnRrfaeE1b81UlXg.png" /></figure><p><strong>Q 17) Histogram of top 10 movie(descending order) in terms of budget</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31JuS08gvWAzhyKphikHVA.png" /></figure><p><strong>Q18) Histogram of top 10 movie(ascending order) in terms of budget</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c2Qh_Qy4fVL5WpDOY5R7LQ.png" /></figure><p><strong>Q19) Joint Plot of critics rating and audience rating (with type as hexagonal)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mi60gCZ2dzFf8OQb30h9Ug.png" /></figure><p><strong>Q20) Joint plot of budget vs genre (type as scatter)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0eQnSj7U3IqG8E7fJx6N5A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3d9cf5441a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sentiment Analysis on Movie Reviews with NLP]]></title>
            <link>https://patilabhijeetges89.medium.com/sentiment-analysis-on-movie-reviews-with-nlp-6b1d0fd249b2?source=rss-9f6d4b4bc632------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b1d0fd249b2</guid>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[naive-bayes-classifier]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Abhijeet Patil]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 13:59:08 GMT</pubDate>
            <atom:updated>2020-07-05T13:59:08.050Z</atom:updated>
            <content:encoded><![CDATA[<h3>Machine Learning vs. Deep Learning</h3><p>Why am I not using deep learning for these tasks? If I had to use Tensorflow, I would use an Embedding neural network. Unfortunately, this dataset only contains 2000 reviews. Compared with the standard movie reviews in Keras, which contains 50,000 reviews, there might not be enough data for the neural net to perform at its top. Deep Learning only outperforms machine learning when there is a sufficient volume of data.</p><h3>nltk module</h3><p>I will be using a machine learning library specialized for NLP, called nltk. I prefer using scikit-learn for creating machine learning models, but it is a library specialized for tabular data, rather than natural language processing.</p><h3>Steps</h3><p>In this article, I will follow the following steps. Compared with the Twitter Sentiment analysis in the previous article, the preprocessing of data will be much more troubling.</p><ol><li>Importing Modules</li><li>Looking at the data</li><li>Creating Features and Labels (encoding)</li><li>Creating train and test (splitting)</li><li>Using the model: Naive Bayes Classifier</li><li>Performance Evaluation</li></ol><p>I will be using a particular kind of encoding: instead of converting words to numbers, I will store them into a dictionary. I will then feed this dictionary to the model.</p><h3>1. Importing Modules</h3><pre>!pip install nltk<br>import nltk<br>#per risolvere un bug, altrimenti da errore<br>nltk.download(&#39;punkt&#39;)</pre><p>In addition to the main module I will be using (not only for machine learning but also to set up the tokenizer), I will also have to create my tool for tokenization. This function will break every sentence of the reviews in individual strings and will put every word into a python dictionary.</p><pre>#tokenizer<br>def format_sentence(sent):<br>  return({word: True for word in nltk.word_tokenize(sent)})#example<br>format_sentence(&#39;how are you&#39;)<br>{&#39;are&#39;: True, &#39;how&#39;: True, &#39;you&#39;: True}</pre><h3>2. Looking at the data</h3><pre>import pandas as pd<br>total = pd.read_csv(&#39;/content/drive/My Drive/Colab Notebooks/Projects/20200602_Twitter_Sentiment_Analysis/movie_review.csv&#39;)<br>total</pre><p>As we can immediately see after having imported our dataset, we have a big problem. The reviews have been stored by sentence, and many chunks of the same review are hosted in more than one row. I will need to group the reviews from the chunks of text, and then label them as positive or negative.</p><p>***This may not make much of a difference using Machine Learning tools, but if we ever decide to use Deep Learning, we might want to have all the reviews bundled together. In both ways, it is an instructive problem to solve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/0*0gfM_ItbNvYMaCJj.png" /></figure><p>I will be using the pandas’ function groupby to aggregate the rows by html_id and then convert them into a list.</p><pre>#group by html_id<br>total = total.groupby(&#39;html_id&#39;).agg(lambda x: x.tolist())<br>total = total.reset_index()<br>total</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SDV761B_nD2uglb9.png" /></figure><p>All the reviews have been merged under the column text. I am now going to drop the extra columns.</p><pre>#drop other columns: only conserve text<br>total.columns<br>total = total.drop([&#39;html_id&#39;, &#39;fold_id&#39;, &#39;cv_tag&#39;, &#39;sent_id&#39;], axis=1)<br>total</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*VGQqX4-7-d397pBw.png" /></figure><pre>#the result is a separated chunks for every reviews: <br>#chunk1, chunk2, ..., sentiment<br>total.values</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qIonF4Sxhhw5nSVg.png" /></figure><p>I will now recreate a dataset with complete reviews in one column, and ONE sentiment in another column, rather than a list of sentiments per row.</p><pre>#we merge the chunks together and we obtain: <br>#review, sentiment<br>total_text = list()<br>for lists in total.values:<br>  combines_text = &#39;&#39;<br>  for _ in lists[0]:<br>    combines_text = combines_text + _<br>  total_text.append([combines_text, lists[1][0]])#total_text<br>total_text = pd.DataFrame(total_text)<br>total_text</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/0*awc-LbdVe3rKan16.png" /></figure><p>Here is the final list: a combination of all positive and negative reviews in a single dataset.</p><h3>Isolating the positive reviews</h3><pre>total_positive = total_text.copy()<br>total_positive.columns<br>total_positive = total_positive.loc[total_positive[1] == &#39;pos&#39;]<br>#total_positive = total_positive.pop(&#39;text&#39;)<br>#total_positive = total_positive.drop([&#39;fold_id&#39;, &#39;cv_tag&#39;, &#39;html_id&#39;, &#39;sent_id&#39;], axis=1)<br>total_positive</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*_s1YzFdcr26O8MCd.png" /></figure><h3>Isolating the negative reviews</h3><pre>total_negative = total_text.copy()<br>total_negative.columns<br>total_negative = total_negative.loc[total_negative[1] == &#39;neg&#39;]<br>#total_negative = total_negative.pop(&#39;text&#39;)<br>#total_negative = total_negative.drop([&#39;fold_id&#39;, &#39;cv_tag&#39;, &#39;html_id&#39;, &#39;sent_id&#39;], axis=1)<br>total_negative</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/0*g551bIKPFf-1d4UU.png" /></figure><h3>3. Creating Features and Labels (encoding)</h3><p>To train a supervised learning AI, I will need to get my data ready for the Naive Bayes Classifier model.</p><pre>#   tokenizer<br>def create_dict(total_positive, total_negative):<br>  <br>  positive_reviews = list()<br>  #word tokenization<br>  for sentence in list(total_positive.values):<br>    positive_reviews.append([format_sentence(sentence[0]), &#39;pos&#39;])<br>    #saves the sentence in format: [{tokenized sentence}, &#39;pos]<br>  <br>  negative_reviews = list()<br>  #word tokenization<br>  for sentence in list(total_negative.values):<br>    #print(sentence)<br>    negative_reviews.append([format_sentence(sentence[0]), &#39;neg&#39;])<br>    #saves the sentence in format: [{tokenized sentence}, &#39;pos]<br>  <br>  return positive_reviews, negative_reviewsXy_pos, Xy_neg = create_dict(total_positive, total_negative)</pre><p>Let me have a look at the structure of the data. This is the first dictionary stored in the list of positive reviews.</p><pre>Xy_pos[0]<br>[{&#39;!&#39;: True,<br>  &#39;&amp;&#39;: True,<br>  &quot;&#39;d&quot;: True,<br>  &quot;&#39;s&quot;: True,<br>  &quot;&#39;ve&quot;: True,<br>  ...<br>  &#39;.women&#39;: True,<br>  &#39;with&#39;: True,<br>  &#39;without&#39;: True,<br>  &#39;women&#39;: True,<br>  &#39;words&#39;: True,<br>  &#39;would&#39;: True,<br>  &#39;you&#39;: True,<br>  &#39;yourself&#39;: True},<br> &#39;pos&#39;]</pre><p>I want to see the graph of the dataset to see the proportion of positive and negative reviews.</p><pre>X = pd.concat([total_positive, total_negative], axis=0)<br>X.columns = [&#39;text&#39;, &#39;sentiment&#39;]import seaborn as sns<br>sns.countplot(x=&#39;sentiment&#39;, data=X)y = pd.DataFrame(X.pop(&#39;sentiment&#39;))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/0*f8XQQm5a0JJZ20ep.png" /></figure><p>1000 positive reviews, 1000 negative reviews</p><h3>4. Creating train and test (splitting)</h3><pre>def split(pos, neg, ratio):<br>  train = pos[:int((1-ratio)*len(pos))] + neg[:int((1-ratio)*len(neg))]<br>  test = pos[int((ratio)*len(pos)):] + neg[int((ratio)*len(neg)):]<br>  return train, testXy_train, Xy_test = split(Xy_pos, Xy_neg, 0.1)</pre><p>I can now prepare the train and the test proportion of the dataset to train the NLP model.</p><h3>5. Using the model: Naive Bayes Classifier</h3><p>Finally, I can create the Naive Bayes Classifier model. I will be using the Xy_train proportion of the dataset to feed the model.</p><pre>from nltk.classify import NaiveBayesClassifier#training the model<br>classifier = NaiveBayesClassifier.train(Xy_train)<br>classifier.show_most_informative_features()<br>ost Informative Features                insulting = True              neg : pos    =     17.7 : 1.0                ludicrous = True              neg : pos    =     13.4 : 1.0                   avoids = True              pos : neg    =     12.3 : 1.0              outstanding = True              pos : neg    =     12.3 : 1.0                   regard = True              pos : neg    =     11.7 : 1.0                animators = True              pos : neg    =     10.3 : 1.0              fascination = True              pos : neg    =     10.3 : 1.0                    .yeah = True              neg : pos    =     10.3 : 1.0                     3000 = True              neg : pos    =     10.3 : 1.0                    sucks = True              neg : pos    =      9.8 : 1.0</pre><p>The model has associated one value to each word in the dataset. It will perform a calculation on all the words contained in every review it has to analyze, and then make an estimation: positive or negative.</p><h3>6. Performance Evaluation</h3><pre>from nltk.classify.util import accuracy<br>print(accuracy(classifier, Xy_test))<br>0.9477777777777778</pre><p>Our accuracy is 94.7%, we can approximate by excess to 95%. Astonishing result!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b1d0fd249b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Performing Analysis of Meteorological Data]]></title>
            <link>https://patilabhijeetges89.medium.com/performing-analysis-of-meteorological-data-9cf9ebc8182?source=rss-9f6d4b4bc632------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cf9ebc8182</guid>
            <dc:creator><![CDATA[Abhijeet Patil]]></dc:creator>
            <pubDate>Tue, 30 Jun 2020 10:37:52 GMT</pubDate>
            <atom:updated>2020-06-30T10:37:52.135Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog we are going to analyse the data from the Weather data-set of Finland, a country in the Northern Europe. You can find the data-set on Kaggle (<a href="https://www.kaggle.com/muthuj7/weather-dataset">https://www.kaggle.com/muthuj7/weather-dataset</a>).We are going to use the numpy, pandas and the matplotlib libraries of Python.</p><p>Following is the Hypothesis of the Analysis : <strong><em>“Has the Apparent temperature and humidity compared monthly across 10 years of the data indicate an increase due to Global warming.”</em></strong></p><p>Let us start by importing the required libraries and our data-set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/0*heG58ElfvRQS5gIx.png" /></figure><p><strong><em>Libraries required for analysis</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/0*rJCL7X35xfJ0yRHc.png" /></figure><p><strong><em>Importing our data-set</em></strong></p><p>Here is a small preview of how our data-set looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ob9ejQ0JSYJ0v0yZ.png" /></figure><p>First 5 entries of our data-set</p><p>Now we need to drop the unwanted data, convert the data in to our need and resample our data :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*kDeo-OIaVFXOMx-_.png" /></figure><p>Here is how the data looks after resampling:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/0*AxsHAAlVcVi3MNnS.png" /><figcaption>First 5 entries of resampled data-set</figcaption></figure><p>Now let us plot our data in a line graph</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ttW7nGnSylj5sMY9.png" /></figure><p>As we can see, both the peaks and the troughs are almost same throughout the period of 10 years. Here is a plot of the average temperature and humidity of the month of April over 10 years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SrEqlIk2ifbIw6Zw.png" /></figure><p>We can clearly see that there is a sharp rise in temperature in the year of 2009 whereas there is a fall in temperature in the year of 2015. Hence we can conclude that global warming has caused an uncertainty in temperature over the past 10 years while the average humidity as remained constant throughout the 10 years.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cf9ebc8182" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>