Skip to main content
1vote
1answer
46views

Finding Numerical Relationships between Columns

I have selected a subset of numerical columns from a database and I want to iterate through the columns selecting a target_column and comparing it with the result of a numerical operation between two ...
Evan Lynch's user avatar
1vote
1answer
36views

How do I calculate the time complexity of this problem?

I'm trying to determine the time complexity of the following code. It has a nested loop structure, and inside the inner loop, a recursive function is called. I want to understand how the recursive ...
Malik ZiA's user avatar
0votes
1answer
42views

Approaches To Optimize Nested For Loops and Dataframe Creation?

I am not very experienced with coding but I am creating a customtkinter application style script where a user can input a specific type of html that contains diagnostic addresses and various ...
Chickchu's user avatar
0votes
0answers
82views

Lua table index changes its values without assigning any to them

Lua table (ref) index changes its values without assigning any to them. Why does ref table change its values after assigning it to tab[c] or using string.match()? The actual behavior is that the ref ...
Jepamb's user avatar
0votes
0answers
116views

Explanation for VHDL loops not going to completion

I am making a mockup CPU in VHDL. I am using Vivado for simulation and programming environment. I need help understanding why my simulation won't follow through with the nestled loops. I need ...
Johan Svensson's user avatar
0votes
0answers
25views

How do I deploy multiple CosmosDB accounts with Databases/containers using ARM templates without nested loops?

Let me preface this with the fact that I am new to ARM templates. I am trying to create a template that will created a bunch of CosmosDB accounts, databases, and containers based on a config file that ...
pauldog90's user avatar
2votes
1answer
99views

Is there a smart way to vectorize a nested for-loop where the inner index is limited by the outer index?

Is there a smart way to vectorize a nested for loop of inner products, where the inner index is lower bound by the outer index? Here's a simple example. Say that arr1 and arr2 are numpy arrays each ...
AJoR's user avatar
0votes
1answer
40views

What is the difference between writing in one and two lines when transporting a matrix? [closed]

If the replacement of elements is written in two lines, then the matrix is ​​transported incorrectly x=[[i for i in list(map(int,input().split()))] for _ in range(int(input()))] print("Result:...
Kit_kat_rin's user avatar
0votes
2answers
110views

How to loop through dimetial array using VBA in excel?

I'm trying to create a file that transpose the data in on row to multiple rows and columns. Currently using an array. I can get the first row to look the way I need in order to load it into our system....
Eriknme's user avatar
0votes
0answers
146views

How can I optimize Elliott Wave detection in large cryptocurrency datasets?

I am working on a Python program that identifies Elliott Wave patterns in cryptocurrency market data. The current implementation uses nested loops and exhaustive searches, which makes it ...
Viraj Tharuka Ranathunga's user avatar
0votes
0answers
68views

How can I print all possible x-letter words in python using loops? [duplicate]

How can I print all possible words of a user-specified length "x" in python? I already know how to do it for a specific number of characters like all possible 3 letter words by using for ...
Aarush Ravez's user avatar
0votes
3answers
110views

The best way to reduce the calculation time of formulas in nested loops?

Could you tell me what is the best way to reduce the calculation time of formulas in nested loops? I have code like this: for k in range(0, 130): for i in range(0, 1600): array2[i,k] = 0 ...
James Jacques's user avatar
2votes
2answers
67views

Why this nested loop generator does not seem to be working?

I was trying this: tuple(map(tuple, tuple(((x,y) for x in range(5)) for y in range(3)))) I got this: (((0, 2), (1, 2), (2, 2), (3, 2), (4, 2)), ((0, 2), (1, 2), (2, 2), (3, 2), (4, 2)), ((0, 2), (1,...
KLc3088's user avatar
-2votes
1answer
40views

How do I set up range based on loop counter?

I am new here and I do not have much experience. I greatly appreciate any advice you may provide. I have a 2D array representing staff scheduled to work on a particular date. The data looks like this ...
Kathryn Kolsky's user avatar
0votes
1answer
40views

R For loops and Simulations [closed]

set.seed(2024) #conditions b1<-c(-0.3,0.3) b2<-c(-0.3,0.3) conditions <- expand.grid(b1 = b1, b2 = b2) # some other conditions sample_size <- 200 nsim<- 10 #number of simulations #...
Tube's user avatar
  • 195

153050per page
close