pandas_show
Display a long Pandas DataFrame or Series in a wide format.
Install
pip install pandas_show
from pandas_show.core import display_in_cols
How to use
Get some DataFrame that does not fit in the height of your screen, for example the list of Japan prefectures!
pip install jp_pref
from jp_pref.prefecture import df as df_jp_pref
df_jp_pref
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
| name | short_name | |
|---|---|---|
| code | ||
| 1 | 北海道 | 北海 |
| 2 | 青森県 | 青森 |
| 3 | 岩手県 | 岩手 |
| 4 | 宮城県 | 宮城 |
| 5 | 秋田県 | 秋田 |
| 6 | 山形県 | 山形 |
| 7 | 福島県 | 福島 |
| 8 | 茨城県 | 茨城 |
| 9 | 栃木県 | 栃木 |
| 10 | 群馬県 | 群馬 |
| 11 | 埼玉県 | 埼玉 |
| 12 | 千葉県 | 千葉 |
| 13 | 東京都 | 東京 |
| 14 | 神奈川県 | 神奈川 |
| 15 | 新潟県 | 新潟 |
| 16 | 富山県 | 富山 |
| 17 | 石川県 | 石川 |
| 18 | 福井県 | 福井 |
| 19 | 山梨県 | 山梨 |
| 20 | 長野県 | 長野 |
| 21 | 岐阜県 | 岐阜 |
| 22 | 静岡県 | 静岡 |
| 23 | 愛知県 | 愛知 |
| 24 | 三重県 | 三重 |
| 25 | 滋賀県 | 滋賀 |
| 26 | 京都府 | 京都 |
| 27 | 大阪府 | 大阪 |
| 28 | 兵庫県 | 兵庫 |
| 29 | 奈良県 | 奈良 |
| 30 | 和歌山県 | 和歌山 |
| 31 | 鳥取県 | 鳥取 |
| 32 | 島根県 | 島根 |
| 33 | 岡山県 | 岡山 |
| 34 | 広島県 | 広島 |
| 35 | 山口県 | 山口 |
| 36 | 徳島県 | 徳島 |
| 37 | 香川県 | 香川 |
| 38 | 愛媛県 | 愛媛 |
| 39 | 高知県 | 高知 |
| 40 | 福岡県 | 福岡 |
| 41 | 佐賀県 | 佐賀 |
| 42 | 長崎県 | 長崎 |
| 43 | 熊本県 | 熊本 |
| 44 | 大分県 | 大分 |
| 45 | 宮崎県 | 宮崎 |
| 46 | 鹿児島県 | 鹿児島 |
| 47 | 沖縄県 | 沖縄 |
Let display the dataframe in a wide format.
display_in_cols(df_jp_pref, 3)
| name | short_name | |
|---|---|---|
| code | ||
| 1 | 北海道 | 北海 |
| 2 | 青森県 | 青森 |
| 3 | 岩手県 | 岩手 |
| 4 | 宮城県 | 宮城 |
| 5 | 秋田県 | 秋田 |
| 6 | 山形県 | 山形 |
| 7 | 福島県 | 福島 |
| 8 | 茨城県 | 茨城 |
| 9 | 栃木県 | 栃木 |
| 10 | 群馬県 | 群馬 |
| 11 | 埼玉県 | 埼玉 |
| 12 | 千葉県 | 千葉 |
| 13 | 東京都 | 東京 |
| 14 | 神奈川県 | 神奈川 |
| 15 | 新潟県 | 新潟 |
| 16 | 富山県 | 富山 |
| name | short_name | |
|---|---|---|
| code | ||
| 17 | 石川県 | 石川 |
| 18 | 福井県 | 福井 |
| 19 | 山梨県 | 山梨 |
| 20 | 長野県 | 長野 |
| 21 | 岐阜県 | 岐阜 |
| 22 | 静岡県 | 静岡 |
| 23 | 愛知県 | 愛知 |
| 24 | 三重県 | 三重 |
| 25 | 滋賀県 | 滋賀 |
| 26 | 京都府 | 京都 |
| 27 | 大阪府 | 大阪 |
| 28 | 兵庫県 | 兵庫 |
| 29 | 奈良県 | 奈良 |
| 30 | 和歌山県 | 和歌山 |
| 31 | 鳥取県 | 鳥取 |
| 32 | 島根県 | 島根 |
| name | short_name | |
|---|---|---|
| code | ||
| 33 | 岡山県 | 岡山 |
| 34 | 広島県 | 広島 |
| 35 | 山口県 | 山口 |
| 36 | 徳島県 | 徳島 |
| 37 | 香川県 | 香川 |
| 38 | 愛媛県 | 愛媛 |
| 39 | 高知県 | 高知 |
| 40 | 福岡県 | 福岡 |
| 41 | 佐賀県 | 佐賀 |
| 42 | 長崎県 | 長崎 |
| 43 | 熊本県 | 熊本 |
| 44 | 大分県 | 大分 |
| 45 | 宮崎県 | 宮崎 |
| 46 | 鹿児島県 | 鹿児島 |
| 47 | 沖縄県 | 沖縄 |
Now let widely display the series of Japan prefecture names.
display_in_cols(df_jp_pref.name, 5)
| name | |
|---|---|
| code | |
| 1 | 北海道 |
| 2 | 青森県 |
| 3 | 岩手県 |
| 4 | 宮城県 |
| 5 | 秋田県 |
| 6 | 山形県 |
| 7 | 福島県 |
| 8 | 茨城県 |
| 9 | 栃木県 |
| 10 | 群馬県 |
| name | |
|---|---|
| code | |
| 11 | 埼玉県 |
| 12 | 千葉県 |
| 13 | 東京都 |
| 14 | 神奈川県 |
| 15 | 新潟県 |
| 16 | 富山県 |
| 17 | 石川県 |
| 18 | 福井県 |
| 19 | 山梨県 |
| 20 | 長野県 |
| name | |
|---|---|
| code | |
| 21 | 岐阜県 |
| 22 | 静岡県 |
| 23 | 愛知県 |
| 24 | 三重県 |
| 25 | 滋賀県 |
| 26 | 京都府 |
| 27 | 大阪府 |
| 28 | 兵庫県 |
| 29 | 奈良県 |
| 30 | 和歌山県 |
| name | |
|---|---|
| code | |
| 31 | 鳥取県 |
| 32 | 島根県 |
| 33 | 岡山県 |
| 34 | 広島県 |
| 35 | 山口県 |
| 36 | 徳島県 |
| 37 | 香川県 |
| 38 | 愛媛県 |
| 39 | 高知県 |
| 40 | 福岡県 |
| name | |
|---|---|
| code | |
| 41 | 佐賀県 |
| 42 | 長崎県 |
| 43 | 熊本県 |
| 44 | 大分県 |
| 45 | 宮崎県 |
| 46 | 鹿児島県 |
| 47 | 沖縄県 |
Metadata
Release files for pandas-show 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pandas_show-0.0.1.tar.gz | 13.1 kB | Without provenance | Details for pandas_show-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandas_show-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pandas_show-0.0.1-py3-none-any.whl |
Total release size: 21.5 kB
Release files / pandas_show-0.0.1.tar.gz
| Download URL | pandas_show-0.0.1.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f830260b5d2ad7a8492ba8e633abc0033353f644ac78b1f992d8a7d09593bba
|
|
BLAKE2b-256 checksum How to use checksums |
d6af8daa3154eff9f00e70d67405edfae1700ca3783953cdefa955b814613d9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
|
Release files / pandas_show-0.0.1-py3-none-any.whl
| Download URL | pandas_show-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2da9eda22c6df6e5c77b5f0da7110d1992f352c39d9919755c54c61c6b28ad57
|
|
BLAKE2b-256 checksum How to use checksums |
2e7bc61a994cc75cad7fdc762343c9af295297f3a0035250eb6c72167c76f2de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
|
Security for pandas-show 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.