Metadata-Version: 2.4
Name: pdtypes
Version: 0.3.1
Summary: Show data types for pandas data frames in terminal and notebooks
Project-URL: Homepage, https://github.com/pwwang/pdtypes
Project-URL: Repository, https://github.com/pwwang/pdtypes
Author-email: pwwang <pwwang@pwwang.com>
License: BSD 3-Clause
License-File: LICENSE
Requires-Python: >=3.8
Requires-Dist: pandas<3,>=2.1; python_version >= '3.9' and python_version < '3.11'
Requires-Dist: pandas==2.0.*; python_version < '3.9'
Requires-Dist: pandas>=2.1; python_version >= '3.11'
Description-Content-Type: text/markdown

# pdtypes

Show data types for pandas data frames in terminal and notebooks by monkey-patching pandas formatters

| Turn this | into |
| --------- | ---- |
| ![terminal_without_pdtypes][1] | ![terminal_with_pdtypes][2] |
| ![terminal_without_pdtypes_gf][3] | ![terminal_with_pdtypes_gf][4] |
| ![notebook_without_pdtypes][5] | ![notebook_with_pdtypes][6] |
| ![notebook_without_pdtypes_gf][7] | ![notebook_with_pdtypes_gf][8] |



## Installation
```shell
pip install -U pdtypes
```

## Usage
```python
# Patching enabled by default
import pdtypes
```

To disable patching (get everything back to what it was)
```python
import pdtypes

# ...
pdtypes.unpatch()

# To patch again
pdtypes.patch()

```


[1]: docs/terminal_without_pdtypes.png
[2]: docs/terminal_with_pdtypes.png
[3]: docs/terminal_without_pdtypes_gf.png
[4]: docs/terminal_with_pdtypes_gf.png
[5]: docs/notebook_without_pdtypes.png
[6]: docs/notebook_with_pdtypes.png
[7]: docs/notebook_without_pdtypes_gf.png
[8]: docs/notebook_with_pdtypes_gf.png
