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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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