Questions tagged [concatenation]

Refers to the joining of two or more elements into a single element.

-1
votes
2answers
20 views

How can I concatenate this type of JSON in javascript?

How can I concatenate this json to obtain it: complements = ["XYZ 3, CDE TR, AAA 5", "", "NDP 3, DDD FR"] ? Each address can contain a set of complements which must be ...
0
votes
1answer
14 views

Combining CSV files into Dataframe python

I am trying to add data from several files in a folder to a data frame. Each .csv file has varying lengths but has the same number of columns. I am trying to add all of them to one data frame with ...
0
votes
0answers
13 views

How to concatenate values from a column grouping by a specific values from another column using TSQL?

I would like to concatenate the follow columns X, Y and Z, grouping by ProductToday and separating the values with comma " , " from my TSQL table. As a result I would like to have it: ...
-7
votes
3answers
54 views

How to concatenate two different values from two different columns with comma " , " using TSQL?

I would like to know how to concatenate two different values from two different columns from a SQL table using TSQL ? As you can see, I would like to concatenate those two different columns X e Y, ...
-1
votes
0answers
21 views

MySQL, how to GROUP_CONCAT all fields into one, even if GROUP BY was used?

I have a complex SQL which uses GROUP BY. Let's say, I'm using this query and the result is: my question is, what if I want to GROUP_CONCAT all the ID-s, or even "customers" fields into one?...
5
votes
2answers
85 views

Why does combining Perl hashes in and each expression not work?

I recently encountered this and became most displeased: while (my ($key, $value) = each (%hash1, %hash2)) { } Gave this error: Experimental each on scalar is now forbidden at ... But this, which ...
-1
votes
2answers
26 views

Python3: How to remove \r only and concate divided lines?

I‘d like to prepare data from a converted pdf, but im struggling with escape characters. Normal lines ending with \r\n but some lines have \r from a former column break. How can I remove \r only and ...
0
votes
2answers
24 views

Simplest way to concatenate multi lines of text in java through File Handling

I tried concatenating 2 lines of text in a given text file and printing the output to the console. My code is very complicated, is there a simpler method to achieve this by using FileHandling basic ...
-1
votes
0answers
21 views

concatenate multiple column entries in Column B based on common characters in Column A

In Excel, row entries in Column A have common characters that determine they are in the same group. For each group, I need to make a NEW COLUMN concatenating entries in Column B. How to do this? See ...
0
votes
1answer
25 views

Concatenate items in a python list if '\\' is at the end of item

I need to merge with next item in a list if previous item has '\' at the end. Example: original_list = ['first.key=First value', 'second.key=Second value, first line\\', 'Second value, second line\\',...
0
votes
2answers
54 views

custom exception class, using a base class, with multiple arguments

So I'm setting up custom exception classes for a program I am writing. I'm creating a catch-all base class, that I will use primarily as a generic exception. This base class will be inherited by ...
-1
votes
2answers
24 views

EXCEL-VBA: Concatenate n rows with each line of another column

I am stuck with what I though was a simple action to ask excel. I need to concatenate each and every line of a column with each of the column of a second column. This is what I would like to do ...
-3
votes
1answer
34 views

Inserting data in middle of string? [closed]

What functions can I use to print @string2 just like FORMAT 01) Meaning whenever Gender data is missing, how can i design a query that will concat it in the right position? -- FORMAT 01: 1) NAME 2) ...
0
votes
1answer
26 views

detect browser with strpos

I can't get this code to work, what am I doing wrong? $browserid = $_SERVER['HTTP_USER_AGENT']; if(strpos($browserid,"Firefox/") || strpos($browserid,"Chrome/") else if(...
0
votes
2answers
32 views

Concatenating strings seperated by spaces in a string list

I am currently writing a code in SML that takes in a string list full of numbers and spaces. The code must combine the numbers up to the space, then create a new list item for the next set of numbers, ...

15 30 50 per page
1
2 3 4 5
732