<?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 Rashid Mukaila on Medium]]></title>
        <description><![CDATA[Stories by Rashid Mukaila on Medium]]></description>
        <link>https://medium.com/@rmukaila?source=rss-ec848f9f30de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FvUYpODapyyKlsJzr_tbNw.jpeg</url>
            <title>Stories by Rashid Mukaila on Medium</title>
            <link>https://medium.com/@rmukaila?source=rss-ec848f9f30de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:36:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rmukaila/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[Crunching the Numbers: A Comprehensive Data Analysis of the Indian Startup Ecosystem from 2018–2021.]]></title>
            <link>https://medium.com/@rmukaila/crunching-the-numbers-a-comprehensive-data-analysis-of-the-indian-startup-ecosystem-from-2018-2021-f5a276d6b95d?source=rss-ec848f9f30de------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5a276d6b95d</guid>
            <dc:creator><![CDATA[Rashid Mukaila]]></dc:creator>
            <pubDate>Wed, 05 Apr 2023 10:23:42 GMT</pubDate>
            <atom:updated>2023-04-06T08:59:40.353Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NgGtGJ7IpJN65cBK" /><figcaption>Photo by <a href="https://unsplash.com/@domenicoloia?utm_source=medium&amp;utm_medium=referral">Domenico Loia</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Introduction and Background</strong></p><p>With the continuously increasing number of startups in India, data on these startups has also increased in like manner and there hasn’t been a good time for analysts to take advantage of the data than now.</p><p>But data generation on itself is obviously not the major implication of increasing number of startups in India or any country. The economic impact of these startup activities is arguably the major implication that almost everyone would be interested in.</p><p>This project attempts to derive valuable insights from data on Indian startup fundings from the year 2018 to 2021. These insights is aimed to help all stakeholders of the Indian startup ecosystem such as Investors, policy makers, potential startup owners, etc,. to make the right decisions.</p><p>I have made efforts to follow the The <strong>CR</strong>oss <strong>I</strong>ndustry <strong>S</strong>tandard <strong>P</strong>rocess for <strong>D</strong>ata <strong>M</strong>ining (<em>CRISP-DM</em>) and to give myself some sense of direction, I came up with a testable <strong>hypothesis </strong>and a few analytical <strong>questions </strong>that I will be answering as the project unfolds.</p><p><strong>Hypothesis</strong></p><p><em>Null Hypothesis</em><br>Companies whose headquaters are located in the Indian capital city (New delhi), are more likely to receive high funding than that of those located other cities</p><p><em>Alternate Hypothesis</em><br> Companies whose headquaters are located in the Indian capital city, (New delhi) does not necessarilly receive more funding than that of those located in other cities</p><p><strong>Questions</strong></p><p>1- Are start-ups located in specific areas more likely to succeed or to receive more financing than those located other areas?</p><p>2- Has the amount of investments in the ecosystem increased over the 4 year span (the datasets we are looking at), or has it decreased?</p><p>3- What is the median investment amount received by Indian startups at different stages of their growth?</p><p>4- Does the nature of industry have any impact on the funding received?</p><p>5- Which startup had the highest rate/count of funding (this counts the startup that occured most but not with duplicate funding)?</p><p><strong>Exploratory data analysis</strong></p><p><em>Extra Installations aside anaconda</em></p><pre>pip install geocoder==1.0.6<br><br>pip install geopy </pre><p><em>Importing libraries</em></p><pre>##data handling<br><br>import pandas as pd <br><br>import numpy as np<br><br>pd.set_option(&#39;display.max_rows&#39;, None)<br>pd.set_option(&#39;display.max_columns&#39;, None)<br><br>##data visualization<br><br>import seaborn as sns<br><br>import matplotlib.pyplot as plt<br><br>##Others<br><br>import warnings<br>warnings.filterwarnings(&#39;ignore&#39;) ##to handle warnings<br><br>##for geolocation<br><br>from geopy.geocoders import Nominatim<br><br>geolocator = Nominatim(user_agent=&quot;my-custom-agent&quot;, timeout=20)</pre><p><em>Loading the 2018–2021 data from csv</em></p><pre>#Data paths<br>path_2018 =  &#39;startup_funding2018.csv&#39; <br>path_2019 =  &#39;startup_funding2019.csv&#39;<br>path_2020 =  &#39;startup_funding2020.csv&#39;<br>path_2021 =  &#39;startup_funding2021.csv&#39;<br><br><br>startup_2018= pd.read_csv(path_2018)<br><br>startup_2019= pd.read_csv(path_2019)<br><br>startup_2020= pd.read_csv(path_2020)<br><br>startup_2021= pd.read_csv(path_2021)</pre><p>Since we will eventually concatenate them together, we will like to add a new column with the year of each dataset to help us differentiate the year of each row of data.</p><pre>#Adding the year column<br><br>startup_2018[&quot;Year&quot;]= &quot;2018&quot;<br>startup_2019[&quot;Year&quot;]= &quot;2019&quot;<br>startup_2020[&quot;Year&quot;]= &quot;2020&quot;<br>startup_2021[&quot;Year&quot;]= &quot;2021&quot;</pre><pre>startup_2018.info()</pre><pre>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>RangeIndex: 526 entries, 0 to 525<br>Data columns (total 7 columns):<br> #   Column         Non-Null Count  Dtype <br>---  ------         --------------  ----- <br> 0   Company Name   526 non-null    object<br> 1   Industry       526 non-null    object<br> 2   Round/Series   526 non-null    object<br> 3   Amount         526 non-null    object<br> 4   Location       526 non-null    object<br> 5   About Company  526 non-null    object<br> 6   Year           526 non-null    object<br>dtypes: object(7)<br>memory usage: 28.9+ KB</pre><pre>startup_2019.info()</pre><pre>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>RangeIndex: 89 entries, 0 to 88<br>Data columns (total 10 columns):<br> #   Column         Non-Null Count  Dtype  <br>---  ------         --------------  -----  <br> 0   Company/Brand  89 non-null     object <br> 1   Founded        60 non-null     float64<br> 2   HeadQuarter    70 non-null     object <br> 3   Sector         84 non-null     object <br> 4   What it does   89 non-null     object <br> 5   Founders       86 non-null     object <br> 6   Investor       89 non-null     object <br> 7   Amount($)      89 non-null     object <br> 8   Stage          43 non-null     object <br> 9   Year           89 non-null     object <br>dtypes: float64(1), object(9)<br>memory usage: 7.1+ KB<br><br><br></pre><pre>startup_2020.info()</pre><pre>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>RangeIndex: 1055 entries, 0 to 1054<br>Data columns (total 11 columns):<br> #   Column         Non-Null Count  Dtype <br>---  ------         --------------  ----- <br> 0   Company/Brand  1055 non-null   object<br> 1   Founded        843 non-null    object<br> 2   HeadQuarter    961 non-null    object<br> 3   Sector         1042 non-null   object<br> 4   What it does   1055 non-null   object<br> 5   Founders       1043 non-null   object<br> 6   Investor       1017 non-null   object<br> 7   Amount($)      1052 non-null   object<br> 8   Stage          591 non-null    object<br> 9   Unnamed: 9     2 non-null      object<br> 10  Year           1055 non-null   object<br>dtypes: object(11)<br>memory usage: 90.8+ KB</pre><pre>startup_2021.info()</pre><pre>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>RangeIndex: 1209 entries, 0 to 1208<br>Data columns (total 10 columns):<br> #   Column         Non-Null Count  Dtype  <br>---  ------         --------------  -----  <br> 0   Company/Brand  1209 non-null   object <br> 1   Founded        1208 non-null   float64<br> 2   HeadQuarter    1208 non-null   object <br> 3   Sector         1209 non-null   object <br> 4   What it does   1209 non-null   object <br> 5   Founders       1205 non-null   object <br> 6   Investor       1147 non-null   object <br> 7   Amount($)      1206 non-null   object <br> 8   Stage          781 non-null    object <br> 9   Year           1209 non-null   object <br>dtypes: float64(1), object(9)<br>memory usage: 94.6+ KB</pre><pre>#Check how all the column names look like<br>print(&#39;2018 columns \n&#39;,startup_2018.columns,&#39;\n&#39;)<br>print(&#39;2019 columns \n&#39;,startup_2019.columns,&#39;\n&#39;)<br>print(&#39;2020 columns \n&#39;,startup_2020.columns,&#39;\n&#39;)<br>print(&#39;2021 columns \n&#39;,startup_2021.columns,&#39;\n&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*ThMorNp4uG6_TO3x2eRy-g.png" /></figure><p><em>Summary of the dataset overview:</em></p><ul><li>The 2018 dataset had 3 columns missing.</li><li>The 2019 dataset had an extra column named: “Unnamed:9” which we will have to check out.</li><li>The Amount column is an object data type so we will need to deal with that.</li></ul><p>NOTE: We will deal with all these and more in the preprocessing stage</p><p><strong><em>Data preprocessing</em></strong></p><p>In this section, we will take a look at each column of each dataset by:</p><ul><li>Checking for duplicated row for each dataset</li><li>Check for any descripancies in each column of each dataset.</li><li>We will use Crunchbase and the Web to find and fill any missing rows</li><li>Check the datatype of each column of each dataset</li></ul><p><strong><em>2018 dataset — We will work on columns with issues to fix them</em></strong></p><p>The “Company Name” column in the 2018 data had some issues and were fixed as below:</p><pre>#Checking for duplicated rows<br>startup_2018[startup_2018[&quot;Company Name&quot;].duplicated(keep=False)].sort_values(by=&quot;Company Name&quot;)<br><br>#The following duplicates were found:</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*FZWLXHeK4HF4c3yH5ZrptA.png" /></figure><pre># drops the first instance<br><br>startup_2018.drop(0, axis= 0, inplace= True)</pre><p>The following issues were found and fixed in the “Industry” column of the 2018 dataset</p><p>1. The Industry column featured Sectors and subsectors as values, so, we will only take the first part since it is the sector.</p><p>2. Some row values were represented with “-”, so we will represent them with np.nan as well.</p><pre># Fetches the first index of the sectors<br>startup_2018[&quot;Industry&quot;]= startup_2018[&quot;Industry&quot;].str.split(&quot;,&quot;).str[0]<br><br># Replaces all _ with np.nan<br><br>startup_2018[&quot;Industry&quot;]= startup_2018.Industry.replace(&quot;—&quot;, np.nan)<br><br># Display the results<br>startup_2018[&quot;Industry&quot;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*4gFH7HYlMisiD42DtwLwfg.png" /></figure><p>The “Round/Series” column of the 2018 data had issues such as the following inapproroate values in the rows. Thus such values were replaced as in the following codes:</p><pre> Issues with the 2018 Round/Series Column<br>1. https://docs.google.com/spreadsheets/d/1x9ziNeaz6auNChIHnMI8U6kS7knTr3byy_YBGfQaoUA/edit#gid=1861303593<br>2. Undisclosed</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*fV9vDWJVxglifXF4moQ6jQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*qPsJS80TuDCs_FkNo5YTYg.png" /></figure><pre>#Replacing the first discrapency with the actual value<br>startup_2018.loc[178, &quot;Round/Series&quot;]= &quot;Seed&quot;<br><br>#finding rows with the second discrapency:<br>startup_2018[startup_2018[&quot;Round/Series&quot;]==&quot;Undisclosed&quot;]<br><br>## Replaces the 3rd discrapency in the Round/Series column of the 2018 with np.nan<br>startup_2018.loc[164, &quot;Round/Series&quot;]= np.nan<br>startup_2018.loc[406, &quot;Round/Series&quot;]= np.nan</pre><p><em>Issues with the Amount column of the 2018 dataset and how they were fixed:</em></p><ul><li>Some of the amount in the Amount column of the 2018 dataset were in dollars instead of rupees. So, we will convert all rupees to dollars.</li><li>Certain rows in the Amount column were represented with “-”. We will represent those with np.nan</li><li>Certain rows had no demonination, so we will assume they are in dollars.</li></ul><pre>##We will get rid of all the &quot;,&quot; to make our cleaning easier<br>startup_2018[&quot;Amount&quot;]= startup_2018.Amount.apply(lambda x:str(x).replace(&quot;,&quot;, &quot;&quot;))<br><br>## next we will filter out all the rows in the amount column containting &quot;₹&quot;<br>rupees_mask = startup_2018[&#39;Amount&#39;].str.contains(&#39;₹&#39;)<br><br>## we convert it to a dataframe<br>rupees_df = startup_2018[rupees_mask].copy()<br><br>rupees_df[&#39;Amount&#39;] = rupees_df[&#39;Amount&#39;].str.replace(&#39;₹&#39;, &#39;&#39;)<br><br><br>rupees_df[&#39;Amount&#39;] = rupees_df[&#39;Amount&#39;].astype(float)<br><br>##we will conver it to dollars using the 2018 dollar rate since the dataset is from 2018<br>dollar_rate_2018= 68.4113<br><br>rupees_df[&#39;Amount&#39;] = round(rupees_df[&#39;Amount&#39;] /dollar_rate_2018 , 0)<br><br>##we will convert it back to a string to reattach it to our original dataframe <br>rupees_df[&#39;Amount&#39;] = rupees_df[&#39;Amount&#39;].astype(str)<br><br>## Now let&#39;s replace the columns with rupees in our original dataset with the converted one<br>startup_2018.loc[rupees_mask, &#39;Amount&#39;] = rupees_df[&#39;Amount&#39;].values<br><br>##Now let&#39;s strip the dollar sign from the rows with it<br>startup_2018[&#39;Amount&#39;] = startup_2018[&#39;Amount&#39;].str.replace(&#39;$&#39;, &#39;&#39;)<br><br># We will finally replace all &quot;-&quot; with np.nan <br>startup_2018[&quot;Amount&quot;]=startup_2018[&quot;Amount&quot;].replace(&quot;—&quot;, np.nan)<br><br># Displaying the fixed column<br>startup_2018[&quot;Amount&quot;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*r8JtasezE2cDyS1HtElQ7A.png" /></figure><p><em>Issues with the 2018 Location Column:</em></p><ul><li>All columns had their cities and state. Since we need the cities</li><li>thecompanies where located, we will take those. Also, we will take only the city name part of the location values in each row.</li></ul><pre>startup_2018[&quot;Location&quot;]= startup_2018[&quot;Location&quot;].str.split(&quot;,&quot;).str[0]<br><br>#Display the final output<br>startup_2018[&quot;Location&quot;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*PjDDji5caUgnRR5nW9yrRA.png" /></figure><p><em>Checking the datatypes once again</em></p><pre>startup_2018.info()</pre><pre>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>RangeIndex: 525 entries, 1 to 525<br>Data columns (total 7 columns):<br> #   Column         Non-Null Count  Dtype <br>---  ------         --------------  ----- <br> 0   Company Name   525 non-null    object<br> 1   Industry       495 non-null    object<br> 2   Round/Series   523 non-null    object<br> 3   Amount         377 non-null    object<br> 4   Location       525 non-null    object<br> 5   About Company  525 non-null    object<br> 6   Year           525 non-null    object<br>dtypes: object(7)<br>memory usage: 28.8+ KB</pre><p><em>Issues with the datatypes</em></p><ul><li>The Amount column is an object datatype; therefore, We will change the Amount column to int</li></ul><pre>#Chaning the Amount column from object datatype to an int datatype<br><br>startup_2018[&#39;Amount&#39;] = pd.to_numeric(startup_2018[&#39;Amount&#39;])<br><br>startup_2018[&quot;Amount&quot;]=startup_2018[&quot;Amount&quot;].replace(np.nan, 0)<br><br>startup_2018[&quot;Amount&quot;]=startup_2018[&quot;Amount&quot;].astype(int)<br><br>#Display final data<br>startup_2018</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*FNDcwVRSnoaivF1FTlCO8A.png" /></figure><p>Final Notes On the 2018 dataset<br>It has three missing columns, namely:</p><ul><li>Founders</li><li>Founded</li><li>Investor</li></ul><p>As will be seen later, these missing columns and the “About Company” will be dropped and so we don’t need to worry about them. We drop them because they are not needed in answering the questions and hypothesis we raised in the begining of this project.</p><p><strong><em>2019 dataset — We will work on columns with issues to fix them.</em></strong></p><p>Again, just like we did with the 2018 dataset, we will only handle columns that have discripacies.</p><p>The “Company/Brand” column of the 2019 dataset had duplicates and so the duplicates were located and dropped as shown below:</p><pre># Check for and display duplicated rows<br>startup_2019[startup_2019[&quot;Company/Brand&quot;].duplicated(keep=False)].sort_values(by=&quot;Company/Brand&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*PDgCuKEcV8ts5EzcoRZ8Ow.png" /></figure><pre># Drops index dataframe index that is a duplicate<br><br>startup_2019.drop(82, axis= 0, inplace=True)</pre><p>Issues with the “HeadQuarter” column of the 2019 dataset:</p><ul><li>The “HeadQuarter” was rather stored in the “Founders” column</li><li>We will find the row and make the necessary corrections as below</li></ul><pre>startup_2019[startup_2019[&quot;Founders&quot;]== &quot;Team of Waterloo-based software developers&quot;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*c2YpyKODrkR7F69oVKhIMg.png" /></figure><pre>startup_2019.loc[70, &quot;HeadQuarter&quot;]= &quot;Waterloo&quot;</pre><p>Issues with the “Amount($)” column of the 2019 dataset and how it was fixed:</p><ul><li>I replaced the columns with “Undisclosed” with np.nan</li></ul><pre>startup_2019[&quot;Amount($)&quot;]=startup_2019[&quot;Amount($)&quot;].replace(&quot;Undisclosed&quot;, np.nan)</pre><p>Issues with the 2019 Stage column:</p><ul><li>Some rows were represented with various variation of “Seed” funding stage. So, We will change the following to “Seed”:</li><li>Seed funding</li><li>Seed fund</li><li>Fresh funding</li><li>Seed round</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*UNUNQHCC4NwqZ3SeznBm9w.png" /></figure><pre># Checking the datatypes of each column of the 2019 dataset<br>startup_2019.info()<br><br><br>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>Int64Index: 88 entries, 0 to 88<br>Data columns (total 10 columns):<br> #   Column         Non-Null Count  Dtype  <br>---  ------         --------------  -----  <br> 0   Company/Brand  88 non-null     object <br> 1   Founded        60 non-null     float64<br> 2   HeadQuarter    70 non-null     object <br> 3   Sector         83 non-null     object <br> 4   What it does   88 non-null     object <br> 5   Founders       85 non-null     object <br> 6   Investor       88 non-null     object <br> 7   Amount($)      76 non-null     object <br> 8   Stage          42 non-null     object <br> 9   Year           88 non-null     object <br>dtypes: float64(1), object(9)<br>memory usage: 9.6+ KB</pre><p>Issues with the datatypes of the 2019 dataset:</p><ul><li>We will have to change the Amount column and Founded Column to int</li></ul><pre>##First, we will deal with the Amount column:<br><br>#-We will strip all the &quot;,&quot; and $<br><br>startup_2019[&quot;Amount($)&quot;]= startup_2019[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;,&quot;, &quot;&quot;))<br>startup_2019[&quot;Amount($)&quot;]= startup_2019[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;$&quot;, &quot;&quot;))<br><br>##We will replace all np.nan with 0 and convert the column to int<br><br>startup_2019[&quot;Amount($)&quot;]= startup_2019[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;nan&quot;, &quot;0&quot;))<br><br>startup_2019[&quot;Amount($)&quot;]=startup_2019[&quot;Amount($)&quot;].astype(int)<br><br>#Now, we will deal with the founded column:    <br>startup_2019[&quot;Founded&quot;]=startup_2019[&quot;Founded&quot;].replace(np.nan, 0)<br><br>startup_2019[&quot;Founded&quot;]=startup_2019[&quot;Founded&quot;].astype(int)<br><br># Display the datatypes<br>startup_2019.info()</pre><pre>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>Int64Index: 88 entries, 0 to 88<br>Data columns (total 10 columns):<br> #   Column         Non-Null Count  Dtype <br>---  ------         --------------  ----- <br> 0   Company/Brand  88 non-null     object<br> 1   Founded        88 non-null     int32 <br> 2   HeadQuarter    70 non-null     object<br> 3   Sector         83 non-null     object<br> 4   What it does   88 non-null     object<br> 5   Founders       85 non-null     object<br> 6   Investor       88 non-null     object<br> 7   Amount($)      88 non-null     int32 <br> 8   Stage          42 non-null     object<br> 9   Year           88 non-null     object<br>dtypes: int32(2), object(8)<br>memory usage: 8.9+ KB</pre><p><strong><em>2020 dataset — We will work on columns with issues to fix them</em></strong></p><p>Again, just like we did with the 2018 dataset, we will only handle columns that have discripacies.</p><p><em>Issues with the HeadQuarter column of the 2020 dataset:</em></p><ul><li>Some companies had thier country, and states present. <br>So, we will split the column with a “,” and choose the first index as shown below.</li></ul><pre>startup_2020[&quot;HeadQuarter&quot;]=startup_2020[&quot;HeadQuarter&quot;].str.split(&quot;,&quot;).str[0]</pre><p><em>Issues with the Amount column of the 2020 dataset:</em><br>Some cells were represented with:</p><ul><li>Undiclsosed<br>-Undislosed<br>-Undisclosed<br>-800,000,000 𝑡𝑜 850,000,000 we will replace this with the average<br>-887000 23000000, we will represent it with a summation of both numbers= 23887000<br>-9.600000, we will replace it with 9600000<br>-42.23000 we will replace it with 4223000 so, we will find them and deal with them.</li></ul><pre>startup_2020[&quot;Amount($)&quot;].replace(&quot;Undiclsosed&quot;, np.nan, inplace=True)<br>startup_2020[&quot;Amount($)&quot;].replace(&quot;Undislosed&quot;, np.nan, inplace=True)<br>startup_2020[&quot;Amount($)&quot;].replace(&quot;Undisclosed&quot;, np.nan, inplace=True)<br>startup_2020[&quot;Amount($)&quot;].replace(&quot;$800,000,000 to $850,000,000&quot;, &quot;825,000,000&quot;, inplace=True)<br>startup_2020[&quot;Amount($)&quot;]= startup_2020[&quot;Amount($)&quot;].replace(&quot;887000 23000000&quot;, &quot;23887000&quot;)<br>startup_2020[&quot;Amount($)&quot;]= startup_2020[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;9.600000&quot;, &quot;9600000&quot;))<br>startup_2020[&quot;Amount($)&quot;].replace(&quot;42.23000&quot;, &quot;4223000&quot;, inplace=True)</pre><p><em>Issues with the Stage column of the 2020 dataset:</em></p><p>We will convert:<br> <br>- Seed Funding<br>- Seed Round<br>- Seed Investment<br>- Seed funding<br>- Seed round</p><p>to Seed to ensure consistency</p><p>Also, we will convert:</p><p>- Pre-seed<br>- Pre-seed Round<br>- Pre seed Round<br>- Pre seed round</p><p>to Pre-Seed.</p><pre>startup_2020[&quot;Stage&quot;]= startup_2020[&quot;Stage&quot;].replace(&quot;Seed Funding&quot;, &quot;Seed&quot;)<br>startup_2020[&quot;Stage&quot;]= startup_2020[&quot;Stage&quot;].replace(&quot;Seed Round&quot;, &quot;Seed&quot;)<br>startup_2020[&quot;Stage&quot;]= startup_2020[&quot;Stage&quot;].replace(&quot;Seed Investment&quot;, &quot;Seed&quot;)<br>startup_2020[&quot;Stage&quot;]= startup_2020[&quot;Stage&quot;].replace(&quot;Seed funding&quot;, &quot;Seed&quot;)<br>startup_2020[&quot;Stage&quot;]= startup_2020[&quot;Stage&quot;].replace(&quot;Seed round&quot;, &quot;Seed&quot;)<br><br>startup_2020[&quot;Stage&quot;]= startup_2020[&quot;Stage&quot;].replace(&quot;Pre-seed&quot;, &quot;Pre-Seed&quot;)<br>startup_2020[&quot;Stage&quot;]= startup_2020[&quot;Stage&quot;].replace(&quot;Pre-seed Round&quot;, &quot;Pre-Seed&quot;)<br>startup_2020[&quot;Stage&quot;]= startup_2020[&quot;Stage&quot;].replace(&quot;Pre seed Round&quot;, &quot;Pre-Seed&quot;)<br>startup_2020[&quot;Stage&quot;]= startup_2020[&quot;Stage&quot;].replace(&quot;Pre seed round&quot;, &quot;Pre-Seed&quot;)</pre><p><em>Checking For Datatypes of Each Column of the 2020 dataset</em></p><pre>startup_2020.info()</pre><pre>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>RangeIndex: 1055 entries, 0 to 1054<br>Data columns (total 10 columns):<br> #   Column         Non-Null Count  Dtype <br>---  ------         --------------  ----- <br> 0   Company/Brand  1055 non-null   object<br> 1   Founded        843 non-null    object<br> 2   HeadQuarter    961 non-null    object<br> 3   Sector         1042 non-null   object<br> 4   What it does   1055 non-null   object<br> 5   Founders       1043 non-null   object<br> 6   Investor       1017 non-null   object<br> 7   Amount($)      1055 non-null   object<br> 8   Stage          591 non-null    object<br> 9   Year           1055 non-null   object<br>dtypes: object(10)<br>memory usage: 82.5+ KB</pre><p>We will convert the Founded and Amound($) to int</p><pre>##First, we will deal with the Amount column:<br><br>#-We will strip all the &quot;,&quot; and $<br><br>##First, we will deal with the Amount column:<br><br>#-We will strip all the &quot;,&quot; and $<br>startup_2020[&quot;Amount($)&quot;]= startup_2020[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;,&quot;, &quot;&quot;))<br>startup_2020[&quot;Amount($)&quot;]= startup_2020[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;$&quot;, &quot;&quot;))<br><br>##We will get rid of all . and spaces in our data as well <br>startup_2020[&quot;Amount($)&quot;]= startup_2020[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;.&quot;, &quot;&quot;))<br>startup_2020[&quot;Amount($)&quot;]= startup_2020[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot; &quot;, &quot;&quot;))<br><br>##We will replace all np.nan with 0 and convert the column to int<br>startup_2020[&quot;Amount($)&quot;]= startup_2020[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;nan&quot;, &quot;0&quot;))<br><br>startup_2020[&quot;Amount($)&quot;]= pd.to_numeric(startup_2020[&quot;Amount($)&quot;].astype(&quot;int64&quot;))<br><br>#Diplay final look of the data<br>startup_2020</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*2FbljEIj19O9J5AkE6xJ_w.png" /></figure><pre># Display the final data<br>startup_2020.info()</pre><pre>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>RangeIndex: 1055 entries, 0 to 1054<br>Data columns (total 10 columns):<br> #   Column         Non-Null Count  Dtype <br>---  ------         --------------  ----- <br> 0   Company/Brand  1055 non-null   object<br> 1   Founded        1055 non-null   int32 <br> 2   HeadQuarter    961 non-null    object<br> 3   Sector         1042 non-null   object<br> 4   What it does   1055 non-null   object<br> 5   Founders       1043 non-null   object<br> 6   Investor       1017 non-null   object<br> 7   Amount($)      1055 non-null   int64 <br> 8   Stage          591 non-null    object<br> 9   Year           1055 non-null   object<br>dtypes: int32(1), int64(1), object(8)<br>memory usage: 78.4+ KB</pre><p><strong><em>2021 dataset — We will work on columns with issues to fix them.</em></strong></p><p>The “Company/Brand” column had duplicates and so such duplicates were found and removed as follows:</p><pre># Checking for duplicates<br>startup_2021[startup_2021[&quot;Company/Brand&quot;].duplicated(keep=False)].sort_values(by= &quot;Company/Brand&quot;)</pre><pre># Removing duplicates at respective datafrae indicies<br>startup_2021.drop(index=[224, 101, 107, 102, 237, 240, 234,<br>                         98, 256, 239, 100,97, 241, 99, 232, 249, 106, 351, 285, 103, 350, 105, 95, 243, 245, 247,230, 252,117,96,250], axis=0, inplace= True)</pre><p>Issues with the 2021 Headquarters column:<br>Some rows had the name:</p><ul><li>Pharmaceuticals\t#REF!<br>- Gurugram\t#REF!<br>- Online Media\t#REF!<br>- Information Technology &amp; Services<br>which were anomalies so, we will research online and resolve the issues</li></ul><pre>#inserting the correct values from Crunchbase<br>startup_2021.loc[242, &quot;HeadQuarter&quot;]= &quot;Mumbai&quot;<br>startup_2021.loc[257, &quot;HeadQuarter&quot;]= &quot; Bengaluru&quot;<br>startup_2021.loc[1100, &quot;HeadQuarter&quot;]= &quot;Bangalore&quot;<br>startup_2021.loc[1176, &quot;HeadQuarter&quot;]= &quot;Manchester&quot;    <br>startup_2021.loc[1176, &quot;Sector&quot;]= &quot;Information Technology &amp; Services&quot;</pre><p><em>Issues with 2021 Sector Column</em></p><p>While we expected a sector names, instead, we have some of the cells containig non sector names as below, so such were fixed.</p><ul><li>“MoEVing is India’s only Electric Mobility focused Technology Platform with a vision to accelerate EV adoption in India.”</li><li>Sochcast is an Audio experiences company that give the listener and creators an Immersive Audio experience</li><li>Primary Business is Development and Manufacturing of Novel Healthcare Products in Effervescent forms using imported propriety ingredients.</li><li>Hauz Khas</li><li>OTT</li></ul><pre>#The columns have been shifted, so we will replace them with their actual values<br>startup_2021.loc[257, &quot;Sector&quot;]= &quot;Automotive&quot;<br>startup_2021.loc[257, &quot;What it does&quot;]= &quot;MoEVing is India&#39;s only Electric Mobility focused Technology Platform with a vision to accelerate EV adoption in India.&quot;<br>startup_2021.loc[257, &quot;Founders&quot;]= &quot;Vikash Mishra, Mragank Jain&quot;<br>startup_2021.loc[257, &quot;Investor&quot;]= &quot;Anshuman Maheshwary, Dr Srihari Raju Kalidindi&quot;<br>startup_2021.loc[257, &quot;Amount($)&quot;]= &quot;$5000000&quot;<br>startup_2021.loc[257, &quot;Stage&quot;]= &quot;Seed&quot;<br><br>startup_2021.loc[1100, &quot;Sector&quot;]= &quot;Technology&quot;<br>startup_2021.loc[1100, &quot;What it does&quot;]= &quot;Sochcast is an Audio experiences company that give the listener and creators an Immersive Audio experience&quot;<br>startup_2021.loc[1100, &quot;Founders&quot;]= &quot;CA Harvinderjit Singh Bhatia, Garima Surana, Anil Srivatsa&quot;<br>startup_2021.loc[1100, &quot;Investor&quot;]= &quot;Vinners, Raj Nayak, Amritaanshu Agrawal&quot;<br>startup_2021.loc[1100, &quot;Amount($)&quot;]= np.nan<br><br>startup_2021.loc[242, &quot;Sector&quot;]= &quot;Health&quot;<br>startup_2021.loc[242, &quot;What it does&quot;]= &quot;Primary Business is Development and Manufacturing of Novel Healthcare Products in Effervescent forms using imported propriety ingredients.&quot;<br>startup_2021.loc[242, &quot;Founders&quot;]= &quot;Varun Khanna&quot;<br>startup_2021.loc[242, &quot;Investor&quot;]= &quot;Morgan Stanley Private Equity Asia&quot;<br>startup_2021.loc[242, &quot;Amount($)&quot;]= &quot;$22000000&quot;<br>startup_2021.loc[242, &quot;Stage&quot;]= &quot;Series C&quot;<br><br>startup_2021.loc[255, &quot;HeadQuarter&quot;]= &quot;Delhi&quot;<br>startup_2021.loc[255, &quot;Sector&quot;]= &quot;Food &amp; Beverages&quot;</pre><p>Issues so far with the 2021 Amount column:</p><p>certain rows had the following info and thus were fixed:<br> <br>- Upsparks<br>- JITO Angel Network, LetsVenture<br>- ITO Angel Network, LetsVenture<br>- Pre-series A<br>- ah! Ventures</p><p>- $undisclosed</p><p>- $Undisclosed</p><p>- Undisclosed</p><p>- certain rows were empty (“”)</p><p>##Let’s start findind these rows and resolve any issues with them</p><pre>#This row has shifted columns, so we will refer to crunchbase for the actual values<br>startup_2021.loc[111, &quot;HeadQuarter&quot;]= &quot;Delhi&quot;<br>startup_2021.loc[111, &quot;Founders&quot;]= &quot;Bharat Gupta&quot; <br>startup_2021.loc[111, &quot;Investor&quot;]= &quot;YC W21, Upsparks, LetsVenture&quot;<br>startup_2021.loc[111, &quot;Amount($)&quot;]= &quot;$1200000&quot;<br>startup_2021.loc[111, &quot;Stage&quot;]= &quot;Pre-series A&quot;<br><br>startup_2021.loc[1137, &quot;Amount($)&quot;]= np.nan<br>startup_2021.loc[1146, &quot;Amount($)&quot;]= np.nan<br><br>#This row has shifted columns, so we will refer to crunchbase for the actual values<br>startup_2021.loc[677, &quot;Founders&quot;]= &quot;Sushil Agarwal&quot; <br>startup_2021.loc[677, &quot;Investor&quot;]= &quot;JITO Angel Network, LetsVenture&quot;<br>startup_2021.loc[677, &quot;Amount($)&quot;]= &quot;$1000000&quot;<br>startup_2021.loc[677, &quot;Stage&quot;]= &quot;Seed&quot;<br><br>#This row has shifted columns, so we will refer to crunchbase for the actual values<br>startup_2021.loc[551, &quot;Founders&quot;]= &quot;Omkar Pandharkame, Ketaki Ogale, Vihang Mirkhelkar&quot; <br>startup_2021.loc[551, &quot;Investor&quot;]= &quot;100X.VC, JITO Angel Network, LetsVenture&quot;<br>startup_2021.loc[551, &quot;Amount($)&quot;]= &quot;$300000&quot;<br>startup_2021.loc[551, &quot;Stage&quot;]= &quot;Seed&quot;<br><br>#This row has shifted columns, so we will refer to crunchbase for the actual values<br>startup_2021.loc[545, &quot;Founders&quot;]= &quot;Rachit Agrawal, Piyush Bhartiya&quot; <br>startup_2021.loc[545, &quot;Investor&quot;]= &quot;Vamsi Krishna, Pulkit Jain, Gaurav Munjal&quot;<br>startup_2021.loc[545, &quot;Amount($)&quot;]= &quot;$1000000&quot;<br>startup_2021.loc[545, &quot;Stage&quot;]= &quot;Pre-series A&quot;<br><br>#This row has shifted columns, so we will refer to crunchbase for the actual values<br>startup_2021.loc[538, &quot;Founders&quot;]= &quot;Vishal Gupta&quot; <br>startup_2021.loc[538, &quot;What it does&quot;]= &quot;Holistic Development Programs for children in age range 5-15&quot; <br>startup_2021.loc[538, &quot;Investor&quot;]= &quot;LetsVenture,ah! Ventures,Good Capital,First Cheque&quot;<br>startup_2021.loc[538, &quot;Amount($)&quot;]= &quot;$300000&quot;<br>startup_2021.loc[538, &quot;Stage&quot;]= &quot;Seed&quot;<br><br>startup_2021[&quot;Amount($)&quot;].replace(&quot;$undisclosed&quot;, np.nan, inplace= True)<br><br>startup_2021[&quot;Amount($)&quot;].replace(&quot;$Undisclosed&quot;, np.nan, inplace= True)<br><br>startup_2021[&quot;Amount($)&quot;].replace(&quot;Undisclosed&quot;,np.nan, inplace= True)<br>startup_2021[&quot;Amount($)&quot;].replace(&quot;undisclosed&quot;,np.nan, inplace= True)</pre><p>There were issues with the “Stage” column of the 2021 data and there handled as follows:</p><p>Issues:<br>We convert the following:</p><p>-Early seed<br>- Pre-seed<br>to Pre-Seed</p><p>and then we convert:</p><p>- Seies A to Series A<br>finally, we will check for the row with:</p><p>$6000000</p><pre>##Let us do the conversions first:<br>startup_2021[&quot;Stage&quot;]= startup_2021[&quot;Stage&quot;].replace(&quot;Early seed&quot;, &quot;Pre-Seed&quot;)<br>startup_2021[&quot;Stage&quot;]= startup_2021[&quot;Stage&quot;].replace(&quot;Pre-seed&quot;, &quot;Pre-Seed&quot;)<br>startup_2021[&quot;Stage&quot;]= startup_2021[&quot;Stage&quot;].replace(&quot;Seies A&quot;, &quot;Series A&quot;)</pre><pre>#Now, let&#39;s find the row with the stage = $6000000<br>startup_2021[startup_2021[&quot;Stage&quot;]== &quot;$6000000&quot;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*9Ct7vcpUiANLpfhpXCs0fw.png" /></figure><pre>#We realized, the column were shifted, so we will replace them with thier actual values<br>startup_2021.loc[674, &quot;Amount($)&quot;]= &quot;$6000000&quot;<br>startup_2021.loc[674, &quot;Founders&quot;]= &quot;Aryaman Vir&quot;<br>startup_2021.loc[674, &quot;Stage&quot;]= np.nan<br>startup_2021.loc[674, &quot;Investor&quot;]= np.nan</pre><p>Checking the datatypes of the 2021 data</p><pre>startup_2021.info()<br><br>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>Int64Index: 1178 entries, 0 to 1208<br>Data columns (total 10 columns):<br> #   Column         Non-Null Count  Dtype  <br>---  ------         --------------  -----  <br> 0   Company/Brand  1178 non-null   object <br> 1   Founded        1177 non-null   float64<br> 2   HeadQuarter    1177 non-null   object <br> 3   Sector         1178 non-null   object <br> 4   What it does   1178 non-null   object <br> 5   Founders       1174 non-null   object <br> 6   Investor       1117 non-null   object <br> 7   Amount($)      1038 non-null   object <br> 8   Stage          770 non-null    object <br> 9   Year           1178 non-null   object <br>dtypes: float64(1), object(9)<br>memory usage: 133.5+ KB</pre><p>Issues:</p><p>We will convert the founded and Amout($) to int</p><pre>##First, we will deal with the Amount column:<br><br>#-We will strip all the &quot;,&quot; and $<br><br>startup_2021[&quot;Amount($)&quot;]= startup_2021[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;,&quot;, &quot;&quot;))<br>startup_2021[&quot;Amount($)&quot;]= startup_2021[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;$&quot;, &quot;&quot;))<br><br>##We will replace all np.nan with 0 and convert the column to int<br>startup_2021[&quot;Amount($)&quot;]= startup_2021[&quot;Amount($)&quot;].apply(lambda x:str(x).replace(&quot;nan&quot;, &quot;0&quot;))<br>startup_2021[&quot;Amount($)&quot;]= pd.to_numeric(startup_2021[&quot;Amount($)&quot;].astype(&quot;int64&quot;))<br><br># Displaying the data<br>startup_2021</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*qJDAYwdedoiEtlek_nTsPg.png" /></figure><p><strong>Now that we have taken care of all the above, it is time to concatenates the startup_2018,startup_2019,startup_2019,startup_2020 &amp; startup_2021 into startup dataset</strong></p><pre>#Check how all the column names look like<br>print(&#39;2018 columns \n&#39;,startup_2018.columns,&#39;\n&#39;)<br>print(&#39;2019 columns \n&#39;,startup_2019.columns,&#39;\n&#39;)<br>print(&#39;2020 columns \n&#39;,startup_2020.columns,&#39;\n&#39;)<br>print(&#39;2021 columns \n&#39;,startup_2021.columns,&#39;\n&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b9MEqkJl7TTXpARcgthhkg.png" /></figure><pre>#Make column names of 2018 data match with others<br>startup_2018.rename(columns= { &quot;Industry&quot;: &quot;Sector&quot;, &quot;Round/Series&quot;: &quot;Stage&quot;, <br>                           &quot;About Company&quot;: &quot;What it does&quot;, <br>                           &quot;Location&quot;:&quot;HeadQuarter&quot;,&quot;Company Name&quot;:&quot;Company/Brand&quot;, <br>                              &quot;Amount&quot;:&quot;Amount($)&quot;<br>                          }, inplace= True)<br><br>#Visualizing the new columns in 2018<br>print(&#39;2018 columns \n&#39;,startup_2018.columns,&#39;\n&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*nmMKDdzne8KKtabsnumsjg.png" /></figure><pre>#Concatenation<br><br>startup= pd.concat([startup_2018,startup_2019,<br>                    startup_2020,startup_2021], ignore_index= True)<br><br>#Viewing first 5 rows of concatenated dataframes<br>startup.head()  #Note: you have to redo stuffs like datatype convertion sice they change during concatenation, etc. data loading</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*uW_jDxetrVrpfoyR4teiAw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5a276d6b95d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>