-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask4a.py
37 lines (30 loc) · 1014 Bytes
/
task4a.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
"""Task4A.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1VPN0ugYaMMrFsi8SPYUFhq2kAmAlIUA0
Task 4A - 7 favori şehrin dataFrame tablosu oluşturulması.
"""
import pandas as pd
import numpy as np
population = {'Eskişehir': 898369,
'İzmir': 4425789,
'İstanbul': 15840900,
'Muğla': 1021141,
'Antalya': 2619832 ,
'Balıkesir': 1250610 ,
'Bursa' : 3147818 }
population = pd.Series(population)
population
area = {'Eskişehir': 13960,
'İzmir': 11891,
'İstanbul': 5461,
'Muğla': 12654,
'Antalya': 20177 ,
'Balıkesir': 14583 ,
'Bursa' : 10813 }
area = pd.Series(area)
area
sehirler = pd.DataFrame({'population': population,
'area(km2)': area})
sehirler