Questions tagged [duplicates]
The "duplicates" tag concerns detecting and/or dealing with multiple instances of items in collections.
15,846
questions
0
votes
0
answers
19
views
r retain non zero rows in case of duplicates
I have a dataset with duplicate rows if we group by two columns
ID Group Value
1 z1 0
1 z1 0.81
2 z2 2.89
2 z2 1.53
3 z1 ...
0
votes
1
answer
29
views
r retain duplicates after group by not min value
I have a dataset like this.
ID Group Value Col3
1 z1 1.29 1
1 z1 0.81 1
2 z2 2.89 1
2 z2 1.53 2
3 z1 0.13 ...
0
votes
1
answer
22
views
Highlighting Non-Consecutive Duplicates in Google Sheets
I'm trying to show duplicates for a column in google sheets. I can show all duplicates using =countif(B:B,B:B)>1. In this case though, I only want it to highlight them if they are NOT consecutive. ...
0
votes
2
answers
122
views
Delphi TWinControl duplicating its children at runtime
When I build this component and place it on a form, all appears fine. However, when I run the program, the control duplicates all of its children. It appears to be calling the initialize components ...
0
votes
0
answers
13
views
Using a usb camera and a Raspbery Pi Zero 2W to create a fake stereo image
I'm pretty new at this but I have put quite a bit of work in to it and go nowhere so I am hoping one of you will be able and willing to help out.
I have built some 3D night vision goggles. I bought a ...
0
votes
0
answers
26
views
How can I remove duplicate masks from segment-anything?
I have a microscobic image dataset and I want to segment each texture of that image. I have used segment-anything model to segment these textures and strictly speaking it provides very good results ...
-1
votes
0
answers
9
views
Finding Image Duplicates with CLI. Need an AI tool that can find Image Duplicates with CLI not GUI [closed]
I have Artikle Images from an Online shop. These Images have always duplicates, but those duplicates have different Sizes, resolutions and borders. sometimes the Image hast a White border but the ...
-1
votes
0
answers
5
views
Duplicated folder after cutting and pasting in network folder
I have a folder that is located into another computer and shared across my network. Under it I have several folders with files and subfolders.
When I cut and paste some of these subfolders in the same ...
-1
votes
0
answers
16
views
Duplicates Lists set [duplicate]
What's the most efficient way in Python to remove duplicate values from a list?
I attempted to use the set() function to convert the list into a set, as sets automatically eliminate duplicates. ...
-1
votes
0
answers
37
views
How to delete all the duplicate rows in SQL Server including the original one [duplicate]
How to delete all the duplicate rows in SQL Server including the original one.
I see lot of ways where you can delete duplicate rows in SQL Server. However, in the end there is always one original row ...
0
votes
1
answer
31
views
Error Code: 1241. Operand should contain 1 column(s) when delete duplicate
delete from dupp
where empno in (select empno,count() from dupp
group by empno
having count()>1)
Error Code: 1241. Operand should contain 1 column(s)
what can i do to slove this ??/
i want to ...
1
vote
2
answers
28
views
duplicate key update with select
I have gone through several posts but unable to find the exact fix. Here is what I want -
Table1 - column1, column2, column3, amount as column4
Table2 - column1, column2, column3, amount as column4
I ...
-3
votes
0
answers
25
views
How can we remove duplicates from python? [duplicate]
what are duplicates in python , and how can we remove duplicates from a list in python?
what are duplicates in python , and how can we remove duplicates from a list in python? what is the difference ...
-2
votes
0
answers
40
views
removing duplicates element in an array
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
vector<int>ans;
int n=nums.size();
sort(nums.begin(),nums.end());
...
0
votes
3
answers
78
views
If two consecutive columns are equal and adjacent column has variations find those entries
For Excel, I want to compare all consecutive cells in a column with the values in adjacent column. If there is a variation for same consecutive cells having same values, I want to copy the entire row ...
0
votes
0
answers
30
views
Does Insert with select guarantees non duplicate entry in postgres [duplicate]
I am trying to implement a logic where I need to check if there is any row with same value of a particular column already exists. If exists then it should not insert else it should insert.
Below is ...
2
votes
2
answers
44
views
Remove duplicates from a CSV file based on two columns
I have a CSV (in $inputCsv) with three columns from which I would like to remove duplicates from SubName while keeping the minimum Rank category (minimum = TEST1 and maximum = TEST3)
Name SubName ...
0
votes
3
answers
96
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 ...
1
vote
1
answer
30
views
remove duplicate rows but one, and create a df with unique and duplicate rows with a column with count of duplicates in R [duplicate]
In R I have a dataframe, and I would like to have a new dataframe where a new last column has the count of how many identical rows there are of each row in the original dataframe. But with only one ...
0
votes
0
answers
30
views
how to match the re pattern matched earlier in the or pattern [duplicate]
i have re pattern
(?:\S*\s?){0,1}three(?:\S*\s?){0,2}|(?:\S*\s?){0,1}five(?:\S*\s?){0,2}
i have text
one two three four five six seven eight nine ten
I want the matching result of regex pattern to ...
-1
votes
0
answers
53
views
How can I efficiently remove duplicates from a list in Python? [duplicate]
I have a list that may contain duplicates and I need to remove them while maintaining the order of the remaining elements.
I have tried to use the set() function, but it doesn't preserve the original ...
0
votes
1
answer
88
views
How to delete duplicate rows that have same data except one column [duplicate]
I am trying to delete duplicate rows but leaving recent updated rows.
Here is illustration of my dataset:
I am trying to delete two rows that are older data (in this case 11/19's - highlighted in ...
0
votes
0
answers
10
views
PowerApps duplicate selection (Dataverse)
I have a datatable in PowerApps in which I only want to show rows with duplicate values.
In that table I have quite a few columns, it's just the 'Title' column that I want to use to show duplicate ...
-3
votes
0
answers
59
views
Removing Duplicates in an SQL Query [duplicate]
I have a query that pulls data for individual who became members at my company. I want to see how many new members we get each month. To do this I use the Social Security # because it is unique to the ...
0
votes
1
answer
41
views
Removing Dupes while parsing/scraping
I have read and did some research, I can get duplicates removed while loading a list from file dialog, but how do you auto remove dupes while scraping/parsing. Below is my code and the hash tags are ...
0
votes
0
answers
14
views
Elasticsearch: Count Document that Have Duplicated data in Field
I am writing to ask if there is a way in Elasticsearch to get a count of all documents that have duplicates in a field: Consider a document in Elasticsearch that look like following:
{ "...
-2
votes
1
answer
88
views
How to find duplicates in the list
I'm trying to find duplicates in the list acc to the pattern presented below. Let's say I have a list of lists like this and second value in each list determines if the item is a duplicate (in this ...
1
vote
1
answer
37
views
SAS removing duplicate values with blanks
I need to remove duplicate values with the one with blanks from SAS: Example data below
Match
forename
surname
dob
id
purple
John
will
220985
1
John
will
220985
1
green
donny
aman
210784
2
tyrone
...
0
votes
0
answers
25
views
SimHash general explanation and details
I'm trying to find a more detailed explanation of what SimHash is and what it does (how to implement it) . Help?
Can't seem to find a proper detailed explanation anywhere, only in general what it is, ...
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_"+...
1
vote
1
answer
32
views
Python data clean in adjacent columns
I have a dataframe where some of the values in the 'Type' column are incorrect:
ID
Type
Other Data
ABC
10.0
56
ABC
10.0
34
ABC
0.0
78
DEF
20.0
45
DEF
0.0
23
ZWS
20.0
99
TYH
10.0
12
TYH
10.0
...
0
votes
1
answer
27
views
Pandas - drop records if on specific column value is equal to previous record [duplicate]
I have a dataframe like following (sorted by id, time and status):
id
status
timestamp
111
A
29.08.2023 12:39
111
A
29.08.2023 12:45
111
B
29.08.2023 12:47
111
C
29.08.2023 12:50
111
A
29.08....
-2
votes
1
answer
69
views
SQL Server Duplicate
I need to find duplicates in a table named lead, which contains around 100k records. The duplicates have similar values in the company column, such as:
The goal is to retain only the latest leadid (...
1
vote
2
answers
120
views
Get Non repeating elements on 2 column and have 1:1 records between both columns, dedup in sequential order pyspark
I have a pyspark dataframe with 2 columns. I need to get a dataframe without any repeating elements in the preceeding rows of that column. If an element is repeated then than entire row should be ...
-1
votes
1
answer
65
views
How can I print the values of duplicate keys in a dictionary?
It's only printing the last key, value pair in the Nested titles.
Here's the code I am using:
def displayAllTabs(dict_items):
for dict in dict_items:
title = dict.get("Title")
...
0
votes
0
answers
9
views
I have duplicate proceed to checkout buttons, how to disable one with css
Two buttons appear on the checkout page with the same function (proceed to checkout). The error is in the Astra theme for Elementor, I changed the theme and the second button disappeared. I need to ...
-2
votes
1
answer
46
views
I am creating a live database that timestamps a process. Timestamps of duplicate entries are not going in the correct row
[In this image, when the same serial number is entered, the timestamp does not go in the row of original entry when the duplicate entry is entered. I am trying to fix this. The code does delete ...
-2
votes
1
answer
25
views
Background duplicates on burgermenu when adjusting height
In my burgermenu when I try to adjust the height the background-color duplicates
.bm-menu {
background-color: rgba(255, 255, 255, 0.9);
height: 60vh;
position: fixed;
transition: top 0....
0
votes
0
answers
20
views
Copy data from one Chrome tab into another Chrome tab
I need to duplicate specific data from a web page in Chrome to another web page in Chrome. More specifically, I need to propagate simple text fields such as first name, last name, city, postal code, ...
0
votes
0
answers
11
views
Commissions Saved Search
I am getting duplicate lines on my saved search when adding APPLYING LINK TYPE
APPLYING TRANSACTION. It then shows one invoice closed out by an invoice and credit when it should only show closed out ...
0
votes
0
answers
38
views
How to count duplicate rows in Excel?
I would like to know how to count duplicate rows in Excel. By duplicate rows I mean whole rows, for example:
(row number)
A
B
C
1
Butter
2
10$
2
Pillow
2
10%
3
Butter
2
9,99$
4
Butter
2
10$
And ...
-2
votes
1
answer
27
views
Duplicate testing in Excel
I need an excel formular to do advance Exact match and identify same record or different record
I have over 100,000 rows.
I have been able to test for duplicate but I want to further check using ...
0
votes
0
answers
21
views
Copy Whole Spreadsheet and keep Custom Permissions
I have a budget spreadsheet for 2023. It has protected ranges. The permissions are set so that myself and my manager can make edits to all of the protected ranges (I did this through setting a custom ...
-1
votes
0
answers
27
views
when I copy and paste data into the csv, the other columns are duplicated
When running the code, it works fine, but it duplicates the information in the other columns. I want to create new lines in all columns and fill only a specific column by dividing the text separated ...
0
votes
0
answers
49
views
html_read() creates text duplicates even after removing "span"
so I have run into a bit of an issue with webscraping. I have a page I want to extract the text from. My code looks basically like this:
url = read_html("linkgoeshere")
url %>%
...
0
votes
2
answers
55
views
Pandas dataframe remove duplicates if duplicate count is more than 1 and matches a condition
I have data which looks like this:
data = [['ABC','A','Good Value'], ['DEF','V','Good Value'], ['ABC','A','Unclear Value'], ['XYZ','B','Good Value'], ['LMN','N','Unclear Value'], ['JKL','M','Best ...
0
votes
1
answer
43
views
How do I remove duplicate text in DropdownMenuItem?
When I ran this code, As a result, this is my output that too many same texts in DropdownMenuItem as list
---> that's my output pic
My API DATA (Json Form) ---> Caution!!!!: That's not all of ...
-2
votes
1
answer
52
views
How to search for duplicate strings in SQL Developer?
I have a data set from which I want to extract particular columns matched on the column long_description. In other words, two rows have different data except for long_description column, which should ...
4
votes
4
answers
174
views
Finding the last row that meets conditions of a mask
This is my dataframe:
df = pd.DataFrame({'a': [20, 21, 333, 444], 'b': [20, 20, 20, 20]})
I want to create column c by using this mask:
mask = (df.a >= df.b)
And I want to get the last row that ...
-1
votes
1
answer
26
views
Multiple field: Mongodb Duplicate key: {..., null}
Email is set to unique for accountType = email, username is also set to unique for accountType = username. Mongodb sends this for accountType = username. The key is not { username: "username"...