# Intro to Python
This repository consists of Python material for the 2021 summer mini course at Indiana University-Bloomington.
The course expects no prior experience with python programming. *Recordings can be provided to IU econ grad students upon request.*
Instructor: Kairong Chen (Ph.D. Candidate at Department of Economics, Indiana University Bloomington)<br>
Email: krchen@iu.edu
# The course consists of 5 classes, covering 7 chapters:
- [Chapter 1: Getting Started](https://github.com/kairongchen/python_minicourse/blob/main/Chapter%201%20-%20Getting%20Started.ipynb)
starts with the python basic knowledge, including ipython, terminal commands, and Jupyter Notebook basics.
- [Chapter 1b: Getting Started to Research](https://github.com/kairongchen/python_minicourse/blob/main/Chapter%201b%20-%20Getting%20Started%20to%20Research.ipynb) introduces how an IU researcher can get access to the computing or university subscribed resources, like supercomputer and WRDS subscription. A simple "Hello World" example with job-sending code on Carbonate is provided. I also include a simple SQL request to pull data from the WRDS.
- [Chapter 2: Data Structure and Functions](https://github.com/kairongchen/python_minicourse/blob/main/Chapter%202%20-%20Data%20Structure%20and%20Functions.ipynb) introduces you the basic python built-in data structures, functions, files and operating system.
- [Chapter 3: Numpy Basics](https://github.com/kairongchen/python_minicourse/blob/main/Chapter%203%20-%20Numpy%20Basics.ipynb) deals with numpy `ndarray` (n-dim array). It contains comparisons between ndarray and built-in list, matrix operations, and linear algebra functions.
- [Chapter 4: Pandas and Data Cleaning](https://github.com/kairongchen/python_minicourse/blob/main/Chapter%204%20%E2%80%93%20Pandas%20Data%20Cleaning.ipynb) introduces the pandas DataFrame and how we can use it for data cleaning work, such like dealing with missing data, duplicates, etc.
- [Chapter 5: Pandas Data Wrangling](https://github.com/kairongchen/python_minicourse/blob/main/Chapter%205%20%E2%80%93%20Pandas%20Data%20Wrangling.ipynb) is the chapter that explains more on panel data analysis. More specifically, it includes combining and merging dataset, group operations, time series data, and plotting. At the end, I wrap all things up in a Compustat example.
- *Note that you need WRDS subscription to get access the Compustat dataset. You can find the code of pulling wrds data in the notebook. I didn't include the corresponding sample data here.*
- [Chapter 6: String Manipulation and Regular Expression](https://github.com/kairongchen/python_minicourse/blob/main/Chapter%206%20-%20String%20Manipulation%20and%20Regular%20Expression.ipynb) is a short chapter that introduces string basics, and regular expression.
- [Chapter 7: Web Scraping](https://github.com/kairongchen/python_minicourse/blob/main/Chapter%207%20-%20Web%20Scraping.ipynb) shows you some web scraping basics and tools. I use FOMC statement as the example, which is publicly available on Federal Reserve website.
没有合适的资源?快使用搜索试试~ 我知道了~
印第安纳大学布鲁明顿分校经济学研究生的Python暑期迷你课程.zip
共29个文件
png:12个
ipynb:8个
csv:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 35 浏览量
2024-03-21
11:24:50
上传
评论
收藏 2.5MB ZIP 举报
温馨提示
国外优秀项目,适合毕业设计及商业二次研发。
资源推荐
资源详情
资源评论
收起资源包目录
印第安纳大学布鲁明顿分校经济学研究生的Python暑期迷你课程.zip (29个子文件)
毕业季.bmp 2.79MB
python_minicourse-main
Chapter 5 – Pandas Data Wrangling.ipynb 342KB
intro_to_python_redproject
helloworldcode.py 305B
intro_to_python_template 433B
Chapter 6 - String Manipulation and Regular Expression.ipynb 61KB
data
pd4firm.csv 580B
tips.csv 6KB
thezenofpython.txt 856B
Chapter 1 - Getting Started.ipynb 39KB
Chapter 7 - Web Scraping.ipynb 108KB
Chapter 1b - Getting Started to Research.ipynb 11KB
Chapter 4 – Pandas Data Cleaning.ipynb 241KB
Chapter 3 - Numpy Basics.ipynb 107KB
Chapter 2 - Data Structure and Functions.ipynb 149KB
images
a151x.jpeg 84KB
indexing.png 59KB
la.png 366KB
refnotcopy.png 38KB
groupby.png 121KB
slicing.png 64KB
dt1.png 158KB
arrayslicing.png 99KB
filemode.png 148KB
dt2.png 121KB
binaryop.png 499KB
datatype.png 134KB
ufunc.png 166KB
syllabus_python_21summer_revised.pdf 168KB
README.md 3KB
共 29 条
- 1
资源评论
专家-百锦再@新空间代码工作室
- 粉丝: 9870
- 资源: 806
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功