{"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":[{"wrong":"import numpy as np","symbol":"numpy","correct":"import numpy-stubs as numpy"},{"wrong":"import pandas as pd","symbol":"pandas","correct":"import pandas-stubs as pandas"},{"wrong":"import matplotlib as mpl","symbol":"matplotlib","correct":"import matplotlib-stubs as matplotlib"}],"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,"search_vec":"'0.2.23':23 '3.6':26 'cadenc':29 'current':21 'data':2 'data-science-typ':1 'learn':10,20,37 'librari':11 'low':27 'machin':9 'matplotlib':16,38 'mypi':39 'numpi':15,34 'panda':14,33 'pyright':40 'python':8,25 'releas':28 'requir':24 'scienc':3 'scikit':19,36 'scikit-learn':18,35 'stub':6,32 'type':4,5,31 'type-stub':30 'version':22","created_at":"2026-05-01T08:08:08.199785+00:00","updated_at":"2026-05-01T08:08:08.199785+00:00","problems":{"verify_error":"File \"<string>\", line 1\n    import numpy-stubs as numpy\n                ^\nSyntaxError: invalid syntax"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.2.23","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/predictive-analytics-lab/data-science-types","docs":null,"changelog":null,"pypi":"https://pypi.org/project/data-science-types/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","data","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}