{"id":23506,"library":"data-science-types","title":"data-science-types","description":"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.","status":"maintenance","version":"0.2.23","language":"python","source_language":"en","source_url":"https://github.com/predictive-analytics-lab/data-science-types","tags":["type-stubs","pandas","numpy","scikit-learn","matplotlib","mypy","pyright"],"install":[{"cmd":"pip install data-science-types","lang":"bash","label":"Install with pip"}],"dependencies":[],"imports":[{"note":"Type stubs are automatically used by mypy/pyright when installed, no special import needed.","symbol":"numpy","correct":"import numpy as np"},{"note":"Same as numpy; stubs are activated by package presence.","symbol":"pandas","correct":"import pandas as pd"}],"quickstart":{"code":"import pandas as pd\nimport numpy as np\n\ndf = pd.DataFrame({'a': [1, 2, 3]})\nreveal_type(df)  # mypy will infer DataFrame type\n","lang":"python","description":"Basic usage: install package, then use pandas/numpy as usual; mypy or pyright will use stubs."},"warnings":[{"fix":"Install individual stub packages: pip install pandas-stubs numpy-stubs","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Use alternative stub packages like pandas-stubs, numpy-stubs, and scikit-learn-stubs.","message":"data-science-types is in maintenance mode with infrequent updates. Newer pandas/numpy versions may have incomplete stub coverage.","severity":"deprecated","affected_versions":">=0.2.23"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run pip install data-science-types and ensure your mypy configuration includes packages.","cause":"Mypy cannot locate stub files; data-science-types may not be installed or is not being recognized.","error":"Cannot find implementation or library stub for module 'pandas'"},{"fix":"Use pandas-stubs for more complete coverage, or add inline type hints with # type: ignore.","cause":"Stub coverage incomplete; data-science-types does not define all methods.","error":"Missing type hints for pandas.DataFrame.groupby"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}