11,189 questions
-2
votes
0
answers
37
views
"What's the difference between using append() vs extend() when working with Python lists?" [duplicate]
I'm currently learning Python and working with lists. I came across two methods—append() and extend()—and I'm a bit confused about how they're different.
For example:
a = [1, 2, 3]
b = [4, 5]
a....
1
vote
1
answer
38
views
Appending values to a list and summing the total
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 ...
1
vote
2
answers
38
views
Python DataFrame structure breaks when appending the File
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. ...
-1
votes
2
answers
75
views
Javascript method getElementsByClassName or getElementByID returning null [duplicate]
This seems so simple, but I cannot seem to wrap my head around what it is that I am doing wrong.
I'm merely trying to create a system of tags by passing an array of objects into the html of a div ...
0
votes
1
answer
72
views
Attempting to add an Azure append blob, failing due to The specified blob does not exist
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 ...
0
votes
2
answers
79
views
Unable to write lookup output to Pandas dataframe using append loop [duplicate]
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 ...
3
votes
3
answers
75
views
how to continue to append starting from a pattern using sed or awk?
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 = ...
0
votes
0
answers
100
views
Python insert values in DuckDB with lists off tuples
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 ...
-3
votes
1
answer
36
views
Why do these two lists become the same (python)?
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, ...
0
votes
0
answers
85
views
In Python, what is the fastest way to append numerical tabular data to a data file?
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 ...
0
votes
0
answers
8
views
Stop appending multiple times in Jupyter Notebook
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, ...
-1
votes
1
answer
61
views
Submitting Rails form through stimulus controller after using append_to_body
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 ...
0
votes
0
answers
30
views
excel circular references append list
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(...
0
votes
1
answer
43
views
How to append proxies items to an existing /etc/docker/daemon.json file with yq
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 ...
0
votes
0
answers
73
views
How to stop duplicating form submissions on a master database google sheet/ APPSCRIPT and data appendage
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 ...