Registry / data / datazets

datazets

JSON →
library1.1.3pypypi✓ verified 87d ago

Datazets is a Python package designed to easily import a collection of well-known example data sets, often used for machine learning, data analysis, and educational purposes. It provides a simple API to access these datasets without needing to manually download or preprocess them. The current version is 1.1.3, released on June 21, 2025, and it appears to have an active release cadence.

pip install datazets
INSTALL
IMPORT
SIG · DATAZETS
D
datazets
datapythonv1.1.3
Install
8.1s avg
Import
1428ms
Disk
168MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 1.467s · 168.3MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 8.1s · import 1.389s · 161MB
168MB installed
● package 168MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

datazets
import datazets as dz

This quickstart demonstrates how to import the `datazets` library and load the 'titanic' dataset into a pandas DataFrame using the `get()` function.

import datazets as dz # Load a well-known dataset, e.g., 'titanic' df = dz.get('titanic') print(f"Dataset 'titanic' loaded with shape: {df.shape}") print(df.head())
Debug
Known issues
gotchaDatazets provides raw example datasets, which may contain missing values, inconsistent formats, or require additional preprocessing steps (e.g., handling categorical variables, scaling numerical features) before being suitable for machine learning models or advanced analysis. Users should not assume the data is 'production-ready' out-of-the-box.
fix
Always inspect the loaded dataset for quality issues using methods like `df.info()`, `df.isnull().sum()`, `df.describe()`, and apply appropriate data cleaning and preprocessing techniques (e.g., using pandas, scikit-learn).
affects: All versions
gotchaThe `dz.get()` function requires an exact string name for the desired dataset. If an incorrect or non-existent dataset name is provided, the function will raise an error. The library does not provide a built-in method to list all available dataset names directly via its API, requiring users to consult documentation or the source code for a comprehensive list.
fix
Refer to the official Datazets GitHub repository or documentation for a list of available dataset names (e.g., 'titanic', 'iris', 'boston'). Ensure the dataset name string is spelled correctly and matches one of the supported identifiers.
affects: All versions
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'datazets'
The 'datazets' package is not installed in the current Python environment.
fix
Run `pip install datazets` to install the library.
ValueError: Selected data is not found!
The dataset name provided to `dz.get()` does not correspond to an available dataset within the library.
fix
Check the spelling of the dataset name. Consult the `datazets` documentation or GitHub README for a list of valid dataset names (e.g., `dz.get('titanic')`, not `dz.get('tianic')`).
Upgrade
Version history
1.1.3latest on PyPI · released Jun 21, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
1
Resources
datazets — pip install datazets · libregistry