<?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 Imaad Mohamed Khan on Medium]]></title>
        <description><![CDATA[Stories by Imaad Mohamed Khan on Medium]]></description>
        <link>https://medium.com/@imaad_53202?source=rss-c61c3c1fd214------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*15zBqLRQrdNJU6yH</url>
            <title>Stories by Imaad Mohamed Khan on Medium</title>
            <link>https://medium.com/@imaad_53202?source=rss-c61c3c1fd214------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:45:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@imaad_53202/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[Geospatial Data Analysis using Python libraries]]></title>
            <link>https://medium.com/vahaninc/geospatial-data-analysis-using-python-libraries-4c0367e1e824?source=rss-c61c3c1fd214------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c0367e1e824</guid>
            <category><![CDATA[folium]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[geospatial]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Imaad Mohamed Khan]]></dc:creator>
            <pubDate>Fri, 07 Aug 2020 06:17:39 GMT</pubDate>
            <atom:updated>2020-08-07T06:28:55.946Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/u/f77f53c00971?source=post_page-----364c7520bd01----------------------">Ankit Kumar</a>, NLP Researcher at Vahan is a co-author.</p><h3><strong>Introduction to Geospatial data</strong></h3><p>The study of places on different parts of the earth has been fascinating to humans since time immemorial. One of the first tools that was created was a map. It allowed us to represent places and the world around us in a succinct way. With advances in technology, we now have so many different sources that generate geographic data. Satellites have become one of the key sources to study earth from a different perspective and this has led to a new kind of data known as geospatial data. Geospatial data is a kind of data that identifies geographic features, locations and boundaries on earth.</p><h3><strong>Types of Geospatial Data</strong></h3><p>Depending on the way geospatial data is classified, there can be two different types of geospatial data:</p><p><strong>Based on Type of Data</strong></p><ol><li><em>Vector Data</em><strong> </strong>— Data representing a location through geometric shapes like points, lines and polygons.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*OO5XFilZv6Gg03EsCsM0JA.png" /><figcaption>Figure 1: Vector Data — Points, Lines and Polygons</figcaption></figure><p>2. <em>Raster Data</em> — Data stored in the form of pixels. Examples: Scanned Map, Photograph, Satellite Imagery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*DiPxdmj6Zl9Putu506SZng.png" /><figcaption>Figure 2: Raster Data — Satellite Image</figcaption></figure><p><em>3. Tabular Data </em>— Descriptive data that can be combined with other types of data for analysis.<br>Examples: Census data, Agriculture data, Economic data</p><p><strong>Based on Functionality</strong></p><p>This classification is based on the representation of geospatial data to showcase a particular functional area of importance. These areas could be any of the following:<br>Administrative, Socioeconomic, Transportation, Environmental and Hydrography</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*1B8Trh6_0Ji9IZkX" /><figcaption>Figure 3: Data layers based on functionality</figcaption></figure><h3><strong>Geospatial Data Analysis in Python</strong></h3><p>In the last few years, Python has emerged as one of the most important languages in the space of Data Science and Analysis. We will now take a look at the libraries in Python that have been built to work with geospatial data. Some of the most popular libraries include:</p><ol><li><strong>Folium </strong>— Folium is a visualization library that builds on the ease of data wrangling in Python and the mapping strength of leaflet.js. Leaflet has been designed with simplicity, performance and usability in mind. It works efficiently across all major desktop and mobile platforms.</li><li><strong>GeoPandas </strong>— Geopandas is another library that makes working on geospatial data in Python easier. It uses the same data types as that of Pandas (popular data wrangling library in Python). It combines the capabilities of pandas and shapely, providing geospatial operations in pandas and a high-level interface to multiple geometries to shapely.</li><li><strong>GeoPlotlib </strong>— Geoplotlib is an open source library that allows one to create maps and visualize geographical data. It can be used to create a variety of map types, like choropleths, heatmaps, and dot density maps. However, it has not been actively maintained of late.</li></ol><p>In this blog post, we will use Folium and Geopandas to analyse a particular dataset and explore it’s various functionalities.</p><h3>Geospatial Data Analysis using Folium</h3><p>To explore Folium and Geopandas, we use the data provided by <a href="https://api.covid19india.org/"><strong>covid19india</strong></a>. Covid19-India is a volunteer group tracking the spread of COVID in India right from the initial days. They provide an easy to use API to access the data they have collected. We have divided our analysis into the following major sections:</p><ol><li>Extract and prepare data with Pandas and Geopandas libraries.</li><li>Plot a basic map and GeoJSON data using Folium.</li><li>Plot a choropleth map and add markers.</li><li>Create a time slider map.</li></ol><p><strong>Extract and prepare data <br></strong>The first step in the analysis is to get the data needed for the analysis. As mentioned earlier, we use the API provided by covid19india. We read the data into a pandas dataframe for easy manipulation and visualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*VdD0QphkUXSJ6rUkFhd8ZA.png" /><figcaption>Figure 4: Fetching data from the API</figcaption></figure><p>We then convert geoJSON data into a dataframe with a column for the different states in India and a column for the different geoJSON data types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*betK8YsZBpcaPJhSJdtutw.png" /><figcaption>Figure 5: Convert geoJSON data into a dataframe</figcaption></figure><p><strong>Plot a base map and GeoJSON data using Folium<br></strong>Plotting of Indian states on a map using Folium can be done in two steps. First, we create a base map with a latitude and longitude that display the entire landmass of India. We then use the dataframe with the geoJSON values for each state to add the layers of Indian states on top of the base map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*w5nYbG477pQ0RlrPiMPPNg.png" /><figcaption>Figure 6: Plotting States of India on base map</figcaption></figure><p>We use the GeoJSON values provided by <a href="https://github.com/geohacker/india">this</a> repository on Github. The plotted map looks as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4isP8hlSfJEfUMUg" /><figcaption>Figure 7: Map of the states of India</figcaption></figure><p><strong>Plot choropleth map and add markers<br></strong>We now plot a choropleth map. A choropleth map uses different shades and colors to represent the distribution of a quantitative value. In our case, the quantitative value is the number of COVID-19 cases reported in a day.<br>Below is the code for plotting a choropleth map for the number of cases spread across India on the 30th of July 2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*9WVnCjZPJhP3bGDyYpMqgg.png" /><figcaption>Figure 8: Plotting distribution of COVID-19 cases on 30th July 2020</figcaption></figure><p>The choropleth map is as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TmkG0awE06lLlIH9" /><figcaption>Figure 9: Distribution of COVID-19 cases on 30th July 2020</figcaption></figure><p>The above map can be made more useful by adding markers to indicate the name of the state and the count of the number of cases. Below is the code to add markers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*zkyOAuPFMwnD81st-mQ21w.png" /><figcaption>Figure 10: Adding markers to the map</figcaption></figure><p>The map below has the markers added on different states. On hover, it displays the name of the state and the number of cases in each state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uzjttNXG-iepK2QU" /><figcaption>Figure 11: Distribution of COVID-19 cases with state name</figcaption></figure><p><strong>Create a time slider map <br></strong>In order to visualize the change in cases over a period of time, we can create a time slider map. To create a time slider map in Folium, we first convert our data into the required data format and then with the help of a plugin called TimeSliderChoropleth, we plot the graph. Below is the code to create a TimeSliderChoropleth map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*6PKwL7R7L7pZAt2yclbcLQ.png" /><figcaption>Figure 12: Plotting Time Slider Map</figcaption></figure><p>Here is a screenshot of the Time Slider map on a particular day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C4tRedBirZwQyMC2" /><figcaption>Figure 13: Plotting Time Slider Map</figcaption></figure><p><strong>Conclusion</strong><br>Folium makes it very simple to get started with plotting geographical data using Python. Feel free to play around with our code and let us know what you’ve created using it. You can find the complete source code as a Jupyter Notebook and the interactive HTML maps in the github repository here:<br><a href="https://github.com/ahlawatankit/Geographical-Data-Plotting">https://github.com/ahlawatankit/Geographical-Data-Plotting</a></p><p><strong>References<br></strong>1. <a href="https://campusguides.lib.utah.edu/c.php?g=160707&amp;p=1051981">https://campusguides.lib.utah.edu/c.php?g=160707&amp;p=1051981</a><br>2. Satellite Image Source: <a href="https://www.thenewsminute.com/sites/default/files/styles/news_detail/public/google%20maps%20earth%20geospatial%20bill.jpg?itok=tKFCnDnq">https://www.thenewsminute.com/sites/default/files/styles/news_detail/public/google%20maps%20earth%20geospatial%20bill.jpg?itok=tKFCnDnq</a><br>3. <a href="https://github.com/geohacker/india">https://github.com/geohacker/india</a><br>4. <a href="https://gadm.org/maps/IND.html">https://gadm.org/maps/IND.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c0367e1e824" width="1" height="1" alt=""><hr><p><a href="https://medium.com/vahaninc/geospatial-data-analysis-using-python-libraries-4c0367e1e824">Geospatial Data Analysis using Python libraries</a> was originally published in <a href="https://medium.com/vahaninc">VahanInc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Delivery Partners in India]]></title>
            <link>https://medium.com/vahaninc/delivery-partners-in-india-364c7520bd01?source=rss-c61c3c1fd214------2</link>
            <guid isPermaLink="false">https://medium.com/p/364c7520bd01</guid>
            <category><![CDATA[delivery-partners]]></category>
            <category><![CDATA[bangalore]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[delhi]]></category>
            <dc:creator><![CDATA[Imaad Mohamed Khan]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 12:22:23 GMT</pubDate>
            <atom:updated>2020-06-29T12:36:57.371Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/u/f77f53c00971">Ankit Kumar</a>, NLP Researcher at Vahan Inc is a co-author.</p><p>In the last decade, e-commerce has made a tectonic shift in the way many Indians shop. As e-commerce has become more pervasive, home deliveries have become an important spoke of the economic wheel. Most commodities are now available at the click of a button. While e-commerce companies specialize in goods that have a longer shelf life (like electronics, clothes etc), there are hyper-local companies that deliver essentials like food and groceries. This has given rise to a new category of workers — Delivery Partners — who work day in and out everyday, to ensure customers receive everything on time.</p><p>In this article, we take the data route to try to understand delivery partners better. Specifically, we will look closely at which regions they come from and dive deeper into understanding people coming from Bangalore and Delhi. The objective is to bring out some key insights and emerging trends as the role of a delivery person becomes more ubiquitous.</p><p><strong><em>Basic Statistics</em></strong></p><p>We analyzed about 1M data points on delivery persons. Each data point had five different attributes. This includes the last date on which delivery person’s status was updated, their current status in their organization, pin code of the location of work, pin code of the place where the delivery person originally belongs to and the city of their work. The data spans across 600 cities.</p><p><strong><em>City level Analysis</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/0*n26yM47GOxl2Fpsh" /><figcaption>Figure 1: Distribution of Users by major Cities in India</figcaption></figure><p>Figure 1 shows the distribution of the users based on the city of work. Let’s specifically look into the users in Delhi NCR and Bangalore.</p><p><strong><em>Delhi NCR</em></strong></p><p>Delhi NCR is the largest region with about 14.4% of users. Figure 2 shows percentage-wise split of workers in Delhi and nearby cities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HSJpBPNEl4z4PMVr" /><figcaption>Figure 2: Distribution of Users by Delhi and nearby areas</figcaption></figure><p>Close to 55% of users work in Delhi, followed by 14% of users in Gurgaon, 7.4% users in Noida (or Greater Noida), 6.6% of users in Faridabad and 6.4% in Ghaziabad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0p1aXG4d2CdSLGqn" /><figcaption>Figure 3: Distribution of Users by Delhi and Other States</figcaption></figure><p>We take a look at where the users working in this region come from.</p><p>About 84% of users come from the Delhi (including NCR) region and about 16% of users from other states. Uttar Pradesh is the next major state, followed by Bihar and Haryana.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AQgQi5quuT1c7vSq" /><figcaption>Figure 4: Distribution of Users by areas inside Delhi</figcaption></figure><p>Let’s zoom in further to see which part of Delhi do users come from. Figure 4 shows that South Delhi and North West Delhi had the highest number of users. North East Delhi had the least number of users (2% users).</p><p><strong><em>Bangalore</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ITHjrURt-90GaaXe" /><figcaption>Figure 5: Distribution of users by place of origin (across India)</figcaption></figure><p>Bangalore is the second largest region with 10% users across the country. About 60% of users are locals from Bangalore. About 28% of users coming from outside Bangalore belong to other regions in Karnataka and about 13% of users come from other states. Andhra Pradesh is the second largest state after Karnataka with 7% users, followed by Tamil Nadu and Kerala. Most of the users coming from other states are from states that have a boundary with Karnataka.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*803sijIeEtX3vPbL" /><figcaption>Figure 6: Distribution of users by place of origin (Karnataka)</figcaption></figure><p>We see that 87% of users actually belong to Karnataka (Bangalore included).Figure 6 shows that Mandya and Bangalore Rural have about 4% of users. These are followed by Kolar, Anantapur and Tumkur. Though Tumkur is comparatively closer to Bangalore, there are more users coming from Mandya.</p><p><strong><em>Conclusion</em></strong></p><p>With the spread of COVID-19 and the need to stay indoors as much as possible, it has become increasingly clear on the importance of delivery partners in our daily lives. Governments across the world have realised their importance in these times and have allowed them to operate as essential workers. We believe in times to come both demand and supply in this space will go up. With Amazon entering the food and alcohol delivery space, BigBasket doing 3,50,00 orders daily and Reliance entering the fray, the demand is ramping up. There is tremendous supply available today as well. Lot of people have lost jobs due to the pandemic and delivery as a job has a lower barrier to entry which pays fairly well and allows people to set their own work timings.The delivery space will surely see a lot of activity in the coming times!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=364c7520bd01" width="1" height="1" alt=""><hr><p><a href="https://medium.com/vahaninc/delivery-partners-in-india-364c7520bd01">Delivery Partners in India</a> was originally published in <a href="https://medium.com/vahaninc">VahanInc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>