python 计量经济_Python for Econometrics

New material added to the third edition on January 3, 2017

Python is a widely used general purpose programming language, which happens to be well suited to econometrics, data analysis and other more general numeric problems. These notes provide an introduction to Python for a beginning programmer. They may also be useful for an experienced Python programmer interested in using NumPy, SciPy, matplotlib and pandas for numerical and statistical analysis (if this is the case, much of the beginning can be skipped).

Third edition update:Rewritten installation section focused exclusively on using Continuum's Anaconda.

Python 3.5 is the default version of Python instead of 2.7. Python 3.5 (or newer) is well supported by the Python packages required to analyze data and perform statistical analysis, and bring some new useful features, such as a new operator for matrix multiplication (@).

Removed distinction between integers and longs in built-in data types chapter. This distinction is only relevant for Python 2.7.

dot has been removed from most examples and replaced with @ to produce more readable code.

Split Cython and Numba into separate chapters to highlight the improved capabilities of Numba.

Verified all code working on current versions of core libraries using Python 3.5.

pandasUpdated syntax of pandas functions such as resample.

Added pandas Categorical.

Expanded coverage of pandas groupby.

Expanded coverage of date and time data types and functions.

New chapter introducing statsmodels, a package that facilitates statistical analysis of data. statsmodels includes regression analysis, Generalized Linear Models (GLM) and time-series analysis using ARIMA models.

Second edition update:Improved Cython and Numba sections

Added sections discussing interfacing with C code

Added sections to the chapter on running code in Parallel covering IPython's cluster server and joblib

Further improvements in the installation based on feedback from the

Updated Anaconda to 1.9

Added information about using Spyder as an initial IDE.

Added packages for Spyder to the installation instructions.

New in second edition:The preferred installation method is now Continuum Analytics' Anaconda. Anaconda is a complete scientific stack and is available for all major platforms.

New chapter on pandas. pandas provides a simple but powerful tool to manage data and perform basic analysis. It also greatly simplifies importing and exporting data.

New chapter on advanced selection of elements from an array.

Numba provides just-in-time compilation for numeric Python code which often produces large performance gains when pure NumPy solutions are not available (e.g. looping code).

Addition to performance section covering line_profiler for profiling code.

Dictionary, set and tuple comprehensions.

Numerous typos fixed.

All code has been verified working against Anaconda 1.7.0.NotesCode

This is the code directly from the notes. It has been directly stripped from the master document, and allows for simple copy-and-paste execution.

These solutions files contain answer to the exercises at the end of the chapters. They are formatted for IPython's Demo module, and instructions for use are located in the docstring.

This file allows a particular Python installation to become the default by changing registry. It is useful for virtual environments and allows binary installers to be used with any location.IPython NotebooksDataVideo DemonstrationsSetupIPythonPython 爬虫分析2019年杭州国庆工作坊 & 课题申报高级研修

IPython Notebook

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值