Skip to main content
Filter by
Sorted by
Tagged with
-5 votes
0 answers
70 views

I’m trying to add numbers to a list using a loop: nums = [] for i in range(5): nums.append(i * 2) print(nums) But the list prints [] instead of values. Am I missing something basic? How can I ...
FARHAN AHMAD's user avatar
-4 votes
0 answers
75 views

I am trying add one pandas DataFrame to another DataFrame. How can I do this in the style of list.append? usernames = {"anvar":"anvar123", "behruz":"Bex124", &...
Ravshanjon Ahmadjonov's user avatar
1 vote
1 answer
119 views

I am newer at coding and can't wrap my mind around what I'm doing wrong. This function takes in text from pdf's and starts collecting text only after a certain "search phrase" is found. Then ...
Sophia's user avatar
  • 19
3 votes
1 answer
74 views

I looked through a few solutions here and found an almost working script to append to the user Environment Variable PATH without overwriting the existing path and not clutter it with system's EV's ...
user avatar
0 votes
0 answers
128 views

I have two csv files in the folder. My output for each loop iteration is avg_mtf. I have been successful in creating lists and concatenating them in the other loops within glob but my comb list is ...
Vinny's user avatar
  • 1
2 votes
2 answers
85 views

I'm sorting grades by number ranges and adding them to my dictionary keys. For some reason my code is ignoring value 68 altogether. My code: import numpy as np exam_results = np.array( [ ...
RicardoDLM's user avatar
1 vote
3 answers
89 views

Dim tempIn As Variant tempIn = wsData.Range("Z" & lastRowData - 6 & ":AN" & lastRowData).Value This creates the array and passes 7 X 15 data of longs into it. I now ...
Jerry G's user avatar
  • 69
1 vote
3 answers
107 views

In a Python script, I have: import zipfile mytext='abcdefghijklmnopqrstuvwxyz' zip=zipfile.ZipFile('filename.zip','a') zip.writestr('a.txt',mytext,zipfile.ZIP_DEFLATED) I have several python scripts ...
kevin's user avatar
  • 51
1 vote
2 answers
71 views

I have this code to save data in array as txt file on computer. Dim path As String = "C:\Users\Desktop\Test.txt" Dim appendText As String = (Array(0) & Now & Environment.NewLine) ...
Zachary's user avatar
  • 13
1 vote
1 answer
51 views

I am trying to append values from a dictionary to a list to find out the total Value of the items from a vending machine. I have tried matching, listofkeys(selection) from user input/selection == to a ...
Peter Brown's user avatar
1 vote
2 answers
60 views

I am trying to get user inputs to create a file where users can store website, username, and password in table format whenever users hit a button. I made the function below, and it looks okay to me. ...
schamane34's user avatar
0 votes
1 answer
142 views

I want to create a AZURE append blob with the blob name changing once an hour and append log text to it during the hour. My problem is that I have been able to create / upload new BLOBs. But when I ...
user3427399's user avatar
0 votes
2 answers
97 views

I want to lookup column in dataframe (Lookup item) using pandas (or anything else). If the value is found in that column then corresponding value in another column (Corresponding item) of same ...
Koko's user avatar
  • 115
3 votes
3 answers
86 views

How to add consecutive lines using sed (or awk) untill a pattern is found? I have this data: max system cycles: 9087AED max system scans: 900 Secure connection date:.... 1: ID = ...
Rajeev's user avatar
  • 1,489
0 votes
0 answers
196 views

I am trying to add 2 lists to an INSERT command in Python. I'm looking for the simplest smart method. The DuckDb table is constructed with fields: Timestamp,Job, 10x real fields, 10x Boolean I know ...
RandomPeter's user avatar
-3 votes
1 answer
43 views

Python query. why does req1 end up being the same as req2? How do I preserve req1 with 3 original values? I would have thought req1 would still be [23,24,25] the following code displays [[23, 24, 25, ...
Tim's user avatar
  • 1
0 votes
0 answers
102 views

I am trying to write a script that appends new rows of a table to an existing file of tabular data, so that not all progress is lost if an error is encountered. Here are several ways to do this in ...
SapereAude's user avatar
0 votes
0 answers
14 views

I have a for loop that appends defined holidays to USFederalHolidayCalendar. from IPython.display import clear_output from datetime import date from pandas.tseries.holiday import Holiday, ...
swilson's user avatar
  • 55
-1 votes
1 answer
133 views

I used append_to_body to avaoid filter dropdowns overlape eachother, but now the option list items are not send hitting request to submit the form in stimulus controller in rails, can anyone help me ...
Muhammad Zubair's user avatar
0 votes
0 answers
36 views

Hi and thanks in advance, Using circular references (scripting is not currently an option so I want to give it a go) I can create a timestamp: =IF(AND(C2<>"",C2<>0),C2,IF(ISBLANK(...
Ian Jones's user avatar
0 votes
1 answer
71 views

I have the following /etc/docker/daemon.json file : $ yq . /etc/docker/daemon.json { "dns": [ "a.b.c.d1" ] } $ I tried this command to append proxy lines to this file with ...
SebMa's user avatar
  • 4,965
0 votes
0 answers
83 views

I have several google forms on my website that customers fill in. All of the responses to these different forms have been linked to go to one spreadsheet. I then used APPSCRIPT to merge all responses ...
emdawg's user avatar
  • 1
0 votes
1 answer
70 views

With the use of a MS Excel formula (Not VBA, etc.), I have a list of values in Column A, which also contains duplicates. I would like a formula in the adjacent column, to identify, match and return ...
Miaka3's user avatar
  • 405
0 votes
0 answers
50 views

I am trying to build a script that generates Artifactory queries for an automation task. An AQL query would look like the one below. For each image block, there are 2 curly braces followed by a comma, ...
newb291's user avatar
0 votes
0 answers
41 views

I have been asked by our company to begin work on a new Sample Register for test pieces we handle. I have found a way to append information to a list of samples once they have been allocated a number. ...
Harbinger's user avatar
0 votes
1 answer
213 views

In my Synapse pipeline, I am looping through a set of filenames. Inside the loop, I use a "Get Metadata" activity to retrieve the last modified date of each file and append these dates to an ...
pythonCoder's user avatar
0 votes
1 answer
46 views

I try to append programaticaly a div that contains a checkbox like this : appendedDiv = $("<div><input type='checkbox'></div>"); $(document.body).append(appendedDiv); In ...
Yaakov Whise's user avatar
0 votes
2 answers
41 views

I have this list set csv [list] lappend csv [list \ a \ b \ c \ [expr {[cfg::get enable_all_columns] ? { d } : {} }] \ e \ f \ g] I need to add element d only if enable_all_columns is 1. The problem ...
Razvan's user avatar
  • 1
2 votes
1 answer
76 views

I'm new on lisp and I'm finding a difficulty while working with "append". I have to reorder a list and put the first element of the input list as the last of the output list. I've trying ...
M1ctl4nt3cutl1's user avatar
0 votes
2 answers
48 views

I have a pandas df where each column have some numerical values, followed by some NaNs. The number of values and NaNs differ between columns. I want to append a single value at 'first non-NaN position'...
bearwinterfirth's user avatar
-1 votes
1 answer
44 views

So I was working on this exercise: In a given sequence the first element should become the last one. An empty sequence or with only one element should stay the same. So I quickly wrote a function ...
KJAMIX's user avatar
  • 1
-2 votes
1 answer
222 views

I have the following command that works fine however writing this command in a "more proper" manner, the tee -a fails to append each line to the .log file. (Instead it overwrites the file ...
Tarlak333's user avatar
0 votes
1 answer
63 views

I have two files: doc1.docx and doc2.docx Does anyone know how I can append doc2 to the end of doc1 programmatically? Imagine doc1 is a template front page and doc2 is a page of data. The end product ...
daxon101's user avatar
-2 votes
1 answer
68 views

New to Go... I have the following: type class struct{ Name string Age int Address string Phone. int } SchoolClassList := [12][4]class{} NewStudent := class{} To start, I initialize ...
Victor's user avatar
  • 1
1 vote
3 answers
88 views

I want to compile a list of metadata about queries within an MS Access DB. For each query I want a listing of the query's fields. The database I'm working in has three kinds of queries: Append, ...
Jeff's user avatar
  • 11
0 votes
1 answer
425 views

I have two arrays, arr1 and arr2. I want to concatenate (append all items if arr2 in arr1) both arrays and store in arr3. How to achieve this with nunjucks?
Bopsi's user avatar
  • 2,526
0 votes
1 answer
70 views

I have a Google Sheet with report data that needs validaiton. I have created a User Form (Validation_1 tab) to pull the report data into for ease of reading. On the User Form the data is validated ...
deb's user avatar
  • 1
-1 votes
1 answer
33 views

Context: I'm building a simulation model in R which runs for ~5200 timesteps with ~1000+ individuals. Each timestep, individuals can experience some events with random chance and dynamic rates (~9 ...
jessexknight's user avatar
-1 votes
1 answer
64 views

this is my code it gets an string from user via cin and opens a file and appends it to the file resembeling a simple phonebook. what am I missing ? where am I going wrong? by the way I am using code ...
Reza Beygi's user avatar
0 votes
1 answer
30 views

Im making a blackjack sorta thing that supports several players. It does this by having a list of player objects, that each have a cards variable, where the player's cards are stored. I want to draw a ...
FerbSilent's user avatar
0 votes
1 answer
204 views

I was able to solve this but I dont understand how. When I perform an append to an array, the last value appended becomes the value for all the records in the array. var myBus=BusinessType.new() func ...
Easy Cap's user avatar
2 votes
0 answers
79 views

The problem occur when I am trying to send append data it accept in object form and I'm unable to get data from server it show request parameter invalid function Traveller() { const formData = ...
Yogita Karande's user avatar
0 votes
1 answer
73 views

I have a function (more specifically prophet::add_regressor()) which appends values to an object. I recreated a similar function to make sure my point is clear: add_to_a_list = function(object, ...
Mesozoik's user avatar
  • 131
1 vote
1 answer
96 views

I have data like this: key_data <- data.frame(orig_letter=c("A","A","A","A","C","C","F","B","B","B&...
Neal Barsch's user avatar
  • 2,950
0 votes
0 answers
43 views

This is a question that seems to have been asked a number of times here by different people using a number of different coding languages, but no one seems to have come up with a clear definitive ...
Graphic Detail's user avatar
-3 votes
2 answers
79 views

I am using a for loop in python to convert the values from the csv file into integer and float then putting them in a list in the code itself but the problem is with that the csv file doesn't only ...
aaa bbb's user avatar
1 vote
2 answers
55 views

First table is only one column, just customer ID: ID ___ 1122 2222 3333 Second table is the product information: | State| User | Limit | CA | JM21 | 100 | OH | JD11 | 200 | ...
James Knopp's user avatar
0 votes
0 answers
303 views

I have a script that has been running for several years. In the past week, it has started throwing file-in-use-by-another process errors: Out-File : The process cannot access the file '\OB-UTIL-PRD-01\...
eileen's user avatar
  • 1
0 votes
1 answer
128 views

I have the following MongoDB document-class defined with mongoengine: class Archive( mongoengine.Document ): user_id = mongoengine.StringField() transaction_ids = mongoengine.ListField(...
IronPillow2's user avatar
0 votes
1 answer
85 views

I recreated my issue on Fiddle: https://jsfiddle.net/RayLove21/k05xhgaL/30/ This is the function I'm utilizing to append the custom select. function CREATE_OPTION() { var varForm = '<...
Ray Q's user avatar
  • 11

1
2 3 4 5
229