48 questions
-2 votes
1 answer
105 views
Reduce number of characters in stacked Google spreadsheet query functions
For the following function, is there a way to iterate through the sheet IDs without having to literally write out each block again - the stack is growing; the only difference is the next sheet ID? ...
0 votes
1 answer
25 views
Can't iterare Textblob classifier in a dataframe
I've been successful in training a TextBlob NaiveBayes sentiment classifier, with fairly high accuracy, and I'm trying to iterate it in a comment dataset to do a coder reliability test. The only issue ...
0 votes
1 answer
54 views
Row by Row update / change of Values based on 2nd Dataframe with conditions
i have got a Condition Dataframe like this which has about 300 rows pd.DataFrame({"PERSONALNR":["000009461","000009461"],"PERIODE":["202401","...
2 votes
1 answer
94 views
Is there an L-system representation for Polya's Triangle Sweep?
I am currently reading the book "The Fractal Geometry of Nature" by Benoit Mandelbrot. I tried to write a program to visualize some of the curves found in the book by using L-system ...
0 votes
1 answer
42 views
Error iterating through TR elements & building concatenated string values
I am trying to write a javascript function that iterates through the rows of a table, picks up modified input values and builds a concatenated string of pipe delimited values onclick. Here is an ...
0 votes
1 answer
2k views
OSError - could not get source code, during Pandas rolling apply an iterative function
I am encountering an issue related to the Pandas rolling function in Python. Specifically, I am implementing a rolling apply with a custom function, and I'm facing an OSError: could not get source ...
1 vote
2 answers
147 views
How do I compare similar file names with timestamps in the names to see which is the newest in Bash?
I am new to Bash scripting and I'm open to constructive criticism and want to learn. I'm working on a bash script to automate moving Backup files to an archive server. The plan is to run the script ...
0 votes
0 answers
108 views
Is there a way to iterate a function for each element of a large list in R?
I would like to perform a ROC curve analysis using the pROC package in R. I have a dataset (dataframe) of 45 subjects; each one of them has about 1000 values in a column called "spike_conn" ...
-1 votes
3 answers
45 views
iterate through an object with an array in the value
I have an object with multiple keys and each key has an array as a value. how do I iterate through the array and log only 1 value for each key? I have the object set up as such: const obj = { '...
0 votes
1 answer
97 views
Iterating over fetched data from API
I'm fairly new to Reactjs and I'm trying to create a webpage which takes in a user input and then fetches data from an API before iterating over the fetched data, comparing the user input to ...
-1 votes
2 answers
73 views
How to iterate through two list in python
I have 2 list, which i would like to iterate through and capture the selection/input from user. list1 = ['E1', 'E2', 'E3'] list2 = ['api1', 'api2', 'api3', 'api4'] def display_option(options): ...
0 votes
1 answer
72 views
To iterate all the dataframe in pandas
I'm trying to do something similar to this... My intention is to create a boucle for in pandas that can iterate all the dataframe filtering all the rows that are highest than four. If the condition is ...
0 votes
0 answers
60 views
Merge objects in JavaScript if conditions are met
I need to join different objects depending on their conditions. Context The theme is to calculate the hours that a user accumulates during a full week, let's call it "tracking". I have an ...
0 votes
1 answer
91 views
How can I iterate over a function
I'm simulating forest-fire, and one of my tasks is to plot the density of trees vs those currently burning and empty plots. I have the disparate parts, however I need assistance in putting them ...
0 votes
1 answer
430 views
How to display key value pairs from nested object
I have this structure of data (its more nested, but I give you example of it) { status: { observedGeneration: 2, replicas: 1, updatedReplicas: 1, readyReplicas: 1, ...