<?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 Bhavya Parikh on Medium]]></title>
        <description><![CDATA[Stories by Bhavya Parikh on Medium]]></description>
        <link>https://medium.com/@bhavyaparikh?source=rss-3a1d9f9190d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bjwXhbh2sEntZrcP</url>
            <title>Stories by Bhavya Parikh on Medium</title>
            <link>https://medium.com/@bhavyaparikh?source=rss-3a1d9f9190d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:04:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhavyaparikh/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[Covid-19 Visualization]]></title>
            <link>https://medium.com/@bhavyaparikh/covid-19-visualization-4875121d2da7?source=rss-3a1d9f9190d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4875121d2da7</guid>
            <category><![CDATA[geopandas]]></category>
            <category><![CDATA[bokeh]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[plotting]]></category>
            <category><![CDATA[visualization]]></category>
            <dc:creator><![CDATA[Bhavya Parikh]]></dc:creator>
            <pubDate>Sun, 17 May 2020 13:14:35 GMT</pubDate>
            <atom:updated>2020-05-17T13:14:35.579Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*8fIUkdLVb4s79hw9rL1k1g.png" /><figcaption>Covid -19 Visualization by Countries</figcaption></figure><p>Visualization <strong>covid</strong> cases in world map using bokeh , geopandas</p><h3>Installation Procedure</h3><p>We need this 2 libraries for better visualizations and effects in which bokeh is very effective compare to plotly. bokeh installation guid follow this link for installing <a href="https://docs.bokeh.org/en/latest/docs/installation.html">https://docs.bokeh.org/en/latest/docs/installation.html</a> also as per your environment according to that install wheel file.</p><p><strong>first download all wheel file supported to its requirements :</strong></p><p>GDAL: — <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal">https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal</a></p><p>fiona: — <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#fiona">https://www.lfd.uci.edu/~gohlke/pythonlibs/#fiona</a></p><p>rtree: — <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#rtree">https://www.lfd.uci.edu/~gohlke/pythonlibs/#rtree</a></p><p>shapley: — <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely">https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely</a></p><p>pyproj : — <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyproj">https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyproj</a></p><p>installing above libraries and dependencies go for</p><pre>pip install geopandas</pre><pre>pip install bokeh</pre><blockquote>Now we have to download shape file for world map you can find it on <strong>https://www.naturalearthdata.com/downloads/110m-cultural-vectors/110m-admin-0-countries/</strong> here this shape file is enough for plotting if it not work you can download all files related to World_map and plot it .</blockquote><blockquote><strong>https://github.com/bparikh99/COVID_19_Visualization</strong></blockquote><h3>Code Section</h3><p>First collect countries wise cases so we will be going to use <a href="http://www.worldmeters.info/">www.worldmeters.info</a> for getting data also</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*R-FE1LulPbZDrb-erKkL2A.png" /><figcaption>Getting Data From site</figcaption></figure><p>if you see data DataFrame you get lots of coloum information in which it is consist of information country name ,country location information based on latitude and longitude which is form of ploygon</p><p>Also I have include shape file and output of that file will be like that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*HCvYVLL4JMvFeDqgTepn3Q.png" /><figcaption>World Shape File</figcaption></figure><p>There will be some data will not matching with data1 and data DataFrame so as per the bokeh plotting we have to merge this 2 DataFrame but before that we will find some data which is not matching and according to that we will replace some countries name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*MMbrWMkwWl9LX9uPiLDnRA.png" /><figcaption>Changing Data</figcaption></figure><p>After that we can merge this 2 frame</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*o4YMtLQ5Q01MAf7IleUFQA.png" /></figure><p><strong>We have to change the data1 containing country information column name by data country name column which is as NAME</strong></p><p>As per the bokeh requirement data should be in form of json file and now finally crated dataframe can be dump into to json format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*FcWR_qL93CGdEsgUFGKMnQ.png" /><figcaption>Json format file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*w3lV-dbpB7AT5I5obr-Buw.png" /><figcaption>Main Code 1</figcaption></figure><p>as per the code first data is in source as GeoJSONDataSource and we have taken the color palette for color defining in which color is reversed manner for visualization purpose. color_mapper in which argument set is as low means min cases and it goes to max cases to show a color mapper besides a plot</p><p>Tooltips is work as hover on graph it will show case number by state name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*wQXEPo7-mQypjOW7aIYiWA.png" /><figcaption>Main Code 2</figcaption></figure><h3>Final Plotting!!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*8fIUkdLVb4s79hw9rL1k1g.png" /><figcaption>World Map Plotting</figcaption></figure><h3>Excercises!</h3><p>We can add custom tick labels which i have commented in program and you can see better result because most of countries falling in skin color which is wrong</p><p>Also There is missing data which can be will be fill using applying color on it</p><p>Hover is there you can see after Visualization</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*EGGsXO7jV7bZikt3kDur-g.png" /></figure><p>Find my repository: <a href="https://github.com/bparikh99/COVID_19_Visualization">https://github.com/bparikh99/COVID_19_Visualization</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4875121d2da7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>