Questions tagged [merge]

Merging is a generic term for combining two or more related sets of data. It is commonly associated with revision control systems when reconciling multiple changes made to a revision-controlled collection of files. Merging multiple data sets is another use of this tag.

Filter by
Sorted by
Tagged with
0 votes
2 answers
27 views

Merge Across in selected cells adding certain number of cells to the right

I made a VBA code already to select specific cells with certain values (Saturday). I want to merge across those selected cells, 4 cells to the right. Here's my code and a sample of my output. Dim rng ...
Artem's user avatar
  • 7
0 votes
1 answer
34 views

Aggregate data frame using less repetitive code than a bunch of select and merge operations

I am trying to summarize/aggregate a data frame as follows. While the code gives the correct result, it is very repetitive and I would like to to avoid that. I think that I need to use something like ...
Timur Shtatland's user avatar
0 votes
0 answers
6 views

Combing many csv files with some shared rownames in R?

I have lots of csv files with lots of compounds and some corresponding columns with data in them. Some of these files have rows with data from the data compounds and some do not. I want to merge these ...
Theo Issitt's user avatar
0 votes
0 answers
12 views

How to merge the empty rows with the row above that one? [duplicate]

What I'm trying to do is I have a PDF and I extracted the data using tabula import pandas as pd import tabula import numpy dfs = tabula.read_pdf("sample.pdf",stream=True,pages="all"...
0 votes
0 answers
15 views

Is that possible to add a column of data from one excel file to another without losing all the annotations on my first file?

I have two excels file (file1 and file2) : file1 is my working file, a list of gene IDs and many others columns with different information file2 is a file with also a list of gene IDs (some in common ...
Manon's user avatar
  • 1
2 votes
1 answer
43 views

Identifying all the entries within 7 days of some dates (pandas)

I have two dataframes. One records the date of trades: trade = pd.DataFrame({'date': ['2019-08-31', '2019-09-01', '2019-09-04'], 'person': [1, 1, 2], '...
Wendy's user avatar
  • 35
1 vote
3 answers
42 views

Dropping the key column of right data frame after merging

I'm looking for a simple way to get rid of the key column of the right table after merging it with another data frame: import pandas as pd users = pd.DataFrame({"id": [1,2,3], "name&...
Victor Mayrink's user avatar
-1 votes
1 answer
65 views

How to merge 2 datasets using SQL

I would like to merge 2 datasets EMPLOYEECOUNT and DATE table. I would like to populate previous month Employee Count if there is no new record for the current month Employee Count. Example Table 1 : ...
Gaurav B's user avatar
0 votes
0 answers
16 views

Merging Power Bi Tables based on calculated field... maybe using DAX

I have two tables such the Table1 has columns like [date,totual purchased,...] and table two has columns like [date, revenue,...], where ... is many other columns not to important. However both date ...
logan7743's user avatar
0 votes
0 answers
20 views

Get available inventory based on current inventory and new incoming inventory table using pandas

There are 2 datasets for which I am doing inventory analysis. Current Inventory Item Id Date QUANTITY Item1 14-Jan-20 100 Item2 14-Jan-20 200 Item3 14-Jan-20 500 Incoming ...
Saikip's user avatar
  • 21
0 votes
0 answers
36 views

How to do a merge as part of an if statement

I have created a function in order to cleanse currency data. I am doing this by looking at countries in the instances that the currency is missing to attempt to derive the currency. The below code is ...
andrew1990's user avatar
0 votes
1 answer
22 views

R: Applying function to single value in data.table 1 and comparing resulting individual values in vector with single values in data.table 2

I know how to apply a function to a column in data.table, receive a single value and compare within the same data.table. But, since I am a novice, I do not know how to compare the the result from the ...
Per's user avatar
  • 11
0 votes
1 answer
52 views

Slow changing dimension | SCD type 1 deleting rows from prior date data

I have implemented SCD type 1 using merge into statement in azure databricks. When I am doing first load, it’s loading the data that is expected with some just say 5000 rows for ingest date 28 Nov, ...
Saurabh's user avatar
  • 107
1 vote
1 answer
50 views

dplyr::left_join() produces missing values on new columns and/or duplicated columns

I'm merging two dataframe objects using dplyr's left_join() function, but it produces NA in newly created columns. Sometimes it did produce merged data with actual values but merged columns are ...
Chris T.'s user avatar
  • 1,749
0 votes
0 answers
4 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 ...
md abu bakar chowdhury's user avatar
-1 votes
1 answer
35 views

How to align staggered rows into 1 column variable

When merging similar csv files into a left dataset, a new column is created each time (running a loop through directory of csv files) rather than merging evverything into one column. The columns are ...
Kareem Weaver's user avatar
0 votes
0 answers
5 views

Understanding and Resolving Concurrent Modification Exception in Java Collections

I'm exploring Java programming and have encountered a situation where I need to efficiently handle concurrent operations. Could you please share insights or best practices for managing concurrency in ...
Ashish Kumar's user avatar
1 vote
1 answer
41 views

How can i merge two tables in pandas, where only specific rows gets merged?

I have two data tables as seen below. I want to merge the two tables so the closest actual date matches the planned date. I want the result to be as shown in df3. How can i do that in pandas? df1 = ...
Harris Ahmed's user avatar
0 votes
1 answer
74 views

Merge two tables from names

I have two table that has football players data and I will merge them from the name feature however one table has feature 'long_name' and other has 'short_name'. For example one player has name "...
Mocak's user avatar
  • 11
0 votes
1 answer
49 views

How to merge multiple data frames by multiple columns in R

I've been trying to figure out a way to stitch together 6 data frames that I'm working with that have about 50 columns that I want to match together. End goal is to combine all rows from each dataset ...
OFay's user avatar
  • 1
0 votes
1 answer
50 views

JavaScript runtime error while merging docx files into pdf

This is the continuation of my previous question where Tanaike proposed a solution to merge docx files into a pdf. The following code merges docx files into pdf: async function newMain() { // ...
EagleEye's user avatar
  • 282
-2 votes
1 answer
40 views

Error in Pandas DataFrame Merge - KeyError: 'Column_Name' [closed]

I'm currently working on a project involving data manipulation with Pandas in Python. I'm attempting to merge two DataFrames using the merge function, but I'm encountering a KeyError related to a ...
Abhilash Reddy's user avatar
0 votes
0 answers
59 views

Trying to Merge two DataFrames by one column in R but having some trouble

So I have two dataframes (1 and 2) and dataframe 1 has 261 rows and 36 columns and one of them is named "Player" column. Dataframe 2 has 249 rows and 6 columns and has the "Player" ...
stepback3's user avatar
-1 votes
0 answers
21 views

I'm struggling to find diff tools that give a semantic level of information

I'm interested in UI for diff to merge (2 ways and 3 ways) and I already explored some tools available, and I only found tools that give raw information (like a line has been removed or added), and ...
HL_Research's user avatar
0 votes
3 answers
94 views

Pair without replacement

I have a dataframe of treatments and I want to pair these up with suitable controls. Each control can only be assigned to one treatment. The treatments match with controls if the group is the same and ...
alig265's user avatar
1 vote
1 answer
55 views

How to make a vertical merge and count the differences over time?

I have this dataframe : CATEGORY DATE ID 0 A Sunday, January 1, 2023 Id_1 1 A Sunday, January 1, 2023 Id_2 2 A Monday, January 2, 2023 Id_1 ...
VERBOSE's user avatar
  • 635
1 vote
1 answer
49 views

Merge two datasets by partial string - R

I have two datasets both with different columns however both with names. I wanted to match the names and concatenate the rows to each other df1 <- data.frame (Name = c("Smith, Carl", &...
Parker Brew's user avatar
0 votes
0 answers
24 views

How can I merge two pandas dataframes without a common column? [duplicate]

I have a Pandas dataframe in which there is a column called "employees", another "entry time", and another "exit time". In these columns, the name of an employee, their ...
slow_learner's user avatar
1 vote
4 answers
49 views

Python - Parsing CSV to join multiple row with subbalances_ids to one

Hey I'm having some issues with parsing the CSV in python using Pandas. My file has such structure: user_id, user_main_account_id, user_subbalance_id abc1,uuid1,toJoin1 abc1,uuid1,toJoin2 abc2,uuid2,...
Instalockboomer's user avatar
0 votes
1 answer
27 views

How to do a VLOOKUP equivalent (approximate match) for multiple columns in Python?

I want to perform a vlookup equivalent for a dataframe Below is an example dataframe for an account and its time on book df1 below is the lookup table I want to map the scalar values depending on its ...
N M's user avatar
  • 11
0 votes
0 answers
36 views

SQL Server ReplMerge Process could not connect to Subscriber

I've setup the following situation: Server has a SQL Server 2019 Standard edition and is the Publisher. Local laptop has a SQL Server 2019 Express edition and is the Subscriber. Server and laptop are ...
JLeten's user avatar
  • 1
0 votes
3 answers
43 views

Python Dataframe: Expand Single "Date" Column Dataframe by Adding Second Column From a List of Names To Each Date

Let's say I have the following sample input dataframe below. Please note my real table contains hundreds of dates. Date 2023-04-02 2023-07-14 The code to create above table is: import pandas as ...
PineNuts0's user avatar
  • 4,916
-2 votes
2 answers
69 views

Combine multidimential array columns by common value

I have the following array which represents a working schedule: Array ( ..., [1] => Array ( [TIME] => Array ( ...
Viacheslav Ravdin's user avatar
1 vote
1 answer
41 views

Git merge as rebase / Cherry-pick whole branch

What I want is inspired how GitHub handles merging Pull Requests which gives you 3 options: "Create merge commit": i.e. git checkout target && git merge source "Squash": i....
Flamefire's user avatar
  • 5,431
0 votes
1 answer
28 views

Looking up the value associated with the previous date of same ticker [duplicate]

I have a reproducible example that only has 4 rows, but I am using this for a 12m row dataset. Is there an easier way to achieve what the following code does? As you can see there are a lot of steps. ...
lara_toff's user avatar
  • 412
1 vote
4 answers
72 views

How to perform a left join on two pandas dataframes for a specific use case?

Example Data: Here is a simplified representation of my dataframes: My first dataframe(df1) is like: col1 col2 col3 col4 col5 1 2 a 3 4 11 22 aa 33 44 111 222 aaa And my second dataframe(df2) is ...
Aryman Deshwal's user avatar
0 votes
1 answer
26 views

Empty columns using pd.merge

see I'm doing a simple merge between two data frames, the one I'm working with is called BD, and has about 50 columns, the other data frame is called PROD and has only three columns productID, ...
JoseM's user avatar
  • 1
0 votes
0 answers
20 views

error Illegal char <:> at index 42: com.em.app-mergeDebugResources-60:/values/values.xml, when implementation 'com.cometchat:chat-uikit-android:4.0.4'

Caused by: com.android.aaptcompiler.ResourceCompilationException: Failed to compile values resource issue whenever building app Caused by: com.android.aaptcompiler.ResourceCompilationException: Failed ...
Ranjeet Keshri's user avatar
0 votes
2 answers
51 views

MS Access - Combine Data from Multiple Records into Single Record

I have a SharePoint list which allows users from various teams across my organization to submit their level of impact for a given project. The list is configured so that each teams' level of impact is ...
LDoan's user avatar
  • 3
0 votes
1 answer
30 views

TypeScript declaration merging of interfaces in different files in an Angular project

Which way can I implement declaration merging when the interfaces are in separated files? There is an interface in file all-data.interface.ts export interface IAllData { data1: string; data2: string;...
L. Kvri's user avatar
  • 1,522
0 votes
1 answer
58 views

Merging columns from different tables based on its values of FULL JOIN result

I have two tables both with three columns, both have a week number and product category, and one has the incoming amount and the other has the outgoing amount of said product category per week. I'm ...
basrood's user avatar
  • 43
1 vote
2 answers
47 views

Perform left_join between df1 and df2 where df2 gives a range for the joining variable in df1

I am trying to merge two data frames. df1 contains company level data with columns company_name and industry_code. Say df1 looks like this: company_name industry_code A 33 B 43 C 56 D 88 df2 ...
fsure's user avatar
  • 161
0 votes
1 answer
24 views

keeping (filtering) observations in df1 based on a variable from another dataset (df2)

I have a large dataset (df1) with multiple observations per user (6 million rows), I want to only see observations from certain users. The selected list of users comes from another dataset (df2) (4000 ...
setareh seraj's user avatar
0 votes
3 answers
29 views

merge to dataframes on first part of a string

I have two dataframes df1 = pd.DataFrame({'id':['XYZ', 'ABC1', 'CDS'], 'col1':[1,2,3]}) df2 = pd.DataFrame({'id':['XYZ1', 'XYZ2', 'ABC1', 'ABC11', 'CDSS', 'CDS', 'ABC2', 'ABC', 'XYA'], ...
corianne1234's user avatar
0 votes
0 answers
20 views

Stata merge with duplicates in both master and using

Say that I have two datasets: clear all set obs 4 gen a = _n<3 gen b = "b_"+string(_n) gen n = _n tempfile data1 save `data1' clear all set obs 4 gen a = _n<3 gen c = "c_"+...
bill999's user avatar
  • 2,207
-1 votes
1 answer
58 views

Merge dataframes with duplicated rows in pandas

I have three dataframes. df1 = Ticker Entry Price Entry Date HAVELLS 1306.6 2015-01-02 TRITUR 115.43 2015-01-02 df2 = Ticker Exit Price Exit Date BRITANNIA 1200 2015-01-09 TRITUR 111.41 2015-...
Abhishek Banerjee's user avatar
0 votes
0 answers
44 views

Transforming and merging event time data in R

Let's say I have a data.frame of some event time data as such > example_data id start.f stop.f status.f start.r1 stop.r1 status.r1 start.r2 stop.r2 status.r2 1 1 0 10.0 1 0.00 ...
turtok's user avatar
  • 1
0 votes
2 answers
80 views

How to merge and deduplicate lists in Python efficiently? [duplicate]

I'd like to merge and decuplicate several lists in Python efficiently. There are 10 lists/pd.Series and each of them has approx. 200k string elements (They DO NOT have the same length). Each of them ...
cat's user avatar
  • 59
-2 votes
2 answers
38 views

Join two DataFrame with different key column name

i want to join courseFee Dataframe with febReg DataFrame. But both of them have different key column name. For courseFee is 'CID' and febReg is 'course_id'. Why in this code i can't join with only use ...
doughstone's user avatar
0 votes
0 answers
19 views

How to merge multiple text rows based on a column [duplicate]

I got this data: Input userid hello 1001 hi 1002 my name is bill 1002 how are you? 1003 can you help? ...
Tal1992's user avatar
  • 51

1
2 3 4 5
501