>>> arr = numpy.array(((2,2),(2,-2)))
>>> tuple(map(tuple, arr))
((2, 2), (2, -2))
More Related Contents:
- How can I implement for loop in Python?
- ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
- Python: Justifying NumPy array
- How to find the exact intersection of a curve (as np.array) with y==0?
- How to access the ith column of a NumPy multidimensional array?
- Concatenating two one-dimensional NumPy arrays
- numpy np.apply_along_axis function speed up?
- What is the difference between i = i + 1 and i += 1 in a ‘for’ loop? [duplicate]
- Matplotlib yaxis range display using absolute values rather than offset values?
- Resampling a numpy array representing an image
- Python insert numpy array into sqlite3 database
- RuntimeError: module compiled against API version a but this version of numpy is 9
- Faster alternatives to numpy.argmax/argmin which is slow
- fitting data with numpy
- Iterating over Numpy matrix rows to apply a function each?
- Find symmetric pairs quickly in numpy
- Numpy: views vs copy by slicing
- Fitting a closed curve to a set of points
- Generating movie from python without saving individual frames to files
- How to change array shapes in in numpy?
- Fastest way to compute entropy in Python
- Swapping columns in a numpy array?
- Compute a confidence interval from sample data assuming unknown distribution
- 3-dimensional array in numpy
- What is the most efficient way to check if a value exists in a NumPy array?
- ImportError: DLL load failed when importing Numpy installed in conda virtual environment
- NumPy – What is the difference between frombuffer and fromstring?
- Fast Way to slice image into overlapping patches and merge patches to image
- How to smooth a curve for a dataset
- Numpy equivalent of itertools.product [duplicate]