concatenation Questions

7

Solved

When both lists below on the line of code are populated my code works fine. However the error "Value cannot be null." occurs when LstNewItems is set to null. Why and how can i fix this or do i have...
Greenleaf asked 31/1, 2014 at 21:53

5

Solved

I am trying to execute a SQlite replace function, but use another field in the function. select locationname + '<p>' from location; In this snip, the result is a list of 0s. I would have e...
Cryogenics asked 25/8, 2010 at 17:49

8

Solved

Here is what I want to do: current table: +----+-------------+ | id | data | +----+-------------+ | 1 | max | | 2 | linda | | 3 | sam | | 4 | henry | +----+-------------+ Mystery Quer...
Petcock asked 8/11, 2010 at 21:41

8

What's the essential difference(s) between pd.DataFrame.merge() and pd.concat()? So far, this is what I found, please comment on how complete and accurate my understanding is: .merge() can only ...
Rhombencephalon asked 7/7, 2016 at 22:12

25

Solved

C# has a syntax feature where you can concatenate many data types together on 1 line. string s = new String(); s += "Hello world, " + myInt + niceToSeeYouString; s += someChar1 + interestingDecima...
Episcopalian asked 19/3, 2009 at 16:23

3

I'm trying to update the value of a field in a MongoDB collection by concatenating it with a literal string. Besides this, the field is an integer, and I want to add a "0" in front, so it will beca...
Snowshoe asked 16/1, 2017 at 11:8

3

How can I concatenate my String and the int in the lines: print('Computer is moving to ' + (i + 1)); and print("Computer is moving to " + (i + 1)); I cant figure it out because the error ...
Wagonette asked 25/2, 2021 at 20:23

5

Solved

Why does a return of the push method cause Uncaught TypeError: acc.push is not a function But a return concat results in the correct solution? [1, 2, 3, 4].reduce(function name(acc, curr) { ...
Evangelin asked 15/6, 2017 at 15:58

9

Solved

Column1 Column2 ------- ------- apple juice water melon banana red berry I have a table which has two columns. Column1 has a group of words and Column2 also has a group of words. I want to co...
Anesthetic asked 22/11, 2011 at 20:59

7

Solved

I have two arrays of known lengths: let left: [u8; 2] = [1, 2]; let right: [u8; 3] = [3, 4, 5]; My first attempt: let whole: [u8; 5] = left + right; fails with the error: error[E0369]: cannot add...
Mercantilism asked 11/4, 2021 at 5:44

12

Solved

How do I concatenate a list of strings into a single string? For example, given ['this', 'is', 'a', 'sentence'], how do I get "this-is-a-sentence"? For handling a few strings in separate...
Ricard asked 17/9, 2012 at 5:32

6

Solved

I try to add single quotes to a string but don't see how to do it. For instance I would like to replace ABC by 'ABC'. I have played with paste, cat, print but don't see how to do it. Any solution? ...
Olfactory asked 20/3, 2013 at 16:59

13

Solved

I need to concatenate some relatively large text files, and would prefer to do this via the command line. Unfortunately I only have Windows, and cannot install new software. type file1.txt file2.t...
Cavalier asked 19/3, 2010 at 12:39

35

Solved

I have a script that prints the current date and time in JavaScript, but the DATE is always wrong. Here is the code: var currentdate = new Date(); var datetime = "Last Sync: " + currentda...
Hermia asked 18/4, 2012 at 14:8

6

Solved

I don't quite see the difference. What could Path.Combine do better than perfectly working string concatenation? I guess it's doing something very similar in the background. Can anyone tell me ...
Soutache asked 18/8, 2015 at 11:18

7

Solved

How do I concatenate two one-dimensional arrays in NumPy? I tried numpy.concatenate: import numpy as np a = np.array([1, 2, 3]) b = np.array([4, 5]) np.concatenate(a, b) But I get an error: TypeE...
Corinthians asked 11/2, 2012 at 1:11

10

Solved

I have this: user_dir: /home/user user_pics: /home/user/pics How could I use the user_dir for user_pics? If I have to specify other properties like this, it would not be very DRY.
Adlay asked 30/3, 2011 at 8:44

16

Solved

Is there a perceptible difference between using String.format and String concatenation in Java? I tend to use String.format but occasionally will slip and use a concatenation. I was wondering if o...
Nonconformity asked 29/5, 2009 at 10:51

5

Solved

In pandas 1.4.0: append() was deprecated, and the docs say to use concat() instead. FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. ...
Algol asked 24/2, 2022 at 21:35

16

Solved

I am wondering, What is the proper way for inserting PHP variables into a string? This way: echo "Welcome ".$name."!" Or this way: echo "Welcome $name!" Both of these methods work in my PHP ...
Thoracotomy asked 9/4, 2011 at 15:39

3

Solved

I have two columns in my dataframe. var1 var2 01 001 I would like to create a third column that joins them together: var1 var2 var3 01 001 01001 Does anyone know how to do this? Thank you!
Whirlabout asked 21/4, 2016 at 15:47

4

Solved

Problem I'm writing an bash script (version 4.3.48). There I have an array and want to concatenate all entries as a single string. The following code do such task (but lag in some case): declare ...
Flavopurpurin asked 22/2, 2018 at 19:50

6

Solved

I'm trying to paste my query results from Mgmt Studio to Excel, but for whatever reason the columns in Mgmt Studio are concatenated into a single column when pasted into Excel. This doesn't happen...
Tabbatha asked 16/8, 2012 at 21:55

6

Solved

I would like to take a given row from a DataFrame and prepend or append to the same DataFrame. My code below does just that, but I'm not sure if I'm doing it the right way or if there is an easie...
Dituri asked 19/6, 2015 at 14:32

11

Solved

What is the fastest way to prepend a string to all keys in a flat array? Input $array = array( '1' => 'val1', '2' => 'val2', ); Needed output: $array = array( 'prefix1' => 'val1', 'pr...
Krakow asked 9/4, 2010 at 13:1

© 2022 - 2024 — McMap. All rights reserved.