Skip to main content

Questions tagged [iteration]

Iterations are the successive repetitions in loops such as for, foreach or while. Questions with this tag are often concerned about how to best handle a collection of data.

iteration
0 votes
1 answer
21 views

Iterate through all the days in a month in DJANGO template

enter image description here I have a model table like above which contains two columns on which dates on which an item is being sold in a month. I want to show the entire month table in Django ...
JTO  IT  CDR 's user avatar
0 votes
0 answers
8 views

How to extract particular field from custom duplicate objects and build a another response list using java 8 streams

I have below response from database and I need to convert it into the final json format using java 8 streams. Response from Database: [ { "name": "Test1", "age": "33&...
user26037047's user avatar
-4 votes
1 answer
61 views

Python Apply function to create new rows in loop

Goal: Here is a sample of a dataset that has "ID", "PHASENAME", "CDAYS", "MULTI_FACTOR", "DAY_COUNTER", and "DAILY_LABOR_PERCENT". The goal ...
Ty Kendall's user avatar
0 votes
1 answer
39 views

Not able to get iteration in curly codes or php correctly

I have uploaded images as follows: image 1 (an image is uploaded) image 2 (no image is uploaded) image 3 (an image is uploaded) image 4 (no image is uploaded) image 5 ...
Meng888's user avatar
  • 31
-2 votes
0 answers
22 views

Object Not Updating Inside FOR Loop [duplicate]

Can someone please explain why this object is not being updated? This has been annoying me for more than an hour. When I run the code on this website: https://playcode.io/1919282, the fillcolor is the ...
Zackattack's user avatar
0 votes
1 answer
43 views

Azure DevOps Rest API - Creating Iteration don't work

First I call all iterations that I have in my project - and it works fine and then I want to create a new one via the API. , but the method doesn't work, I get the error: The remote server returned ...
askldq's user avatar
  • 13
0 votes
1 answer
81 views

My C code is able to iterate once through and come up with the correct mileage but on the second iteration it fails

The problems objective is to write a program that takes a number of data sets the user would like to enter and then within the data sets it counts how many miles you traveled. For example for the ...
Maxwell Scharkopf's user avatar
0 votes
5 answers
127 views

Variable number of nested array iterations in C

First, sorry if the title is not clear, but I don't know how to ask this properly. Imagine I have an array of N elements, in this case 4: #define ELEMENT_COUNT 4 int arr[ELEMENT_COUNT] = { 'a', 'b', '...
trxgnyp1's user avatar
  • 412
0 votes
0 answers
25 views

Execution is very slow for GAN

I wrote a code on GAN and had previously trained in the Colab environment. I leave the Colab code below. def build_generator(latent_dim): """Build the generator model.""&...
Muhammed Gülsoy's user avatar
2 votes
3 answers
106 views

How to iterate over multiple ranges / sequences / numbers specified in var?

I can iterate over multiple ranges / sequences / numbers with constructions like: for i in $(seq 1 3) 5 $(seq 7 9) 11; do echo $i; done for i in {1..3} 5 {7..9} 11; do echo $i; done But how to ...
Anton Samokat's user avatar
1 vote
3 answers
73 views

How to iterate through a dictionary to get values on the lowest level?

Please help me understand how to extract the value of each ingredient for each product and do something with it. But for starters I just want to print them all one by one. MENU = { "product_1&...
Genkuru's user avatar
  • 21
0 votes
0 answers
28 views

Problem with double-mesh and error estimation

I am writing a Matlab code for a first-order nonlinear singularly perturbed parameterized problem with integral boundary condition. I have successfully achieved the desired order of convergence for ...
Shashikant Maurya's user avatar
-1 votes
3 answers
59 views

Formula to iterate the input range and stack the results into a column

Demonstration of what the result should look like: I need a formula in Google Sheets that iterates each input from input range, the look-up results for every single input will be stacked into a ...
user23576324's user avatar
0 votes
0 answers
61 views

Loop over grouped data in R

I have two dataframes, one where id is a primary identifier and the other is long data. I merged both and so I have long data (this can be reversed). I grouped the data based on id and want to loop ...
blessingAlabi's user avatar
0 votes
0 answers
24 views

Efficient method for sharding BigQuery table collection

I would like to ask for advice regarding the following task: assume a collection of BQ tables bearing names with structure name_YYYYMM and containing each a DATETIME type column called date_time whose ...
ΑΘΩ's user avatar
  • 111

15 30 50 per page
1
2 3 4 5
727