Questions tagged [arrays]

1 votes
1 replies
Python: Shuffle and put back into initial order elements of an numpy array
I have an array on which I must modify some values. In order to do so, I have to change the order of elements of the array, after having changed...
asked 4 months ago
0 votes
2 replies
Concatenate and aggregate json object data with node.js
I generate the following json in my Node application: [ { id: 1, name: 'user1', sport: 'athletics', medal_count: '1'...
asked 4 months ago
0 votes
3 replies
Sorting Array of Objects by Object Name Typescript
Using TypeScript, I am trying to sort an array of Objects by the name of the actual object, not an object key. A name key does exist on these obj...
asked 4 months ago
0 votes
2 replies
Uploading to another sheet with conditions
I need assistance with my project. The endgame goal is to have a user select cells in a row and then be able to use a button to upload that data...
0 votes
2 replies
How to place a 1D array into a line of 2d Array [closed]
Please excuse, me I am VERY new to coding. I have an assignment for school where I have to create a game board type of game. I have a 1D array cr...
asked 4 months ago
-2 votes
2 replies
How to comma separate an array of integers in python? [closed]
I have a list of integers, i want to convert them into comma separated integers, how can i actually achieve that The result should have comma se...
asked 4 months ago
0 votes
1 replies
Paste array to certain rows and column within table
I wrote a function to write the contents of a 2-dimensional array to an existing table. Nothing will be removed from the table. The new rows must...
asked 4 months ago
0 votes
1 replies
Javascript: Create dictionary from array of strings [duplicate]
This question already has an answer here: ECMAScript 6 arrow function that returns an object...
asked 4 months ago
-4 votes
1 replies
How to pass array to ajax call in data
I would like to know how to pass array of datas to ajax call how to load modal until the data received in success in ajax. Please check the below...
asked 4 months ago
0 votes
1 replies
Retrieve Multiple Child branches Firebase Swift 4 in TableView
The real-time database structure of firebase is as follows: Then, I intend to show the values for each of the children in several table view as...
0 votes
2 replies
getting segmentation fault when copying arrays using std::copy
i'm trying to carry out a pascal triangle, and i need to copy an array to an other, i'm currently using the copy function but getting the famous...
asked 4 months ago
0 votes
1 replies
How to map through nested array of objects in React
I'm trying to map through an array, and for each key, map through the nested array of objects to print out grouped values. I keep getting .map()...
1 votes
1 replies
Populate Combobox with Two Text Fields from an Array
I'm trying to get values from 2 cells in an array to populate the text field of a combobox on a userform. The values in the array look like this:...
asked 4 months ago
0 votes
1 replies
Python 2.7 - saving a 1D array and a 2D array on the same csv
I have a 1D array of sgape (4) as follow: ['rsmin_025_lai_chtessel' 'rsmin_050_lai_chtessel' 'rsmin_075_lai_chtessel' 'rsmin_100_lai_chtess...
asked 4 months ago
1 votes
2 replies
How to set 3 consecutive position of array an RGB values in a loop
Ive defined a color module that does some basic operations on RGB vectors. Im trying to export an image in java after applying some operations o...
asked 4 months ago
1 votes
3 replies
Why there is no images drow when I turn on web page?
I want to draw images on web page from array, but there is no images on web site. There is array of 6 images which I want to display on web site,...
asked 4 months ago
0 votes
0 replies
customize joining strings from array with characters [duplicate]
This question already has an answer here: Join List<string> Together with Commas Plus “and” for Last Element...
asked 4 months ago
1 votes
2 replies
Match arrays efficiently, drop found keys in 2nd array
Essentially i have 2 arrays. the resulting unmatched array has duplicates, it should drop item in the array once found, which will lead to the c...
asked 4 months ago
2 votes
1 replies
Function to convert array of heterogeneous variables to structure (preserving name)
I want to write a function that converts a variable number of variables (in the example below the array sc, the matrix A, the number T) to a stru...
asked 4 months ago
-2 votes
0 replies
There are a lot of floating point data in an array, how to compress? [closed]
I have a floating point array, about 20,000+ elements, I want to compress, what should I do? Is there any relevant code, paper, or other referenc...
asked 4 months ago
0 votes
1 replies
Vue.js v-for each object text with in an array or objects
I want to list out the text that is inside an array containing objects. I dont seem to be able to work out how to address this I can get close......
asked 4 months ago
-1 votes
2 replies
Creating and inputting data into nested arrays - Ruby
I am trying to make a programme that takes names and adds them into arrays. The trick is I need to store them in nested arrays, so I ask the user...
asked 4 months ago
0 votes
4 replies
Interpolation Python
My problem is quite a simple one, however I can't seem to find a quick solution. I would like to interpolate the y_model array which is defined...
asked 4 months ago
1 votes
1 replies
Why don't the values I type in the terminal match the values I've already stored in the array?
I'm making a program that will let me read an integer entered at the terminal via the scanf function, and generate its assigned value from the ar...
asked 4 months ago
1 votes
3 replies
How to remove duplicate row in array of hashes on Ruby on rails
I am using Ruby 2.6 in my application. I want to remove the duplicate element in array of hashes. Here is my input array_of_hashes = [ {"Date"=...
asked 4 months ago