Skip to main content

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


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

Uploaded Source

Built Distribution

dimpy-0.0.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded 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