Skip to main content

The missing reshape for Python

Project description

reshape

https://img.shields.io/pypi/v/reshape.svg https://img.shields.io/travis/hvnsweeting/reshape.svg Documentation Status Updates

The missing Numpy’s reshape for Python.

Features

>>> import reshape
>>> for row in reshape.reshape(range(20), 3):
...     print(row)
...
(0, 7, 14)
(1, 8, 15)
(2, 9, 16)
(3, 10, 17)
(4, 11, 18)
(5, 12, 19)
(6, 13, None)
>>>
>>> for row in reshape.reshape("HVNfromPymiVN"):
...     print(row)
...
('H', 'o', 'i')
('V', 'm', 'V')
('N', 'P', 'N')
('f', 'y', None)
('r', 'm', None)

TODO

  • Use mypy

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2017-12-01)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reshape-0.2.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

reshape-0.2.0-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file reshape-0.2.0.tar.gz.

File metadata

  • Download URL: reshape-0.2.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for reshape-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cef4b0214cace4233e2f50f02938f02bcdff9ca8805ec8da5d514e25c957fa84
MD5 7eb611621c2a719c7d0cfdfe0719a710
BLAKE2b-256 0b687c18ae0e9b88c667bcbf906fe795b712d774f7e43ffa62899558a563b3cb

See more details on using hashes here.

File details

Details for the file reshape-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for reshape-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 03758f6c0b68d18bff5c22ff2d4e69cdfca0c815cf2732b88c95f6d44845731d
MD5 a5ed0c5e314775f6cafc87c2dcc4d3a6
BLAKE2b-256 b29c8a6a2de9970ff96b28f08bfedefa437c11e3d95262d5caaf144a3a94288c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page