Questions tagged [concatenation]
Refers to the joining of two or more elements into a single element.
11,261
questions
0
votes
1
answer
18
views
concatenate heredocs with output of a command
I want to write into a file with a pre-HEREDOC, a post-HEREDOC and in the middle I want the output of a command. Is that possible in a concise way?
I can do
(
echo '#ifndef FOO_H'
echo '#...
0
votes
1
answer
29
views
Concatenating columns in Pandas DataFrame, deleting concatenated ones
I got a DataFrame with weather Data from a whole year, one line being the data for a Day. Now I want to concatenate the rain and snow data as precipitation and delete concatenated ones. Looking ...
0
votes
2
answers
31
views
How to concat distinct values over multiple columns in MS SQL?
I have a table like this
id
type 1
type 2
type 3
type 4
type 5
1
a
b
b
not available
not available
2
c
c
a
not available
not available
3
not available
not available
not available
not available
not ...
0
votes
2
answers
30
views
Oracle concatenate with conditions
I need to concatenate data from different column with comma in between. However, the column might also have null value, so the comma between is not needed anymore. Means that, it should have comma in ...
0
votes
3
answers
19
views
Concat values on dataframe columns excluding NaN's
I have a dataframe with n store columns, here I'm just showing the first 2:
ref_id store_0 store_1
0 100 c b
1 300 d NaN
I want a way to concat ...
1
vote
1
answer
30
views
merge dataframes and add price data for each instance of an item ID
I am trying to merge two dataframes so that each instance of an item ID in DF3 displays the pricing data associated with the matching ID from DF1.
DF3 (what I am trying to accomplish)
recipeID
...
5
votes
5
answers
91
views
How to concat lists integers and strings into one string?
I have the following variables:
a = [1, 2, 3]
b = "de" # <-- not a (usual) list !
c = 5 # <-- not a list !
d = [4, 5, 23, 11, 5]
e = ["dg", "kuku"]
Now I want ...
1
vote
1
answer
48
views
+50
How to add transitions between clips in moviepy?
My current attempt:
This is my current code:
from moviepy.editor import *
clips = [VideoFileClip('a.mp4'), VideoFileClip('b.mp4'), VideoFileClip('c.mp4')]
transitioned_clips = [demo_clip.crossfadein(...
1
vote
1
answer
28
views
Concatenate row values in Pandas DataFrame
I have a problem with Pandas' DataFrame Object.
I have read first excel file and I have DataFrame like this:
First DataFrame
And read second excel file like this:
Second DataFrame
I need to ...
-1
votes
1
answer
54
views
Query with CONCAT inside JOIN is slow
I need to get different values from 3 different tables (table1, table2, table3) where the common value is a reference number. This number appears on all 3 tables, except on table3 where the number is ...
-1
votes
1
answer
37
views
Output is given in 2 lines after concatenation of elements with odd and even indexes in a given string
I wrote a function which takes all elements with odd indexes and concatenates them with all elements with even indexes in a given string n times:
def encrypt(text,n)
while n > 0
n -= 1
...
1
vote
0
answers
17
views
how to merge pandas dataframes [duplicate]
I have a df as df1
Userid Price
Time
2022-04-02 14:24:21 91127426 46697.000000
2022-04-02 13:36:46 38041849 ...
-2
votes
1
answer
32
views
I can't concatenate correctly to the source of the image
I have the following problem: I cannot concatenate correctly, so that my image is sent from the form. the rest of the fields work without problems
<h1><strong>Fecha IP:</strong>{{$...
0
votes
1
answer
25
views
Concatenation layer raise Value Error: as_list() is not defined on an unknown Tensor Shape
I'm Trying to making DNN using Wide Deep Nural Network using keras the following code produces the following after trying to implement it, I also making my custome activation function Randomized Relu
...
0
votes
0
answers
13
views
Concatenating the output of a for loop
Y= zeros(3, 354)
for m = 1 : 118
R=GridData.R2(:,3*m-2:3*m);
X=GridData.X2(:,3*m-2:3*m);
B=GridData.B1(:,3*m-2:3*m);
G=GridData.G1(:,3*m-2:3*m);
Y(:,m)= R+ ...
0
votes
0
answers
41
views
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1,
I've got this error:
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 1 and
the array at index 1 has size ...
0
votes
1
answer
20
views
How to concatenate variables and strings as a full path for the "output file" of an ffmpeg command in a bash script
I'm trying to learn to bash scripting and I tried to use variables and arguments, etc. to specify a complex output file name to a ffmpeg command as follows :
for file in "$1"/*; do
#get ...
1
vote
2
answers
31
views
TEXTJOIN string only for values matching Todays date
Sample Table
Date Created (A)
Tracking ID (B)
5/12/2022
'813vz633-7872'
5/12/2022
'914bz756-7423'
5/12/2022
'875vu340-5687'
5/11/2022
'475dv235-6542'
5/11/2022
'905tg183-9634'
I want to create ...
0
votes
0
answers
17
views
concat selected videos in textfile using ffmpeg
i want to select videos from file1.txt which contains
file 'video1.mp4'
file 'video2.mp4'
file 'video3.mp4'
using ffmpeg command i store them in file1.txt and concatenate it:
command= ffmpeg -f ...
0
votes
0
answers
15
views
Hello, I have some problems with ffmpeg.concat, there are logs
Log:
[swscaler @ 0x27d3c10] [swscaler @ 0x2886fe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x27d3c10] [swscaler @ 0x283be10] deprecated pixel format used, make ...
0
votes
1
answer
34
views
Any way to concatenate two strings and remain the quotes(Python)?
I wrote a function which includes a groupby aggregation. For example df.groupby([column, 'columnA', 'columnB', 'columnE'....'columnZ'].sum(), where column is the input variable. Since there are many ...
0
votes
2
answers
31
views
pandas concatenate multiple columns together with pipe while skip the empty values
hi I want to concatenate multiple columns together using pipes as connector in pandas python and if the columns is blank values then skip this columns.
I tried the following code, it does not skip the ...
0
votes
0
answers
23
views
Combining CLOB columns in Query
I have a table with a CLOB column. What I need to do is query the table, and combine the CLOB column of each row into a single CLOB column.
So, say I have something like:
ABC CLOB_VALUE1
ABC ...
1
vote
1
answer
38
views
How do I concatenate files that have multiple sheets with same column headers but randomly ordered in Python/Pandas?
I have 3 xls files that have 3 sheets per file.
All sheets have same column headers but order as you see below is different
1.xls
Name Address Date City State Zip
2.xls
Address Date City Zip Name ...
0
votes
1
answer
24
views
pandas merge rows with overlapping column names using default non-NaN value
There is a list of tables and some configurations, specified in csv format.
I want to use default configuration from configs, and override it in tables if needed
configs = """
schema|...
0
votes
1
answer
38
views
How do I create a proper non-numeric list in COBOL?
I'm trying to write a to-do list program in COBOL but I can't seem to make the list variable work. It keeps telling me that the ITEM variables are not numeric (which makes sense, they're not). So how ...
1
vote
1
answer
23
views
xarray open_mfdataset does not return arrays with Numpy data
I am currently trying to open multiple netCDF files. They all have same main dimension (which is just the number of rows), and multiple variables : time, platform_code, and other ones.
Here is the ...
-1
votes
0
answers
27
views
How should I concatenate a byte to an unsigned char array using strcat()?
I'm trying to read from a SPIFFS file in which I have a content stored like this:
\x84\x43\x85\x67\x88\x22\x38\x58\x64
Now what I want is to copy this content into a char array which I have defined ...
0
votes
1
answer
25
views
react axios URL concatenation returns 404 not found
I am trying to display dynamic data based on record id coming from useParams hook variable id. But when I concatenated the id value, it returns not found 404 error. Although the id value is returned ...
-2
votes
0
answers
17
views
FFmpeg slide show duration from text file
I am using ffmpeg to create a slideshow of images from a list of files. I am using the following command.
ffmpeg -f concat -i List.txt output.mp4
How can is set the duration of all the images in the ...
0
votes
0
answers
41
views
how to apply a text string in a variable with rename function
When using the PHP rename function I need to use text in a variable in the rename, but I can only get the rename to work when I manually enter the text, for example
If I use this
$original_file_name = ...
0
votes
1
answer
46
views
Snowflake CONCAT strings with DISTINCT values
I am doing a merge where a string exists in my target table.
To this I want to concat a new delta value which is a ; separated string list in my
WHEN MATCHED .... UPDATE clause
eg.
set TARGET_VALUE =...
-1
votes
1
answer
94
views
Concatenation of array and array element on i'th position
Having some declared types and an array:
type player = Orange | Red | Blue | White ;;
type piece =
Knight of player | Town of player
| City of player | Road of player
| Wool of player | ...
0
votes
1
answer
25
views
PerformanceWarning: DataFrame is highly fragmented. How to convert in to a more efficient way via pd.concat with designated column name
I got following warning while running under python 3.8 with the newest pandas.
PerformanceWarning: DataFrame is highly fragmented.
this is the place where I compile my data into one single dataframe,...
0
votes
1
answer
31
views
How to cat all files in a directory except first line?
I have around 3,000 gzip folders that I need to concatenate into one file except for the first line of each file. I also need to have the word "break" in between each file.
Concatenating ...
0
votes
1
answer
29
views
Concatenate dataframe with some columns equals and some columns different
I am trying to concatenate two Dataframes but an error occurs systematically and I don't know how to correct it.
I saw an example of what I want to do on the Pandas documentation :
However, I am ...
0
votes
0
answers
22
views
How do I correctly concat JSON using Ionic Angular?
I can't seem to correctly concat "myURL". I tried playing around to get it, but all I'm getting is undefined. Here is the JSON:
"cars": [
{
"code": "0000&...
5
votes
2
answers
80
views
How can I make stream with fixed arguments along with varargs? [duplicate]
Let's say we have the following method.
void some(int id, int... otherIds) {
}
How can I create a single IntStream with those two arguments?
IntStream.concat(
IntStream.of(id),
...
0
votes
1
answer
14
views
concatenated 2 data frames and values are NaN in the last one, but resetting the index gets rid of the date
I have 2 data frames that I concatenated with df_new= pd.concat([df_stocks,df_crypto], axis=1, join="inner"). The original df_crypto shows correct values in the data frame when I print it, ...
0
votes
3
answers
70
views
Concatenation of multiple columns
I have three columns in my data frame:
CaseID
FirstName
LastName
1
rohit
pandey
2
rai
3
In the output, I am trying to add the fourth column and have values as LastName,FirstName
I have this ...
0
votes
0
answers
28
views
Show updated DataFrame every 5 seconds
I want to show a dataframe that is updated every 5 seconds. I can show a list every 5 seconds, but I can not manage to concat it to a dataframe.
Here is my code:
tradeslist = []
for symbol in symbols:...
0
votes
1
answer
65
views
Displaying Result of two compared arrays
Maybe I just need to step away but I have been staring at this code and I cannot figure out what I need to do. I am comparing submitted responses (in a text file), against an answer key (separate text ...
0
votes
1
answer
17
views
How to merge three dataframes with same columns, different rows containing strings, float, etc?
I have three dataframes (df1,df2,df3) that share the same columns with the following types:
Unnamed: 0 int64
_id object
dataNotificacao object
cnes ...
0
votes
4
answers
34
views
I'm trying to append a range of numbers onto a string in Python
The desired outcome I'm try to achieve is similar to this:
192.168.1.70
192.168.1.71
192.168.1.72
192.168.1.73
etc...
This is what I came up with but it isn't producing the desired ...
1
vote
1
answer
28
views
Concatenating Files And Insert a Word In Between Files
I have around 3000 .gz files that I need to concatenate with the word "break" in between each file in PowerShell.
cat *gz > allmethods.txt
This concatenates all my files but does not ...
0
votes
2
answers
72
views
Writing a function to merge 2 lists...maybe more
New to python... I am trying to write a function merge() to take two lists and combine them, and then I would like to expand that to an n number of lists.
The output I get from this code is only the ...
0
votes
2
answers
28
views
Insert rows from TableA that are not in TableB using concatenated keys
I have 2 tables. TableA gets populated by a csv import and typically contains between 10k and 15k rows. TableB has the same structure, and has now grown to about 95k rows. In order to determine ...
-1
votes
1
answer
30
views
Bash string with many variables of which i only want one of expressed
I have a variable called boiler,
boiler='#!/bin/bash
source ../../functions.sh
current="${si1}"
ready custom
title
breadcrumbs \""$current"\" \"Options\"
# END ...
0
votes
1
answer
26
views
Concat multiple dataframes by datetime
I need combine multiple dataframes by datetime as well:
df1:
datetime
Sales_Hour_value
2022-04-29 11:00:00
92
2022-04-29 12:00:00
17
2022-04-29 13:00:00
46
df2:
datetime
Sales_15_minutes_value
...
0
votes
0
answers
41
views
How to concatenate several images given a list
I have a certain scrip that spits a procedurally generated list of lists of strings of what would my tiles be in a square grid:
grid = [['grass', 'grass', 'trees'],
['flowers', 'grass', 'grass'],
['...