Questions tagged [concatenation]
Joining of two or more sequences into a single sequence.
12,071
questions
0
votes
0
answers
13
views
Python Pandas append to concat within a custom function with loops? [duplicate]
So I learned that my version of Python doesn't take append, which was in the original code:
def getDataForDateRange(date_Index_New, rows):
WeeklyStockDataRows = pd.DataFrame()
for I in ...
0
votes
0
answers
32
views
Combining a List of Pandas Data Frames
I am trying to union a list of pandas data frames in jupyter notebook. When I use pd.concat([i]), wrapped in a for-loop, I only get the first dataframe. When i check the length of the list prior to ...
0
votes
0
answers
3
views
how to combine single dataframe with multiple common columns
There is single dataframe in pandas and it has 22117 row and columns 47 but there is common column 13 how to combine these common column single dataframes . how can i solve these problem?
it is a ...
0
votes
0
answers
7
views
How to use future forecasted weather data as input in LSTM model
I am working on making a water demand forecasting model that takes into account time and meteorological conditions. Ideally it would take into account the previous years water demand+meteorological ...
0
votes
1
answer
22
views
Pandas concat behaves different now
I have two python/anaconda environments with juypter notbooks.
No. 1
Python 3.11.5
Pandas 2.1.1
Jupyter 6.5.4
No. 2
Python 3.12
Pandas 2.1.1
Jupyter 7.0.6
Basically, I have a quite simple task to ...
2
votes
1
answer
90
views
Concatenate value of 2 columns datatable with space and replace "-" with empty in vb.net
I'm trying to Concatenate value of 2 columns datatable with space and replace "-" with empty in vb.net.
I have the code below, but this is still wrong.
please guide me
Thanks
Public Class ...
-1
votes
0
answers
28
views
Why does my code run slow on a windows pc, but fast on a mac? [closed]
As part of a homework, I need to process a database of vessel movement data, so I got this code:
df_line = pd.DataFrame()
#for filename in xlsx_list:
for filename in filtered_csv_list:
print(str(...
0
votes
0
answers
29
views
Concatenating multiple data frames in Python
I'm reading a pdf with multiple pages. The tables on each page have the exact same format. The resulting data frames come out as expected ([X rows x 10 cols]), except there are a few that come out ...
0
votes
2
answers
47
views
Convert presence/absence table to keyword list by group
I have a list of parameter codes that are associated with a variety of keywords. I want to store/maintain this as a presence absence matrix / table where each column represents a keyword, and each row ...
0
votes
0
answers
26
views
Scss create a variable from another variable and a string
I'm sure I'm close to my final result but for the moment, can't find out, so I ask here !
I try to make a better version of my mixin to facilitate the usage of typography in my design system, so that ...
0
votes
0
answers
22
views
Change of cells settings after adding a new data to an existing Excel Worksheet
I have the following code that appends a newly generated data to an already existing Excel Worksheet:
def save_data(data, filename, worksheet_name):
try:
# Load existing Excel file into a ...
0
votes
0
answers
151
views
CSV file not processing in concatenation if not saved manually
I am trying to run a python code that grabs data from daily csv files and processes to create a dataframe that meets the requirement.
This is code that runs fine (if I open csv file, saved and run):
...
-1
votes
0
answers
25
views
how to combine data in looker studio under each other like concat in pandas? [closed]
I have several tables in google sheets. they all have the same quantity of columns with the same name, but these tables refer to different time periods. 1 table = 1 month. I need to build a graph for ...
3
votes
3
answers
87
views
Square every digit of a number and concatenate them as a number using C (Program isn't dealing with 0 properly)
So i was asked to square every digit of the number and concatenate them and return as a number using C. But for some reason I am having problems dealing with 0 as digit and implement it in my ...
0
votes
1
answer
45
views
Power Apps Combo box concatenate display fields
I have a requirement in Power Apps Combo box concatenate display fields
I have a SharePoint list [IT Service Request], that has a choice column as Issue with the below choices:
.Outlook
.Laptop
....
-1
votes
0
answers
50
views
Concatenate csv from zip
I have more than 1000 CSV files, with the same structure (compressed size varies from 400 KB to 3531 KB)
I am trying to concatenate them in order to perform some functions to several columns (some ...
0
votes
0
answers
24
views
ffmpeg to concat list of videos without txt
iven been trying different ways to concat the list of videos called videoPaths but it doesnt work so i tried this way but it results in a zero byte file
mergeVideos() async {
String ...
-1
votes
0
answers
40
views
How to concatenate a string and numeric value in postgresql?
select
floor(artist.begin_date_year / 10) * 10 || 's' as decade
, count(artist.id) as num_artist_group
from
artist
join area on artist.area = area.id
where
...
-1
votes
1
answer
26
views
'CONCATENATE' Query workaround - Google Sheets
I am trying to create a custom string by concatenating certain columns and "_" together. I would like this ideally to be within a query function, but I know this isn't possible with ...
0
votes
0
answers
69
views
VBA Macro runs fine in my PC but gives me overflow error in Excel with work laptop
Overflow error on the debugger is highlighting this line:
concatenatedValue = IIf(isDateColumn, Format(currentData, "mm/dd/yyyy"), currentData)
Code:
Option Explicit
Sub ...
-1
votes
2
answers
45
views
coalesce vs. concat functions with NULL values
This is my table:
enter image description here
in my table i should use
SELECT
Title+' '+FirstName+' '+MiddleName+' '+LastName as FullName
from employees
Where BusinessEntityID IN (1,2,4)
But as a ...
-1
votes
0
answers
43
views
Duplicating items in array [duplicate]
I have an array with a few images, and these images are displayed when clicking on a div card,
how can I get these images to duplicate so each image will show up twice, I currently have 12 divs on my ...
0
votes
1
answer
107
views
Leave no trailing comma at the end of the result if there's only one value at the end to be concatenated [duplicate]
My current code takes selected columns and concatenates them dividing each value with a comma, inserting a column to the right of the sheet. However whenever there's a row where there's only one value ...
0
votes
1
answer
60
views
VBA using Concat function
I have a workbook with 2 sheets. In sheet 2 (B2), I want to use Concat function to combine A2 (which is a mobile number) from Sheet one and preferably use current Month and Year automatically as ...
0
votes
1
answer
32
views
How can I have two distinct inputs in keras layer?
I am trying to replicate the neural networtk architecture of the ExpertModel in AI4Animation (Github) in TensorFlow 2.
I have two neural networks with identical (dense) layers, the only difference ...
0
votes
1
answer
60
views
Dataframe Append vs pandas Concat [duplicate]
I am trying to append to a dataframe, and it is working, however I am having to use an old version of python in order to do so. I have not used pd.concat that much in the past. I am unsure of how to ...
1
vote
1
answer
99
views
String-join() function is affected by order of XML structure (Nodes)
I normally use String-join() functions extensively for handling and joining values coming from Database, however currently I observed if the second variable of the function is first fetched/present in ...
0
votes
0
answers
10
views
Concatenate field and string
I'm trying to concatenate a field with as string on FastReport and it's giving me all sorts of error.
My last attempts were:
[IIF(<fmRelOFtbTemp2."GROUP"> = '02', <fmRelOFtbTemp2.&...
0
votes
1
answer
82
views
Need to modify column concatenate VBA script to join selected columns only instead as well as to separate joined columns with a comma
I need to take this code:
Sub ConcatColumns()
Do While ActiveCell <> ""
ActiveCell.Offset(0, 1).FormulaR1C1 = _
ActiveCell.Offset(0, -1) & " " & ...
0
votes
1
answer
60
views
MySQL CONCAT_WS not working with foreign keys
I'm generating an identifier column in order to group subscriptions. The value of the column uses CONCAT_WS to concatenate different column values from within the table. However, I get an error when ...
0
votes
2
answers
41
views
Pandas error "Length of values does not match length of index" when concatenating
I have this 'Length of values does not match length of index' error popping up and breaking my code.
Here the code is to loop through a dictionary to pull out parameters and path to send to an api to ...
0
votes
1
answer
60
views
Concat files 1 & 2, 3 & 4, 5 & 6 (and so on) in a dir of 3000+ using command line [closed]
Recovered photos off my dad's digital camera card but the individual files themselves are useless. They seem to have been restored at JPEG marker points, so the info about the camera, exif info etc is ...
0
votes
0
answers
14
views
Concatenate Pivot Tables in Python to put column titles in list if they have 1
This is probably a simple question but I was just wondering if there is a Python code where if I have a pivot table that has textbook ISBNs and the associated states that are used in for school (0 ...
1
vote
2
answers
62
views
SetSourceData with concatenated range variable and worksheet name
This sub procedure is meant to update the source data (SetSourceData) for a clustered column chart. Both the chart and the table it pulls from our on the Project Dashboard worksheet.
This code is ...
0
votes
3
answers
66
views
An UDF for Concatenate Function in Excel
Hello I was wondering whether it is possible to achieve this result using VBA/UDF?
Basically what I wanted to do is to be able to concatenate various string from different cell and achieve the shown ...
1
vote
1
answer
20
views
Referencing a function argument as a column name in pivot_longer
I'm trying to write a function that uses pivot_longer, and would like to use my function object as the object of the names_to argument in pivot_longer.
record <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
...
0
votes
0
answers
37
views
Error when trying to concatenate LazyFrames horizontally in python polars
I am trying to concatenate two LazyFrames horizontally in python polars and get an error. Here is the code:
import polars as pl
df_h1 = pl.DataFrame({"l1": [1, 2], "l2": [3, 4]})....
2
votes
1
answer
35
views
The concatenation is not working for this line of code
let userName = "Kunaal";
let age = 30;
//My name is Kunaal and I am 30 years old//
let text = "My name is ${userName} and I am ${age} years old";
console.log(text);
Expected ...
-1
votes
2
answers
31
views
Problem merging duplicate row into first row with mysql
can you give me an example request showing how I can combine two duplicate lines merge one?
id
name
no
123
aaa
1,2,3
124
aaa
4,5,6
125
aaa
7,8,9
i want this
id
name
no
123
aaa
1,2,3,4,5,6,7,8,9
...
-1
votes
1
answer
42
views
How can I fix this "Error using vertcat: Dimensions of arrays being concatenated are not consistent" in MatLab?
I am writing two different pieces of code – the first creates a function "rotateAboutX" that returns a rotation matrix that rotates by an angle about x. The second uses that function to ...
0
votes
1
answer
35
views
Update column with concat subquery result SQL
I have written the following code to concat myData into one row, based on the StagingNotificationId. I now want to replace the original newData with the result of my sub query but struggling to do ...
0
votes
1
answer
46
views
How to merge dictionary of dataframes on shared column [duplicate]
I have a dictionary of 7 dataframes of t-statistic values (for a different clinical site), where each dataframe has two columns of about 100 Brain ROIs and the t statistic value for that ROI. My goal ...
0
votes
2
answers
57
views
Multiple concat with like not showing the output in sql
I am using multiple concat with like but I am not getting all the output from the table. I am using below SQL query below in the database.
select
company_id as ID,
concat(
c.list_rank, '|||...
-1
votes
1
answer
55
views
I want to concatenate multiple row sentence with condition according to another column of value [closed]
I am new to coding so I might not familiarize yet with coding.
I want to combine the sentence based on the value of column with number by cell.
For example:
value = 3
Result = Maintenance painting, To ...
1
vote
1
answer
47
views
xarray coordinate concatination
I have been confused by xr.concat and xr.DataArray for quite some time.
I keep running into an issue with adding new dimensions to an xarray.
I have my data (CP1) with coordinates (lat,lon,time) and ...
0
votes
0
answers
7
views
Unwrap text for concatenation
Some cells in my output contain wrapped text, presumably because the text was wrapped inside these cells in Excel and then the table was imported on the Postrgresql DB. Now I'm querying this table, ...
0
votes
0
answers
67
views
How to add the current date into a string in R?
I know that Sys.Date() returns the current date in YYYY-MM-DD format.
I have a script that is saving a dataset that has just been manipulated:
write.xlsx(DTAX, "C:\\User\\Me\\Documents\\File Name....
0
votes
1
answer
30
views
Capture values from multiple columns and apply trim and replace
I want to concatenate the strings from different columns in Oracle but some columns have value and others don’t have. What I want is that if the value of the last 3 characters of C1 matches to the ...
0
votes
0
answers
23
views
How to concatenate the value of an integer variable to another variable name in python? [duplicate]
Suppose the variable x = 1 and value_1 = 10. Is there a way for me to make the name of the second variable "value_+x" so that it gives an output 10?
8
votes
5
answers
5k
views
Alternative to .concat() of empty dataframe, now that it is being deprecated?
I have two dataframes that can both be empty, and I want to concat them.
Before I could just do :
output_df= pd.concat([df1, df2])
But now I run into
FutureWarning: The behavior of DataFrame ...