It sounds like you have three arrays itemNameList
, array_x
, and array_y
Assuming they are all the same shape, you can just do:
zipped = zip(itemNameList,array_x,array_y) li_result = list(zipped)
EDIT
Your problem is that array_x
and array_y
are not actual numpy.array
objects, but likely numpy.int32
(or some other non-iterable) objects:
array_x = np.int32(np.zeros(None)) array_x.shape # () array_x.__iter__ # AttributeError: 'numpy.int32' object has no attribute '__iter__'
Perhaps their initialization is not going as expected, or they are being changed from arrays somewhere in your code?
Related Posts:
- IndexError: index 2 is out of bounds for axis 0 with size 2
- numpy/scipy/ipython:Failed to interpret file as a pickle
- ImportError: DLL load failed: The specified module could not be found
- ImportError: DLL load failed: The specified module could not be found
- Import Error: No module named numpy
- How do I read CSV data into a record array in NumPy?
- How do I read CSV data into a record array in NumPy?
- Plotting a 2D heatmap with Matplotlib
- Factorial in numpy and scipy
- Unable to plot Double Bar, Bar plot using pyplot for ndarray
- TypeError: cannot unpack non-iterable int objec
- How to raise a numpy array to a power? (corresponding to repeated matrix multiplications, not elementwise)
- A tool to convert MATLAB code to Python
- TypeError: ‘DataFrame’ object is not callable
- Overflow Error in Python’s numpy.exp function
- Overcome ValueError for empty array
- Overflow Error in Python’s numpy.exp function
- Moving average or running mean
- ValueError: x and y must be the same size
- TypeError: Invalid dimensions for image data when plotting array with imshow()
- Linear regression with matplotlib / numpy
- Moving average or running mean
- Official abbreviation for: import scipy as sp/sc
- Matplotlib: TypeError: can’t multiply sequence by non-int of type ‘numpy.float64’
- How to plot an array in python?
- ImportError in importing from sklearn: cannot import name check_build
- How to add a new row to an empty numpy array
- Root mean square of a function in python
- Compute a confidence interval from sample data
- ImportError: cannot import name NUMPY_MKL
- How to normalize a NumPy array to within a certain range?
- Numpy Resize/Rescale Image
- Sorting arrays in NumPy by column
- Purpose of “%matplotlib inline”
- numpy max vs amax vs maximum
- What is the purpose of meshgrid in Python / NumPy?
- why numpy.ndarray is object is not callable in my simple for python loop
- numpy division with RuntimeWarning: invalid value encountered in double_scalars
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- How do I create an empty array/matrix in NumPy?
- Most efficient way to find mode in numpy array
- numpy matrix vector multiplication
- Save plot to image file instead of displaying it using Matplotlib
- ImportError: numpy.core.multiarray failed to import
- How can I plot a confusion matrix? [duplicate]
- ImportError: numpy.core.multiarray failed to import
- numpy array concatenate: “ValueError: all the input arrays must have same number of dimensions”
- ‘DataFrame’ object has no attribute ‘sort’
- Matplotlib automatic legend outside plot
- convert nan value to zero
- Most efficient way to map function over numpy array
- Is there a NumPy function to return the first index of something in an array?
- Numpy/Python Array Value error
- Changing the “tick frequency” on x or y axis in matplotlib?
- matplotlib error – no module named tkinter
- Plot pie chart and table of pandas dataframe
- ModuleNotFoundError: No module named ‘matplotlib’
- LinAlgError: Last 2 dimensions of the array must be square
- What does axis in pandas mean?
- How to add title to subplots in Matplotlib
- How to change a ‘LinearSegmentedColormap’ to a different distribution of color?
- Create own colormap using matplotlib and plot color scale
- 3-dimensional array in numpy
- How do I calculate percentiles with python/numpy?
- How to increase plt.title font size?
- ‘list’ object has no attribute ‘shape’
- What is the difference between np.mean and tf.reduce_mean?
- How can I set the aspect ratio in matplotlib?
- What does ‘index 0 is out of bounds for axis 0 with size 0’ mean?
- python SyntaxError: invalid syntax %matplotlib inline
- What does ‘index 0 is out of bounds for axis 0 with size 0’ mean?
- How to make a histogram from a list of data
- pandas create new column based on values from other columns / apply a function of multiple columns, row-wise
- Saving a Numpy array as an image
- NumPy List Comprehension Syntax
- Numpy extract submatrix
- RuntimeError: module compiled against API version a but this version of numpy is 9
- Scatter plot colorbar – Matplotlib
- matplotlib: how to draw a rectangle on image
- bbox_to_anchor and loc in matplotlib
- numpy-equivalent of list.pop?
- How to put the legend out of the plot
- RuntimeError: Invalid DISPLAY variable
- How to add column to numpy array
- Coalesce values from 2 columns into a single column in a pandas dataframe
- Why do many examples use `fig, ax = plt.subplots()` in Matplotlib/pyplot/python
- Numpy – add row to array
- How do I compute derivative using Numpy?
- plot a circle with pyplot
- Difference between data type ‘datetime64[ns]’ and ‘
- Merging two DataFrames
- Convert a 1D array to a 2D array in numpy
- Pandas dataframe groupby plot
- inverting image in Python with OpenCV
- How to print the full NumPy array, without truncation?
- Installing scipy for python 2.7
- How do I tell Matplotlib to create a second (new) plot, then later plot on the old one?
- vectorize conditional assignment in pandas dataframe
- Python OpenCV2 (cv2) wrapper to get image size?
- CS231n: How to calculate gradient for Softmax loss function?