A package for creating N-dimensional list array
Project description
dimpy package for python for creating N-dimensional list array in a user friendly manner
Install command:
pip install dimpy
Use example:
import dimpy as dp # Import package as an object dp
testarray=dp.dim(5,7,9) # This will create a 3 dimensional array consisting of 5x7x9 elements. You may give any number of inputs separated by comma.
testarray[2][3][5]= 'Hello' # Let us replace (or do anything else) just one element. All other values will be 0 by default.
print(testarray)
dp.dfv(testarray,'x') # We can change the default value by anything (e.g. 'x' here)
print(testarray)
# Below steps are optional
testarray=dp.npary(testarray) # This will change the type of the array from 'list' to 'numpy.ndarray'
testarray[1,4,3]=5 # Now work with elements in numpy style
print(testarray)
For details please follow the link https://www.respt.in/p/python-package-dimpy.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dimpy-0.0.2.tar.gz
(2.4 kB
view details)
Built Distribution
dimpy-0.0.2-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file dimpy-0.0.2.tar.gz
.
File metadata
- Download URL: dimpy-0.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f3e7bfcf2c492bac7242aecbde78851f5d8c2f11192b38ea85d218c8a8fd95c2
|
|
MD5 |
c587d8dcd97bbdbb211e2a00368c1e7b
|
|
BLAKE2b-256 |
0839c9eed429282f81b6d0db2442db27de630e9991fd71344cf32961f75c1901
|
File details
Details for the file dimpy-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: dimpy-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fa67c49c93555e56ccf4635d7abe40a5b9cfdb2ce0daac14676f019add4db5fd
|
|
MD5 |
40bae64a84798e0bf1123b7bd009a27b
|
|
BLAKE2b-256 |
98dd8547d52b527a535e3d8c8df6ebbe29e3e10ab274b273a2ae928dde0fdacd
|