Home / Programmes / Economics / ECON152
COURSE INFORMATION PACKAGE · ECON152

Data Science with Python

Compulsory · Turkish
ECTS
4
Local Credit
3
Theory + Practice + Lab
0 + 0 + 3
Course Level
Bachelor Degree
Prerequisites
ECON151
Semester
2

Content

Objective

The aim of this course is to teach students how to apply economic data analysis processes in a hands-on manner through the Python programming language. Within the scope of the course, students will acquire skills to programmatically retrieve data from the data sources of national and international institutions such as TURKSTAT, CBRT, BRSA, OECD, the World Bank, and Eurostat; to clean, transform, and prepare raw data for analysis.

Students in this course will not only learn data processing techniques but will also gain practical experience in converting nominal economic variables (GDP, wages, expenditure groups, etc.) into real values using price indices (CPI/PPI), converting economic time series into index series based on a selected base year (=100), and decomposing changes in nominal magnitudes into price effects and real effects.

In this context, the course aims to combine theoretical economic knowledge with Python-based data processing and visualization tools in order to develop students' data literacy, analytical thinking, reproducible research production, and data-driven evaluation of economic policies at an advanced level. At the end of the course, students will be able to prepare dynamic reports that integrate code, analysis, and interpretation, and design independent data science projects addressing real-world economic problems.

Course Content

The course begins with the setup of the Python data science ecosystem and the Jupyter Notebook/Quarto environment. It then covers data import with pandas, basic data structures, data transformation, manipulation, and cleaning operations. Economics-specific data processing skills such as converting economic time series into real values, indexing, and nominal/real decomposition are emphasized. Exploratory data analysis and advanced visualization techniques using Matplotlib/Seaborn/Plotly are taught. Throughout the semester, data is retrieved via APIs from national and international institutions such as TURKSTAT, CBRT, and the World Bank, and applied analyses are conducted through three different case studies (Price Indices, Provincial Monthly Foreign Trade, Electricity Consumption).

Course Learning Outcomes

Upon successful completion of this course, the student will be able to:

- Set up and configure Python-based data science development environments (Jupyter Notebook/Lab, conda/pip, virtual environments).
- Programmatically retrieve data from the data portals and APIs of national/international institutions such as TURKSTAT, CBRT, BRSA, OECD, the World Bank, and Eurostat.
- Import economic data in various formats such as CSV, Excel, JSON, and SQL into \texttt{pandas} data frames, convert them into time series format, and perform period alignment.
- Convert nominal economic variables (e.g., GDP, wages) into real values using appropriate price indices (CPI/PPI) and produce series adjusted for inflationary effects.
- Convert economic time series into index values based on a selected base year (=100); align different series (e.g., production and price indices) to the same base year to make them comparable.
- Decompose changes in nominal magnitudes (e.g., National Income, exports) into price effect and volume (real) effect; construct contribution analyses of these components using Python.
- Prepare economic datasets for analysis by applying filtering, grouping, merging, and reshaping operations with \texttt{pandas}.
- Perform descriptive statistics, distribution analysis, correlation, and structural break detection using exploratory data analysis techniques.
- Create publication-quality, multidimensional, and interactive economic visualizations (time series plots, scatter matrices, component contribution charts) using Matplotlib, Seaborn, and Plotly.
- Prepare reproducible, dynamic policy notes and research reports that integrate code, analysis, and economic interpretation through Jupyter Notebook and Markdown.

Teaching and Learning Methods

- Computer-assisted applied instruction: live coding, data retrieval, cleaning, and visualization with Jupyter Notebook/Lab.
- Conceptual discussion and intuitive learning: blending economic theory with Python-based data processing and visualization tools.
- Case analysis on real-world economic datasets: TURKSTAT, CBRT, OECD, World Bank, Eurostat, etc.
- Short, application-oriented learning activities with instant feedback; students may use AI during coding but must be able to explain and defend every step used.
- Reproducible research production: preparing dynamic policy notes and reports with Jupyter and Markdown integration.

References

1. Hathaway, J., & Larson, K. (2025). Py for Data Science. Open-access, foundational resource for data science with Python.
https://byuidatascience.github.io/python4ds/
2. VanderPlas, J. (2016). Python Data Science Handbook. O’Reilly Media. Comprehensive reference for the Python data science ecosystem.
https://jakevdp.github.io/PythonDataScienceHandbook/
3. Some datasets you may find useful:
• World Bank Open Data (Development indicators):
https://data.worldbank.org
• OECD Data Explorer: https://www.oecd.org/en/data.html
• Eurostat (European Union statistics):
https://ec.europa.eu/eurostat/web/main/data/database
• Penn World Table (PWT):
https://www.rug.nl/ggdc/productivity/pwt
• Turkish Statistical Institute (TURKSTAT):
https://www.tuik.gov.tr
• Central Bank of the Republic of Türkiye (CBRT EVDS):
https://evds3.tcmb.gov.tr/anasayfa
• T.R. Presidency Strategy and Budget Office (Economic and Social Indicators):
https://www.sbb.gov.tr/ekonomik-ve-sosyal-gostergeler

Weekly Contents

Theory Topics
Week Weekly Contents
1 Introduction to Data Science and Setting Up the Python Environment
2 Data Input-Output and Basic Data Structures
3 Data Transformation and Manipulation
4 Data Cleaning and Merging
5 Exploratory Data Analysis
6 Midterm
7 Fundamentals of Data Visualization
8 Advanced Visualization and Exploratory Graphics
9 Data Collection from National and International Institutions
10 Case Study 1: Price Indices
11 Case Study 2: Provincial Monthly Foreign Trade
12 Case Study 3: Electricity Consumption in Türkiye
13 PROJECT PRESENTATIONS I
14 PROJECT PRESENTATIONS II
Practice Topics
Week Weekly Contents
1 Introduction to Data Science and Setting Up the Python Environment
2 Data Import and Basic Data Structures
3 Data Transformation and Manipulation
4 Data Cleaning and Merging
5 Exploratory Data Analysis
7 Fundamentals of Data Visualization
8 Advanced Visualization and Exploratory Graphics
9 Data Collection from National and International Institutions
10 Case Study 1: Price Indices
11 Case Study 2: Provincial Monthly Foreign Trade
12 Case Study 3: Electricity Consumption in Türkiye

Assessment System

Contribution to Overall Grade
Activities Number Contribution
Contribution of in-term studies to overall grade 40 60
Contribution of final exam to overall grade 0 0
Total 40 60
In-Term Studies
Activities Number Contribution
Assignments 0 0
Presentation 1 20
Midterm Examinations (including preparation) 0 0
Project 0 0
Laboratory 0 0
Other Applications 0 0
Quiz 0 0
Term Paper/ Project 0 0
Portfolio Study 0 0
Reports 1 20
Learning Diary 0 0
Thesis/ Project 0 0
Seminar 0 0
Other 0 0
Make-up 0 0
Total 2 40

Relation of Proficiency

No Program Learning Outcomes Contribution
1 2 3 4 5
1 Demonstrate a basic knowledge of different economic theories and main discussions driving current theoretical approaches X
2 Demonstrate ability to use basic qualitative and quantitative methods to asses different economic questions of applied fields X
3 Show a sound understanding of current economic discussions and problems X
4 Have an effective and clear communication in written and oral formats in different public and professional contexts. X
7 Demonstrate knowledge of standard quantitative techniques and empirical models used in economics X
8 Show ability to apply basic economic theory to an applied topic X
9 Show a basic understanding of analytical methods, both theory- and model-based X
10 Show ability to use economic concepts to discuss current economic issues X
11 Reason logically and work analytically X
12 Show awareness on social aspects of the economics in different applied and theoretical fields
13 Identify appropriate economic models to analyse problems X
16 Show understanding of basic statistical and econometric concepts and ability to apply basic concepts to own empirical work X
17 Demonstrate a sound knowledge of the current economic issues in Turkey and a general knowledge of the issues in the world economy X

ECTS

Activities Number Period Total Workload
Class Hours 14 3 42
Working Hours out of Class 10 2 20
Assignments 0 0 0
Presentation 2 3 6
Midterm Examinations (including preparation) 0 0 0
Project 1 10 10
Laboratory 0 0 0
Other Applications 0 0 0
Final Examinations (including preparation) 0 0 0
Quiz 0 0 0
Term Paper/ Project 1 24 24
Portfolio Study 0 0 0
Reports 0 0 0
Learning Diary 0 0 0
Thesis/ Project 0 0 0
Seminar 0 0 0
Other 0 0 0
Make-up 0 0 0
Yıl Sonu 0 0 0
Hazırlık Yıl Sonu 0 0 0
Hazırlık Bütünleme 0 0 0
Total Workload 102
Total Workload / 25 4.08
Credits ECTS 4