<?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 Harrison Tighiri on Medium]]></title>
        <description><![CDATA[Stories by Harrison Tighiri on Medium]]></description>
        <link>https://medium.com/@harrisontighiri?source=rss-32033e9cdeb1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ecvPkAiO_cUlneEE4z7U7Q.png</url>
            <title>Stories by Harrison Tighiri on Medium</title>
            <link>https://medium.com/@harrisontighiri?source=rss-32033e9cdeb1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 17:23:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harrisontighiri/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[Impact of COVID-19 on World Tourism]]></title>
            <link>https://medium.com/@harrisontighiri/impact-of-covid-19-on-world-tourism-ed5d3e301e1f?source=rss-32033e9cdeb1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed5d3e301e1f</guid>
            <dc:creator><![CDATA[Harrison Tighiri]]></dc:creator>
            <pubDate>Sun, 06 Nov 2022 00:19:37 GMT</pubDate>
            <atom:updated>2022-11-06T00:19:37.715Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Tourism is one of the world’s main economic sectors. It is the third largest export category (after fuels and chemicals) and accounted for 7% of world trade in 2019.</li><li>It can represent more than 20% of their GDP for some countries and is the third export sector of the world economy overall.</li></ul><p><a href="https://github.com/ChenChenDS"><strong>ChenChen</strong></a><strong> initially did the study, but only 1995 to 2017 data were investigated.</strong></p><p>However, we tried to look at the data till 2020, the most current data available on the World Bank page, to investigate the impact of COVID-19 on World Tourism.</p><h3>Data Source</h3><h4>The dataset came from the <a href="https://data.worldbank.org/indicator/st.int.arvl">World Bank</a>.</h4><p>The database includes data from more than 200 countries for the period 1995–2020</p><h4>There are seven datasets</h4><ul><li>Number_of_arrival</li><li>Number_of_departure</li><li>Expenditure for travel item</li><li>Receipts for travel items</li><li>Receipts (% of total exports)</li><li>Population</li><li>GDP</li></ul><h3>Data Collection and Cleaning</h3><p>Step 1: Downloaded the datasets for the attributes mentioned above and joined them in one Excel file, using excel.</p><h3>Import the relevant libraries.</h3><pre>import pandas as pd<br>import numpy as np<br>import plotly<br>import plotly.graph_objs as go<br>import warnings<br>import plotly.express as px</pre><h3>Inbound tourism analysis</h3><p>Read the inbound_tourists and country_list sheet</p><pre><em>#import inbound tourist data set</em><br>inbound_tourists = pd.read_excel(&quot;travel_data.xls&quot;, sheet_name=&quot;number_of_arrival&quot;, header=3, index_col=0)<br>inbound_tourists.head()</pre><pre><em>#import world country list data</em><br>country_list = pd.read_excel(&quot;travel_data.xls&quot;, sheet_name=&quot;country code&quot;)<br>country_list.head()</pre><p>Step 2: Defined two functions to select the relevant data and reshape the DataFrame format.</p><pre><em>#define a function to select rows and columns</em><br>def data_selection(df):<br>    <em>#merge the data frame with country list data frame by county</em> Code, so we can drop irrelevant rows<br>    df = pd.merge(country_list, df, left_on = &quot;Country Code&quot;, right_on = &quot;Country Code&quot;, how=&quot;left&quot;)<br>    df = df.set_index(&quot;Country Name&quot;)<br>    <em>#select columns from year 2010 to 2020</em><br>    df_new = pd.concat([df[&quot;Country Code&quot;],df.loc[:,&quot;2010&quot;:&quot;2020&quot;]], axis=1)<br>    <em>#replace missing value by 0</em><br>    df_new = df_new.fillna(0)<br>    return df_new</pre><pre><em>#use &quot;data_selection&quot; function to select inbound tourists data</em><br>inbound_tourists_clean = data_selection(inbound_tourists)<br>inbound_tourists_clean.head()</pre><pre><em>#define function to reshape the DataF</em>rame<br>def reshape_data(df):<br>    df_new = df[:] <br>    df_new.set_index([&quot;Country Code&quot;], inplace = True, append = True)<br>    <em>#use stack to change the data frame shape</em><br>    df_new = df_new.stack()<br>    df_new = pd.DataFrame(df_new)<br>    df_new = df_new.reset_index()<br>    <em>#rename column names</em><br>    df_new = df_new.rename(columns = {&quot;level_2&quot;:&quot;Year&quot;,0:&quot;Amount&quot;})<br>    return df_new</pre><pre><em>#use &quot;reshape_data&quot; function to reshape the inbound_touists_clean DataF</em>rame<br>inbound_tourists_stack = reshape_data(inbound_tourists_clean)<br>inbound_tourists_stack.head()</pre><h3>Distribution of world inbound tourists</h3><pre><em>#make the map plot of the inbound tourists use plotly_express package</em><br>inbound_map = px.choropleth(inbound_tourists_stack, <br>                            locations=&quot;Country Code&quot;, <br>                            color=&quot;Amount&quot;, <br>                            hover_name=&quot;Country Name&quot;,<br>                            #set the animation slide bar<br>                            animation_frame=&quot;Year&quot;,<br>                            color_continuous_scale=px.colors.sequential.BuGn,<br>                            #set the map type<br>                            projection=&quot;natural earth&quot;)<br>inbound_map</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*7GPeeMMhmt3ZcN7bG3gMfA.png" /><figcaption>Fig. 1A: 2019 distribution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*pNtANjOnapuCljxeV1uOuA.png" /><figcaption>Fig. 1A: 2020 distribution</figcaption></figure><p>The world map from 2010 to 2019 shows that the main destinations chosen by tourists have mostly stayed the same. Europe, North America, and China have been famous destinations this decade. However, in 2020 there was a drastic reduction in all regions, especially the mentioned region. It shows that the prevalence of COVID-19 in 2020, which led to the global lockdown, greatly affected inbound tourist data for 2020.</p><h3>Top countries that attract tourists</h3><pre><em>#make the line plot for top countries</em><br>inbound_top = px.line(top_inbound_data, <br>                      x=&quot;Year&quot;, <br>                      y=&quot;Amount&quot;, <br>                      color=&quot;Country Name&quot;, <br>                      line_group=&quot;Country Name&quot;,  <br>                      line_shape=&quot;linear&quot;, <br>                      title=&quot;Top countries that attract tourists&quot;)<br>inbound_top</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*rLT54hyaQgUKRrdigVYMYg.png" /><figcaption>Fig 2</figcaption></figure><p>The line chart shows the top 10 destinations most tourists chose past ten years. Europe appears to be the major destination for tourists. France is the most visited country in the world. According to the French <a href="https://www.diplomatie.gouv.fr/en/french-foreign-policy/tourism/">ministry of foreign affairs</a>, nearly 90 million international visitors went there in 2019, and tourism accounts for 8% of the country’s gross domestic product. As in other countries, tourist numbers fell during the coronavirus pandemic, and visitor revenues to France halved in the first seven months of 2020.</p><h3>Top attractive countries’ inbound tourists yearly growth rate</h3><pre>#make the bar plot of the country&#39;s inbound tourists growth<br>growth_bar = px.bar(growth_inbound_data, <br>                         x=&quot;Year&quot;, <br>                         y=&quot;Amount&quot;, <br>                         color=&quot;Country Name&quot;, <br>                         hover_name=&quot;Country Name&quot;,<br>                         #make grouped bar code<br>                         barmode=&quot;group&quot;,<br>                         title=&quot;Top attractive countries inbound tourists yearly growth rate&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*JQdjf_YODcwlT3tax_WQGA.png" /><figcaption>Fig. 3</figcaption></figure><p>The grouped bar chart shows the annual percentage growth of inbound tourists. In 2016, due to the coup attempt in Turkey, there was a significant drop in the growth of inbound tourists. In 2020, there was a sharp and negative growth of inbound tourists, which could result from COVID-19.</p><h3>Top countries with the highest receipts from tourism</h3><pre><em>#make the bar plot of the top countries with highest receipts from touism</em><br>receipts_bar = px.bar(receipts_clean_stack, <br>                      x=&quot;Year&quot;, <br>                      y=&quot;Amount&quot;, <br>                      color=&quot;Country Name&quot;, <br>                      hover_name=&quot;Country Name&quot;,<br>                      title=&quot;Top countries with highest receipts&quot;)<br>receipts_bar</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*qdNuD8as_QUDOrra5HTVEg.png" /><figcaption>Fig. 4</figcaption></figure><p>As shown in Fig. 4, there was a steady increase in revenue generation from 2010 till 2019. In 2020, there was a sharp and deep reduction in revenue, which could result from COVID-19.</p><h3>Polar chart of top countries that are export-oriented</h3><pre><em>#make the polar bar plot for the top countries tourism that are export oriented</em><br>export_polar = px.bar_polar(top_country_export,<br>                            #radius column<br>                            r=&quot;Amount&quot;,<br>                            #angle column<br>                            theta=&quot;Country Name&quot;,<br>                            color=&quot;Country Name&quot;, <br>                            #slider animation column<br>                            animation_frame=&quot;Year&quot;, <br>                            title=&quot;Top countries ranked by tourism share of exports&quot;)<br>export_polar</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*JjsG1fZod3w7BPpcAKN3xw.png" /><figcaption>Fig. 5A: 2019</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*B-S6RgJIDzynel09IJRfgQ.png" /><figcaption>Fig. 5B: 2020</figcaption></figure><p>The polar bar graph shows the main tourist destinations that rely mainly on exports. The top three in 2019, as shown in Fig. 5A, are China (Macao) (90.36%), Maldives (84.74%), and Antigua and Barbuda (82.96%). However, there was a change in the top three countries in 2020, as shown in Fig. 5B. The countries are Maldives (78.87%), Aruba (74.59%), and Antigua and Barbuda (70%). China’s export for 2020 dropped significantly to 59.74%. Although the top countries in 2020 were above the reply most on exports for tourism were 70%, there was still the effect of COVID-19 on tourism due to exports.</p><h3>Distribution of world outbound tourists</h3><pre><em>#make the map plot of world outbound tourists</em><br>outbound_map = px.scatter_geo(outbound_tourists_stack, <br>                              locations=&quot;Country Code&quot;, <br>                              color=&quot;Amount&quot;, <br>                              hover_name=&quot;Country Name&quot;, <br>                              size=&quot;Amount&quot;,<br>                              <em>#set animation column</em><br>                              animation_frame=&quot;Year&quot;,<br>                              color_continuous_scale=px.colors.sequential.Aggrnyl,<br>                              projection=&quot;natural earth&quot;)<br>outbound_map</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*5KAixwZKBPzn2QukVCZEMw.png" /><figcaption>Fig. 6A: 2019 distribution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*jQx_WlbS8tBZqBGgAxohFA.png" /><figcaption>Fig. 6A: 2020 distribution</figcaption></figure><p>The world map from 2010 to 2019 shows that individuals from Europe, North America, and China travel abroad the most. However, in 2020 there was a drastic reduction in all regions, especially China. It shows that the prevalence of COVID-19 in 2020, which led to the global lockdown, greatly affected outbound tourist data for 2020.</p><h3>Top countries with outbound tourists</h3><pre><em>#make the line plot for top outbound countries</em><br>outbound_top = px.line(top_outbound_data,<br>                       #x axis column<br>                       x=&quot;Year&quot;,<br>                       #y axis column<br>                       y=&quot;Amount&quot;, <br>                       color=&quot;Country Name&quot;, <br>                       line_group=&quot;Country Name&quot;, <br>                       hover_name=&quot;Country Name&quot;,<br>                       #line type<br>                       line_shape=&quot;linear&quot;,<br>                       title=&quot;Top countries where people like to travel&quot;)<br>outbound_top</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*ZhBquhKoOhZhB6mg4fc4Sg.png" /><figcaption>Fig. 7</figcaption></figure><p>The line chart shows the top 10 destinations where people have liked to travel the most for the past ten years. Tourists from Europe are significant travelers, as seen in Fig. 7.</p><h3>Outbound tourists number compare to country’s population</h3><pre><em>#make the line-bar plot</em><br><em>#make the scatter plot</em><br>trace1=go.Scatter(<br>    x=population_outbound(&quot;2019&quot;).index,<br>    y=population_outbound(&quot;2019&quot;).iloc[:,0],<br>    name=&quot;population&quot;)<br><em>#make the bar plot</em><br>trace2=go.Bar(<br>    x=population_outbound(&quot;2019&quot;).index,<br>    y=population_outbound(&quot;2019&quot;).iloc[:,1],<br>    name=&quot;tourists&quot;,<br>    yaxis=&quot;y2&quot;,<br>    <em>#transparent level</em><br>    opacity=0.6,<br>    <em>#bar wide</em><br>    width=[0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5])<br>data=[trace1,trace2]<br>layout=go.Layout(<br>    title=&quot;Outbound tourists number vs country&#39;s population&quot;,<br>    yaxis=dict(title=&quot;population&quot;),<br>    yaxis2=dict(title=&quot;number of people&quot;, <br>                titlefont=dict(color=&quot;rgb(148, 103, 189)&quot;),<br>                tickfont=dict(color=&quot;rgb(148, 103, 189)&quot;),<br>                overlaying=&quot;y&quot;,<br>                side=&quot;right&quot;))<br>outbound_population_compare=go.Figure(data=data, layout=layout)<br>outbound_population_compare</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*mWodhiEB1deoOxWubW-DhQ.png" /><figcaption>Fig. 8A: 2019</figcaption></figure><pre><em>#make the line-bar plot</em><br><em>#make the scatter plot</em><br>trace1=go.Scatter(<br>    x=population_outbound(&quot;2020&quot;).index,<br>    y=population_outbound(&quot;2020&quot;).iloc[:,0],<br>    name=&quot;population&quot;)<br><em>#make the bar plot</em><br>trace2=go.Bar(<br>    x=population_outbound(&quot;2020&quot;).index,<br>    y=population_outbound(&quot;2020&quot;).iloc[:,1],<br>    name=&quot;tourists&quot;,<br>    yaxis=&quot;y2&quot;,<br>    <em>#transparent level</em><br>    opacity=0.6,<br>    <em>#bar wide</em><br>    width=[0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5])<br>data=[trace1,trace2]<br>layout=go.Layout(<br>    title=&quot;Outbound tourists number vs country&#39;s population&quot;,<br>    yaxis=dict(title=&quot;population&quot;),<br>    yaxis2=dict(title=&quot;number of people&quot;, <br>                titlefont=dict(color=&quot;rgb(148, 103, 189)&quot;),<br>                tickfont=dict(color=&quot;rgb(148, 103, 189)&quot;),<br>                overlaying=&quot;y&quot;,<br>                side=&quot;right&quot;))<br>outbound_population_compare=go.Figure(data=data, layout=layout)<br>outbound_population_compare</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*ERjKZMyNtJZE6JnNrOqQyg.png" /><figcaption>Fig. 8A: 2020</figcaption></figure><p>The multi-plot compares the number of outbound tourists and the country’s population. However, USA and China had the maximum number of tourists in 2019. However, the number of tourists in the UK, Poland, Hong Kong, and Germany is higher than the population number, which means these countries’ outbound travel times per capita are over 1. Nevertheless, in 2020 China’s number of tourists went down drastically compared to 2019 and previous years. It shows that the prevalence of COVID-19 in 2020, which led to the global lockdown, had a significant effect on the number of tourists traveling to China for that year.</p><h3>Tourists whose countries spend the most (excluding international transport)</h3><pre>#make the bar plot of the top countries&#39; people with highest spending in the travel<br>expenditure_bar = px.bar(top_expenditure_p_stack, <br>                         x=&quot;Year&quot;, <br>                         y=&quot;Per capita expenditure&quot;, <br>                         color=&quot;Country Name&quot;, <br>                         hover_name=&quot;Country Name&quot;,<br>                         title=&quot;Top countries per capita expenditure in travel(exclude international transportation)&quot;)<br>expenditure_bar</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*mhn4ApKderhuqtoPWLIWJg.png" /><figcaption>Fig. 9</figcaption></figure><h3>GDP and Tourism</h3><h4>Correlation between GDP and number of inbound tourists</h4><pre><em>#make the scatter plot check the relation between GDP and inbound tourists number</em><br>gdp_inbound_plot = px.scatter(gdp_inbound, <br>                              x=&quot;Amount&quot;, <br>                              y=&quot;GDP&quot;,<br>                              #set the color of the plot<br>                              color_discrete_sequence = px.colors.qualitative.Vivid,<br>                              hover_name=&quot;Country Name&quot;,<br>                              #use log data to plot<br>                              log_x=True, <br>                              log_y=True, <br>                              labels=&quot;Amount(number of people)&quot;,<br>                              title=&quot;Correlation between GDP and number of inbound tourists&quot;)<br>gdp_inbound_plot</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*FegQoD6hCKzoyFglYcLuaQ.png" /><figcaption>Fig. 10</figcaption></figure><p>There is a positive relationship between GDP and the number of incoming tourists, indicating that the development of the tourism industry will benefit the country’s GDP.</p><h4>Correlation between GDP and number of outbound tourists</h4><pre><em>#make the scatter plot to check the relationship between tourists number and GDP</em><br>gdp_outbound_plot = px.scatter(gdp_outbound, <br>                               x=&quot;Amount&quot;, <br>                               y=&quot;GDP&quot;,  <br>                               hover_name=&quot;Country Name&quot;,<br>                               #use log data to make the plot<br>                               log_x=True, <br>                               log_y=True,<br>                               title=&quot;Correlation between GDP and outbound tourists&quot;)<br>gdp_outbound_plot</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*pLkEBZAb4Xi3T8Ie2_ZEhg.png" /><figcaption>Fig. 11</figcaption></figure><p>There is a positive correlation between GDP and the number of outbound tourists, indicating that as the economy grows, more people choose to travel abroad.</p><h3>Conclusion</h3><ul><li>Tourism is one of the sectors hardest hit by the Covid-19 pandemic, which has impacted economies, livelihoods, public services, and opportunities across all continents. All links in the broad value chain were affected.</li><li>Tourism export revenues may fall from $910 billion to $1.2 trillion in 2020. This will have a broader impact and could reduce global GDP by 1.5% to 2.8%.</li><li>Tourism supports one in 10 jobs and provides a livelihood for millions of people in developing and developed economies.</li><li>In some Small Island Developing States (SIDS), tourism accounts for 80% of exports, while it also accounts for significant shares of national economies in both developed and developing countries.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed5d3e301e1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>