Metadata-Version: 2.4
Name: wooldridge
Version: 0.5.0
Summary: Data sets from Introductory Econometrics: A Modern Approach (7th ed, J.M. Wooldridge)
Home-page: https://github.com/spring-haru/wooldridge
Author: Tetsu Haruyama
Author-email: tetsu.yes@gmail.com
License: LICENSE
Keywords: data,wooldridge,econometrics
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

[![PyPI version fury.io](https://badge.fury.io/py/wooldridge.svg)](https://pypi.python.org/pypi/wooldridge/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/wooldridge)](https://pypi.python.org/pypi/wooldridge/)
[![CodeQL](https://github.com/spring-haru/wooldridge/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/spring-haru/wooldridge/actions?query=workflow%codeql-analysis)

# 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で学ぶ入門計量経済学](https://py4etrics.github.io) (Japanese). Its Google-translated version (in the language of your choice) is also available in [Learning Introductory Econometrics with Python](https://translate.google.com/translate?sl=auto&tl=en&u=https://py4etrics.github.io).

It is also used in [Using Python for Introductory Econometrics](http://www.upfie.net), which is a sister book [Using R for Introductory Econometrics](http://www.urfie.net).

## 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.
