Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwwang/pdtypes
Show data types for pandas data frames in terminal and notebooks
https://github.com/pwwang/pdtypes
Last synced: 14 days ago
JSON representation
Show data types for pandas data frames in terminal and notebooks
- Host: GitHub
- URL: https://github.com/pwwang/pdtypes
- Owner: pwwang
- License: other
- Created: 2022-01-27T07:51:07.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T23:13:43.000Z (10 months ago)
- Last Synced: 2024-12-13T03:51:31.566Z (21 days ago)
- Language: Python
- Size: 846 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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