Metadata-Version: 2.4
Name: daupy
Version: 1.0.0
Summary: Datasets for the textbook 'Data Analysis Using Python: Theory and Practice'
Author-email: Mohammad Shahidul Islam <shahed.stat@gmail.com>
Maintainer-email: Mohammad Shahidul Islam <shahed.stat@gmail.com>
License: CC-BY-4.0
Keywords: statistics,sampling,data-analysis,datasets,education,teaching,textbook
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Education
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: pandas>=1.3

# daupy

Datasets for the book **Data Analysis Using Python: Theory and Practice** by Professor
Dr. Mohammad Shahidul Islam. It is the Python edition of *Sampling and Data
Analysis Using R*.

`daupy` is the Python companion to the R package `dauR`. It ships the same
curated datasets used throughout the book so that every worked example is fully
reproducible.

## Installation

```bash
pip install daupy
```

## Usage

```python
import daupy

# What is available?
daupy.list_datasets()

# Load a dataset as a pandas DataFrame
case_study = daupy.load_dataset("case_study")
case_study.head()

# Read the documentation for a dataset
daupy.describe("Health")
```

## Datasets

| Name            | Rows | Purpose |
|-----------------|------|---------|
| `case_study`    | 30   | Descriptive analysis (library survey) |
| `Health`        | 80   | Descriptive analysis / estimation (factory labourers) |
| `likert_data`   | 15   | Ordinal / Likert-scale data |
| `reading`       | 200  | Mediation, moderation, confounding |
| `smoke_class`   | 198  | Contingency tables, test of association |
| `twoway`        | 60   | Two-way ANOVA |
| `weight1`       | 16   | Paired comparison (before) |
| `weight2`       | 16   | Paired comparison (after) |
| `students_data` | 20   | PCA and factor analysis |
| `eng_data`      | 223  | Survival analysis |

## License

Datasets are released under CC BY 4.0, matching the original `dauR` package.

## Citation

If you use these datasets in published work, please cite the book:

> Islam, M. S. (2026). *Data Analysis Using Python: Theory and Practice*.

## License

The datasets are released under CC-BY-4.0. You may share and adapt them,
including commercially, provided you give appropriate credit.
