I have a chunk of code that basically goes like this: apparently there is an error on the fifth line where "list index out of range" the first time ...
I have a chunk of code that basically goes like this: apparently there is an error on the fifth line where "list index out of range" the first time ...
I have this dataframe And I need to convert this dataframe column I want to transform it like this That is, I need to enumerate the data whic ...
I am writing a program which needs an iterator which starts at the nth value in an array and steps by m giving the correct index (n + xm) of the eleme ...
I have a enum that has an integer representation, and I am going to be iterating over this type in a for loop. I was loop to get both the min and max ...
I want to give every number in my list a unique code as they are repeating itself. data = [ [0, 1, 2, 1, 1, 2, 3, 1, 2, 0, 2, 1, 4, 3, 2, 4, 4, 4 ...
Code: Output: When I uncomment line 4 output is correct and each full name is printed. So my question is why does this happen? What does enumera ...
Net 6.0 Our company uses a metric layout that takes records that look like this and transforms it into this I have a custom object I am tryi ...
data = [a,b,c,d,e,f,g] This is just an example of the information i am using. I am having trouble with 2 things. Scenario.... for x in data... ... ...
Consider the code below. I am trying to subclass the builtin enumerate so that it prints a line for every turn of the for loop. The code seems to be w ...
i have this matrix Matrix = [[0., 15., 19., 18., 17.], [15., 0., 14., 12., 23.], [19., 14., 0., 14., 21.], [18., 12., 14., 0., 14.], ...
Python code: and test-file.csv is: The output is Why don't I get ? ...
this is a screen shot of my TXT file and I have determined the part that I should extraxt it I want to extract specific lines which contain sales dat ...
It seems that every time the string should add up the 4, 1, and 4, for column 1, the total result is just 4*3. Could you help me put an enumeration-l ...
I have a question reagarding my code, if anybody has some clues how to solve it. I need to write only one line of code, which outputs the line numbers ...
I'm trying to write a code in Python that iterates through a list of text (events) as following: I want the algorithm to check first if the line ha ...
I have created a list 'labels' for the confusion matrix. Now, I am trying to use the label list and the metrics.recall and metrics.precision to d ...
I have this problem: I want that the text in every item (not the math part) aligned with the text from above . Like a list, where I can said what ...
So I have a list that I want to number using enumerate(), then have the user choose an item from the list using the corresponding number. Is there a w ...
Let's say I want to get the the number of jumps of each consecutive 1's in a binary string of say, 169, which is 10101001. The answer then it'd be 3, ...
I am trying to extract the tag values for SystemOwner and TechnicalOwner. However I get the error "ForEach-Object: You cannot call a method on a null- ...