Skip to content
/ Torino Public

Capstone Project - The Battle of Neighborhoods

License

Notifications You must be signed in to change notification settings

aikibo/Torino

Repository files navigation

Capstone Project - The Battle of Neighborhoods (Week 1)

Introduction & Business Problem

👀 Show code
#show the output
import matplotlib.pyplot as plt
from PIL import Image
from pylab import *

img0 = np.array(Image.open('photo-1504542982118-59308b40fe0c.jpeg'))
fig = plt.figure()
plt.imshow(img0, interpolation='bilinear')
fig.set_figwidth(8)
fig.set_figheight(10)
plt.axis('off')
plt.show()

print('Courtesy of Unsplash.')

png

The objective of this assignment:

Increase the international turism of this marvelous city and make a curious alternative to explore it. For this purpose, I created an interactive guide and I used Foursquare location data to extrapolate useful information about museums, restaurants and hotels.

Target audience:

Addressed to all those who have decided to plan a trip to Italy.

The questions are:

  1. How much you know about Turin?

  2. Have you chosen Turin as travel destination for your next holidays?

Statistics:

Looking at the statistics, Italy is the fifth most visited country in international turism in 2018. In 2017, the overall had 420.63 million visitor nights, of which 210.66 million were of foreign guests (50.08%) (source: https://en.wikipedia.org/wiki/Tourism_in_Italy). But only 1.8 million foreign visitors (out of a total of 7.0 million visitors) visited Turin. in fact, as shown in the table, it is in 13th place! And this is another little goals: try to promote Turin to a better ranking.

👀 Show code
#import all library
import numpy as np # library to handle data in a vectorized manner
import pandas as pd # library for data analsysis
#!pip install bs4
import requests #library for requests
from bs4 import BeautifulSoup
#image libraries
import matplotlib.pyplot as plt
from PIL import Image
from pylab import *
import requests

Torino_text = requests.get('https://en.wikipedia.org/wiki/Tourism_in_Italy').text
soup = BeautifulSoup(Torino_text)
table = soup.find('table',{'class':'wikitable sortable'})

#Extracting the data and cleaning data
table_rows = table.find_all('tr')

data = []
for row in table_rows:
    data.append([t.text.strip() for t in row.find_all('td')]) #clean data
    
del data[0] #delete first element of the table

column_names=['Rank','City','# of nights in 2017', '# of whom foreign visitors','Region']
df = pd.DataFrame(data, columns=column_names) #create Dataframe

df.head(15)
Rank City # of nights in 2017 # of whom foreign visitors Region
0 1 Venice 37,042,454 27,477,075 Veneto
1 2 Bolzano/Bozen 32,400,662 22,125,350 Trentino-Alto Adige/Südtirol
2 3 Rome 29,833,225 7,046,098 Lazio
3 4 Trento 17,776,030 7,412,103 Trentino-Alto Adige/Südtirol
4 5 Verona 17,293,792 13,388,082 Veneto
5 6 Rimini 15,967,490 3,808,354 Emilia-Romagna
6 7 Milan 15,468,199 9,291,198 Lombardy
7 8 Florence 14,716,466 10,780,968 Tuscany
8 9 Naples 13,161,395 7,247,964 Campania
9 10 Brescia 10,463,688 7,472,887 Lombardy
10 11 Livorno 8,663,572 3,491,172 Tuscany
11 12 Sassari 7,492,538 4,162,225 Sardinia
12 13 Turin 7,046,219 1,842,052 Piedmont
13 14 Ravenna 6,698,702 1,381,666 Emilia-Romagna
14 15 Salerno 6,029,649 2,098,781 Campania

If you are interested to visit this city, continue to read this notebook and enjoy yourself to find out more!

Here I left some useful links for you:

  1. https://www.turismotorino.org/en

  2. https://www.lonelyplanet.com/italy/liguria-piedmont-and-valle-daosta/turin

About the city:

👀 Show code
#show the output

import matplotlib.pyplot as plt
from PIL import Image
from pylab import *

img1 = np.array(Image.open('samuele-giglio-_PuPe2QmsEc-unsplash.jpg'))
fig = plt.figure()
plt.imshow(img1, interpolation='bilinear')
fig.set_figwidth(10)
fig.set_figheight(14)
plt.axis('off')
plt.show()

print('A beautiful view of Turin. Courtesy of Unsplash.')

png

A beautiful view of Turin. Courtesy of Unsplash.

Turin (/tjʊəˈrɪn, ˈtjʊərɪn/ tewr-IN, TEWR-in, Piedmontese: [tyˈriŋ] (About this soundlisten); Italian: Torino [toˈriːno](About this soundlisten); Latin: Augusta Taurinorum, then Taurinum) is a city and an important business and cultural centre in northern Italy. It is the capital city of Piedmont and of the Metropolitan City of Turin, and was the first Italian capital from 1861 to 1865. The city is located mainly on the western bank of the Po River, in front of Susa Valley, and is surrounded by the western Alpine arch and Superga Hill. The population of the city proper is 875,698 (31 December 2018) while the population of the urban area is estimated by Eurostat to be 1.7 million inhabitants. The Turin metropolitan area is estimated by the OECD to have a population of 2.2 million.

Turin is sometimes called "the cradle of Italian liberty" for having been the birthplace and home of notable individuals who contributed to the Risorgimento, such as Cavour. Even though much of its political significance and importance had been lost by World War II, Turin became a major European crossroad for industry, commerce and trade, and is part of the famous "industrial triangle" along with Milan and Genoa. Turin is ranked third in Italy, after Milan and Rome, for economic strength. With a GDP of $58 billion, Turin is the world's 78th richest city by purchasing power. As of 2018, the city has been ranked by GaWC as a Gamma World city. Turin is also home to much of the Italian automotive industry, with the headquarters of Fiat, Lancia and Alfa Romeo.

The city has a rich culture and history, being known for its numerous art galleries, restaurants, churches, palaces, opera houses, piazzas, parks, gardens, theatres, libraries, museums and other venues. Turin is well known for its Renaissance, Baroque, Rococo, Neo-classical, and Art Nouveau architecture.

In addition, the city is home to museums such as Museo Egizio, Mole Antonelliana and Museo Nazionale del Cinema. The city also hosts some of Italy's best universities, colleges, academies, lycea and gymnasia, such as the University of Turin, founded in the 15th century, and the Turin Polytechnic. Turin is well known as the home of the Shroud of Turin, the football teams Juventus F.C. and Torino F.C., and as host of the 2006 Winter Olympics (source: https://en.wikipedia.org/wiki/Turin)

About

Capstone Project - The Battle of Neighborhoods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published