Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
added old bkm data
Browse files Browse the repository at this point in the history
  • Loading branch information
BelitK committed Dec 19, 2020
1 parent 7a61b46 commit 9c9f43f
Show file tree
Hide file tree
Showing 12 changed files with 2,500 additions and 21 deletions.
Binary file modified Figure_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hatalıkarsi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ISOC_EC_EVALN2$DEFAULTVIEW1608214139986.xlsx
Binary file not shown.
26 changes: 20 additions & 6 deletions Plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,24 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"ename": "RuntimeError",
"evalue": "The current Numpy installation ('C:\\\\Users\\\\BlkMrkT\\\\AppData\\\\Roaming\\\\Python\\\\Python38\\\\site-packages\\\\numpy\\\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86",
"output_type": "error",
"traceback": [
"\u001B[1;31m---------------------------------------------------------------------------\u001B[0m",
"\u001B[1;31mRuntimeError\u001B[0m Traceback (most recent call last)",
"\u001B[1;32m<ipython-input-1-76ff601a6a6d>\u001B[0m in \u001B[0;36m<module>\u001B[1;34m\u001B[0m\n\u001B[1;32m----> 1\u001B[1;33m \u001B[1;32mimport\u001B[0m \u001B[0mpandas\u001B[0m \u001B[1;32mas\u001B[0m \u001B[0mpd\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0m\u001B[0;32m 2\u001B[0m \u001B[1;32mimport\u001B[0m \u001B[0mmatplotlib\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0;32m 3\u001B[0m \u001B[1;32mimport\u001B[0m \u001B[0mmatplotlib\u001B[0m\u001B[1;33m.\u001B[0m\u001B[0mpyplot\u001B[0m \u001B[1;32mas\u001B[0m \u001B[0mplt\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0;32m 4\u001B[0m \u001B[1;32mimport\u001B[0m \u001B[0mseaborn\u001B[0m \u001B[1;32mas\u001B[0m \u001B[0msns\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n",
"\u001B[1;32m~\\AppData\\Roaming\\Python\\Python38\\site-packages\\pandas\\__init__.py\u001B[0m in \u001B[0;36m<module>\u001B[1;34m\u001B[0m\n\u001B[0;32m 9\u001B[0m \u001B[1;32mfor\u001B[0m \u001B[0mdependency\u001B[0m \u001B[1;32min\u001B[0m \u001B[0mhard_dependencies\u001B[0m\u001B[1;33m:\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0;32m 10\u001B[0m \u001B[1;32mtry\u001B[0m\u001B[1;33m:\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[1;32m---> 11\u001B[1;33m \u001B[0m__import__\u001B[0m\u001B[1;33m(\u001B[0m\u001B[0mdependency\u001B[0m\u001B[1;33m)\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0m\u001B[0;32m 12\u001B[0m \u001B[1;32mexcept\u001B[0m \u001B[0mImportError\u001B[0m \u001B[1;32mas\u001B[0m \u001B[0me\u001B[0m\u001B[1;33m:\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0;32m 13\u001B[0m \u001B[0mmissing_dependencies\u001B[0m\u001B[1;33m.\u001B[0m\u001B[0mappend\u001B[0m\u001B[1;33m(\u001B[0m\u001B[1;34mf\"{dependency}: {e}\"\u001B[0m\u001B[1;33m)\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n",
"\u001B[1;32m~\\AppData\\Roaming\\Python\\Python38\\site-packages\\numpy\\__init__.py\u001B[0m in \u001B[0;36m<module>\u001B[1;34m\u001B[0m\n\u001B[0;32m 303\u001B[0m \u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0;32m 304\u001B[0m \u001B[1;32mif\u001B[0m \u001B[0msys\u001B[0m\u001B[1;33m.\u001B[0m\u001B[0mplatform\u001B[0m \u001B[1;33m==\u001B[0m \u001B[1;34m\"win32\"\u001B[0m \u001B[1;32mand\u001B[0m \u001B[0msys\u001B[0m\u001B[1;33m.\u001B[0m\u001B[0mmaxsize\u001B[0m \u001B[1;33m>\u001B[0m \u001B[1;36m2\u001B[0m\u001B[1;33m**\u001B[0m\u001B[1;36m32\u001B[0m\u001B[1;33m:\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[1;32m--> 305\u001B[1;33m \u001B[0m_win_os_check\u001B[0m\u001B[1;33m(\u001B[0m\u001B[1;33m)\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0m\u001B[0;32m 306\u001B[0m \u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0;32m 307\u001B[0m \u001B[1;32mdel\u001B[0m \u001B[0m_win_os_check\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n",
"\u001B[1;32m~\\AppData\\Roaming\\Python\\Python38\\site-packages\\numpy\\__init__.py\u001B[0m in \u001B[0;36m_win_os_check\u001B[1;34m()\u001B[0m\n\u001B[0;32m 300\u001B[0m \u001B[1;34m\"See this issue for more information: \"\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0;32m 301\u001B[0m \"https://tinyurl.com/y3dm3h86\")\n\u001B[1;32m--> 302\u001B[1;33m \u001B[1;32mraise\u001B[0m \u001B[0mRuntimeError\u001B[0m\u001B[1;33m(\u001B[0m\u001B[0mmsg\u001B[0m\u001B[1;33m.\u001B[0m\u001B[0mformat\u001B[0m\u001B[1;33m(\u001B[0m\u001B[0m__file__\u001B[0m\u001B[1;33m)\u001B[0m\u001B[1;33m)\u001B[0m \u001B[1;32mfrom\u001B[0m \u001B[1;32mNone\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0m\u001B[0;32m 303\u001B[0m \u001B[1;33m\u001B[0m\u001B[0m\n\u001B[0;32m 304\u001B[0m \u001B[1;32mif\u001B[0m \u001B[0msys\u001B[0m\u001B[1;33m.\u001B[0m\u001B[0mplatform\u001B[0m \u001B[1;33m==\u001B[0m \u001B[1;34m\"win32\"\u001B[0m \u001B[1;32mand\u001B[0m \u001B[0msys\u001B[0m\u001B[1;33m.\u001B[0m\u001B[0mmaxsize\u001B[0m \u001B[1;33m>\u001B[0m \u001B[1;36m2\u001B[0m\u001B[1;33m**\u001B[0m\u001B[1;36m32\u001B[0m\u001B[1;33m:\u001B[0m\u001B[1;33m\u001B[0m\u001B[1;33m\u001B[0m\u001B[0m\n",
"\u001B[1;31mRuntimeError\u001B[0m: The current Numpy installation ('C:\\\\Users\\\\BlkMrkT\\\\AppData\\\\Roaming\\\\Python\\\\Python38\\\\site-packages\\\\numpy\\\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86"
]
}
],
"source": [
"import pandas as pd\n",
"import matplotlib\n",
Expand Down Expand Up @@ -194,8 +209,7 @@
"total_2019=0\n",
"for price2 in turkey_2019:\n",
" total_2019 += price2\n",
"df = pd.DataFrame([[total_2018,2018],[total_2019,2019]],columns=list(\"AB\"))\n",
"df"
"df = pd.DataFrame([[total_2018,2018],[total_2019,2019]],columns=list(\"AB\"))"
]
},
{
Expand Down Expand Up @@ -1104,9 +1118,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
"version": "3.8.2"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
}
Binary file added ProjeTaslak (1).docx
Binary file not shown.
Binary file modified ProjeTaslak.docx
Binary file not shown.
19 changes: 19 additions & 0 deletions kaynaklar/linkstoresearch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
https://data.worldbank.org/country/turkey
https://www.kaggle.com/huseyinkilic/turkeys-mobile-banking-user-commentary-analysis
----------------------------------------
https://bkm.com.tr/en/e-commerce-transactions/(turkey)
https://bkm.com.tr/en/secilen-aya-ait-sektorel-gelisim/?filter_year=2020&filter_month=1&List=List
-----------------------------------------------
https://github.com/Glorf/recipenlg
----------------------------
https://fred.stlouisfed.org/tags/series?t=e-commerce(usa)

------------------------
https://ec.europa.eu/eurostat/statistics-explained/index.php?title=E-commerce_statistics(europe)
----------------------------------

http://blog.sanalmimarlar.com/tag/e-ticaret-hacmi/
https://www.digitaltalks.org/2020/09/13/bkm-2020-yili-agustos-ayi-verilerini-acikladi/ (makale icin)

https://www.researchgate.net/publication/327348324_Turkiye%27de_E-Ticaret_Sektorunun_Yillara_Gore_Gelisimi

286 changes: 286 additions & 0 deletions newtest.ipynb

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions plots.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
import plotly.graph_objects as go

# american ecommerce data
dataset_A = pd.read_excel("ecomretailfixed.xls")
dataset_turkey = pd.read_excel("TurkeyData.xlsx")

date_A = dataset_A["observation_date"]
ecomsa_A = dataset_A["ECOMSA"]
to_tl = []
for price in ecomsa_A:
to_tl.append(price * 7.84)

# Türkiye ecommerse data
date_E = dataset_turkey["observation_date"]
ecomsa_E = dataset_turkey["ECOMSA"]


plt.style.use('seaborn-darkgrid')
#plt.plot(date_A,to_tl,label="Amerika",marker=3)
plt.plot(date_A,ecomsa_A,label="Amerika",marker=3)
plt.plot(date_E,ecomsa_E,label="Türkiye",marker=2)

plt.title("Türkiye ve Amerika E-Ticaret Piyasa Hacmi Karşılaştırması (TRY)")
plt.xlabel("Tarihler")
plt.ylabel("Milyar (TRY)")

plt.legend()
plt.show()
#plt.savefig('Matplotlib_save_plot.png')

turkey_2018 = dataset_turkey["ECOMSA"][28:32]
total_2018=0
for price in turkey_2018:
total_2018 += price


turkey_2019 = dataset_turkey["ECOMSA"][32:36]
total_2019=0
for price2 in turkey_2019:
total_2019 += price2
df = pd.DataFrame([[total_2018,2018],[total_2019,2019]],columns=list("AB"))




labels = df["B"]
values = df["A"]


fig = go.Figure(data=[go.Pie(labels=labels, values=values,title="Türkiye 2018-2019 E-Ticaret Hacmi\b", textinfo='label+percent',
insidetextorientation='radial'
)])
fig.show()


15 changes: 0 additions & 15 deletions tensortest.py

This file was deleted.

1 change: 1 addition & 0 deletions test.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# europe ecommerse data
date_E = dataset_turkey["observation_date"]
ecomsa_E = dataset_turkey["ECOMSA"]
print(ecomsa_E)

plt.plot(date_A,to_tl)
plt.plot(date_E,ecomsa_E)
Expand Down
Loading

0 comments on commit 9c9f43f

Please sign in to comment.