pytranspose
=========
Transpose nested dict and list.
Usage
-----
.. code:: python
from pytranspose import transpose
# assume you have time serise data of temperature in variouse city.
#
# a[city][time] -> temperature
#
# now you want to compare temperature in different city at the same time point.
# transpose function meets this requirement.
#
# b = transpose(a, [1, 0])
# b[time][city] -> temperature
# print(a["Tokyo"][2]) -> 28
a = {"Tokyo": [27, 28, 29], "New York": [25, 24, 28]}
# print(b[1]["New York"]) -> 24
b = transpose(a)
License
-------
These codes are licensed under
`CC0 <https://creativecommons.org/publicdomain/zero/1.0/deed>`__.
=========
Transpose nested dict and list.
Usage
-----
.. code:: python
from pytranspose import transpose
# assume you have time serise data of temperature in variouse city.
#
# a[city][time] -> temperature
#
# now you want to compare temperature in different city at the same time point.
# transpose function meets this requirement.
#
# b = transpose(a, [1, 0])
# b[time][city] -> temperature
# print(a["Tokyo"][2]) -> 28
a = {"Tokyo": [27, 28, 29], "New York": [25, 24, 28]}
# print(b[1]["New York"]) -> 24
b = transpose(a)
License
-------
These codes are licensed under
`CC0 <https://creativecommons.org/publicdomain/zero/1.0/deed>`__.
Metadata
Release files for pytranspose 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytranspose-0.0.2.tar.gz | 2.5 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytranspose-0.0.2-py3.4.egg | Legacy Egg format | - | - | Details |
| pytranspose-0.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 9.1 kB
Release files / pytranspose-0.0.2.tar.gz
| Download URL | pytranspose-0.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
540c366f57cb518d48fe1e852623aa82163df0c128b4431350bd273fd8b91f5e
|
|
BLAKE2b-256 checksum How to use checksums |
87e835d8687f061da61f721dafe6e7656efec83bc416b94d1b6a28b2141c82e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pytranspose-0.0.2-py3.4.egg
| Download URL | pytranspose-0.0.2-py3.4.egg |
|---|---|
| Size | 2.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
cb1a6e4249a326a5facbe9fda0b135a662f6fef6b255d6e1df45cb8e17be9a82
|
|
BLAKE2b-256 checksum How to use checksums |
03074e421d1e72250a783fcc602e2e52896139b1ea59772d3e03df0c8aab9e64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pytranspose-0.0.2-py2.py3-none-any.whl
| Download URL | pytranspose-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
253d9ddf23f5068cb6dde6d1b558400a5a4e3eee39522d60526be3935d1d8983
|
|
BLAKE2b-256 checksum How to use checksums |
15289e1f3b292320dceb8a61448528436b09003d82cc7bfb2151e70d027700cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |