Registry / type-stubs / data-science-types

data-science-types

JSON →
library0.2.23pypypiunverified

Type stubs for Python machine learning libraries such as pandas, numpy, matplotlib, and scikit-learn. Current version 0.2.23, requires Python >=3.6. Low release cadence.

pip install data-science-types
INSTALL
IMPORT
SIG · DATA-SCIENCE-TYPES
D
data-science-types
type-stubspythonv0.2.23
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.23 · 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.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

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

numpy
import numpy-stubs as numpy
import numpy as np
pandas
import pandas-stubs as pandas
import pandas as pd
matplotlib
import matplotlib-stubs as matplotlib
import matplotlib as mpl

Basic usage: install package, then use pandas/numpy as usual; mypy or pyright will use stubs.

import pandas as pd import numpy as np df = pd.DataFrame({'a': [1, 2, 3]}) reveal_type(df) # mypy will infer DataFrame type
Debug
Known issues
gotchaThe package does not provide stubs for all functions and may be incomplete. It is not actively maintained; consider migrating to typeshed stubs (pandas-stubs, numpy-stubs) instead.
fix
Install individual stub packages: pip install pandas-stubs numpy-stubs
affects: all
deprecateddata-science-types is in maintenance mode with infrequent updates. Newer pandas/numpy versions may have incomplete stub coverage.
fix
Use alternative stub packages like pandas-stubs, numpy-stubs, and scikit-learn-stubs.
affects: >=0.2.23
Upgrade
Version history
0.2.23latest on PyPI · released Feb 16, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
32
Amazon
1
OpenAI (training)
1
Resources
data-science-types — pip install data-science-types · libregistry