Wooldridge Meets Python
Data sets from Introductory Econometrics: A Modern Approach (7th ed, J.M. Wooldridge)
Description
A Python package which contains 115 data sets from one of the most famous econometrics textbooks for undergraduates.
It is extensively used in Pythonで学ぶ入門計量経済学 (Japanese). Its Google-translated version (in the language of your choice) is also available in Learning Introductory Econometrics with Python.
It is also used in Using Python for Introductory Econometrics, which is a sister book Using R for Introductory Econometrics.
How to Use
First things first.
import wooldridge
To load a data set named <dataset>:
wooldridge.data('<dataset>')
It returns pandas DataFrame. Note that <dataset> is entered in strings. For example, to load a data set mroz into df:
df = wooldridge.data('mroz')
To show the description (e.g. variable definitions and sources) of a data set:
wooldridge.data('mroz', description=True)
To show the list of 111 data sets contained in the package
wooldridge.data()
How to Install
pip install wooldridge
or
git clone https://github.com/spring-haru/wooldridge.git
pip install .
Note
The function dataWoo() introduced in the previous versions also works:
from wooldridge import *
df = dataWoo('<dataset>')
dataWoo('<dataset>', description=True)
dataWoo()
Reference
J.M. Wooldridge (2019) Introductory Econometrics: A Modern Approach, Cengage Learning, 7th edition.
Release files for wooldridge 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wooldridge-0.5.0.tar.gz | 5.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wooldridge-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 MB
Release files / wooldridge-0.5.0.tar.gz
| Download URL | wooldridge-0.5.0.tar.gz |
|---|---|
| Size | 5.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8875639fddc8fb1d1b93b34d5872864d8db03e1e80cade9146e6d0d5725e7b4d
|
|
BLAKE2b-256 checksum How to use checksums |
c150b5402e55b36107557e7c836673ba0956103dc1886b1cc411f53d26186655
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / wooldridge-0.5.0-py3-none-any.whl
| Download URL | wooldridge-0.5.0-py3-none-any.whl |
|---|---|
| Size | 5.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd45afcd423cfa6288f48c9e4bc4b85e0cf4baf0462ee40c56c909b6a9b03724
|
|
BLAKE2b-256 checksum How to use checksums |
687bef00b71eaae90f32032a5e4dde3ccd98b0a6698df6391b2166c5cd2ee9f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|