Metadata-Version: 2.1
Name: pandas-stubs
Version: 1.2.0.3
Summary: Type annotations for Pandas
Home-page: https://github.com/VirtusLab/pandas-stubs
Author: Zbigniew Królikowski
Author-email: zkrolikowski@virtuslab.com
License: MIT
Description: # Pandas Stubs
        
        Collection of pandas [stub files](https://www.python.org/dev/peps/pep-0484/#stub-files>) initially generated using [stubgen](https://github.com/python/mypy/blob/master/mypy/stubgen.py), fixed when necessary and then partially completed.
        
        |CI|PyPi version | PyPI Downloads | Conda Downloads | Python support | License
        |--|--|--|--|--|--|
        | [![VirtusLab](https://circleci.com/gh/VirtusLab/pandas-stubs.svg?style=svg)]() | [![PyPI package](https://img.shields.io/pypi/v/pandas-stubs.svg)](https://pypi.org/project/pandas-stubs) | [![PyPI download month](https://img.shields.io/pypi/dm/pandas-stubs.svg)](https://pypi.python.org/pypi/pandas-stubs/) | [![PyPI download month](https://anaconda.org/conda-forge/pandas-stubs/badges/downloads.svg)](https://anaconda.org/conda-forge/pandas-stubs)  | [![PyPI pyversions](https://img.shields.io/pypi/pyversions/pandas-stubs.svg)](https://pypi.python.org/pypi/pandas-stubs/)|[![GitHub license](https://img.shields.io/github/license/VirtusLab/pandas-stubs.svg)](https://github.com/VirtusLab/pandas-stubs/blob/master/LICENSE)
        ## Motivation
        Provide rudimentary coverage of pandas code by static type checking, to alleviate problems mentioned in the following issues [14468](https://github.com/pandas-dev/pandas/issues/14468), [26766](https://github.com/pandas-dev/pandas/issues/26766). This approach was taken to achieve accelerated development - compared to refactoring existing Pandas codebase creating stub files is relatively uninhibited. 
        
        Due to extensive pandas API, quality of the proposed annotations is, for the most part, not suitable for integration into original codebase, but they can be very useful as a way of achieving some type safety during development.
        
        ## Installation and usage
        
        The easiest way is using PyPI. This will add `.pyi` files to `pandas` package location, which will be removed when uninstalling:
        ```
        pip install pandas-stubs
        ```
        
        Another way to install is using Conda:
        
        ```
        conda install -c conda-forge pandas-stubs 
        ```
        
        Alternatively, if you want a cleaner `PYTHONPATH` or wish to modify the annotations, manual options are:
        
        * cloning the repository along with the files, or
        * including it as a submodule to your project repository,
        
        and then configuring a type checker with the correct paths.
        
        ## Version Compatibility
        
        The aim of the current release is to cover the most common parts of the 1.1.0 API, however it can provide partial functionality for other version as well. Future versions will cover new Pandas releases.
        
        ### Versioning
        
        The versions follow a pattern `MAJOR.MINOR.PATCH.STUB_VERSION` where the first three parts correspond to a specific pandas API version, while `STUB_VERSION` is used to distinguish between the versions of the stubs themselves.
        
        ## Type checkers
        
        As of now Mypy is the only type checker the stubs were tested with. 
        
        ## Testing
        
        Test the stub files internal consistency:
        
        ```
        mypy --config-file mypy.ini third_party/3/pandas
        ```
        
        Test the stub files against actual code examples (this will use the stubs from the `third_party/3/pandas` dir):
        
        ```
        mypy --config-file mypy.ini tests/snippets
        ```
        
        Test the **installed** stub files against actual code examples (this will use pandas .pyi files from your env):
        
        ```
        mypy --config-file mypy_env.ini tests/snippets
        ```
        
        # Disclaimer
        [pandas](https://pandas.pydata.org/docs/index.html) library and the pandas [logo](https://pandas.pydata.org/about/citing.html) are owned by AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team. This project is not owned, endorsed, or sponsored by any of AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team.
        
        This project provides additional functionality for pandas library. Pandas is available under it's own [license](https://github.com/pandas-dev/pandas/blob/master/LICENSE).
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Typing :: Typed
Description-Content-Type: text/markdown
