Questions tagged [duplicates]
The "duplicates" tag concerns detecting and/or dealing with multiple instances of items in collections.
duplicates
15,974
questions
-3
votes
1
answer
29
views
Previous objects in the list of objects are getting modified on adding the last object to the list [duplicate]
Why the previous objects get updated when last element is added in the list?
I am creating the objects inside the loop, setting their properties, adding them to their list.
But upon adding the last ...
0
votes
2
answers
51
views
Select only columns that have no duplicates considering groups
I have a rather large dataset with both long and short data inside: some columns have unique value given a subject and a visit, while other have multiple values.
The short data is duplicated to match ...
0
votes
0
answers
15
views
OpenTelemetry .NET: Metrics getting duplicated with UpDownCounters and ObservableGauges
I have just started using OpenTelemetry with .NET. I have a use case where I need to log custom metrices, such as success and failure counts in the application. To avoid data duplication, I am using ...
-1
votes
0
answers
95
views
Check if two values in an array are the same [closed]
Here is my code so far (implements a similar algorithom for Wozmon in java)
import java.util.ArrayList;
import java.util.Scanner;
public class rom {
static ArrayList<Integer> address = new ...
0
votes
0
answers
40
views
How to delete duplicates in a table?
I have written a software that every second copies the contents of a JSON file from a server into a variable (serverData). Using the json-path library I extract some information from the serverData ...
0
votes
0
answers
23
views
Deleteing duplicate entries keeping the entry that;s already there [closed]
I'm creating a check list that I have to add data to over time. I'm exporting the data from a large personnel file that has people being added to it as we progress through the project. Each time I ...
-1
votes
0
answers
30
views
Proiritize matching records by the non matching field
I am using SQL in Salesforce and with limited function options.
I need most of the records in my table but some of my records will match on all fields but 2 and I need to choose only one of those ...
0
votes
0
answers
9
views
Fold emulator, views are repeated and copied when folding/unfolding
When I fold or unfold in the emulator, the views are copied on the previous views!
What is the reason for this and the Oncreate method is called twice, these views are on a fragment in an activity...
...
0
votes
1
answer
24
views
Delete files based on availability on another directories
I have two directory, Faces and Faces_v2, I want to delete every file in Faces directory that does exist in Faces_v2 directory. This is a output from fdupes.
383051 bytes each:
livecpk/Faces_v2/Asset/...
0
votes
1
answer
28
views
I've been trying to apply unique index in combination in mongoDb database in my node.js backend, but unable to get away with the duplicate error
The movie is supposed to be added to the single document named as watchlist of all user, but i tried to apply unique index in combination of profile_id(user) and content_id(movie_id) so that same ...
-4
votes
1
answer
64
views
How can I add 'DOES NOT EXIST' to my SQL query?
I need to insert a new row from temp table (temp) if it does not exist in table (t). The problem I have is that there is not a primary key and the temp table is truncated each time its imported. I am ...
0
votes
1
answer
18
views
NiFi DeduplicateRecord processor, RecordPathException when record path provided
I have encountered an issue with DeduplicateRecord processor.
I am trying to setup a flow where I could potentially have duplicated records in a flowfile record.
For the test purposes I have used ...
-1
votes
1
answer
71
views
When looping though a dataframe looking for string values. How do I print out rows without duplicating if the search term is found multiple times? [duplicate]
I am importing pandas and reading a csv file.
import pandas as pd
df = pd.read_csv(r'C:\Users\Me\MyFile.csv')
I am converting the dataframe to strings and making the contents lowercase
df_low = df....
0
votes
1
answer
31
views
Adding percentage annotations to a graph using python
Ting to add some percentage annotations to a population pyramid, but currently the percentages are duplicated, cannot, for the life of me figure out how to fix it.
#creating a count of each male in ...
0
votes
0
answers
60
views
Python remove duplicates from sorted array not working for [1,1,1,1] [duplicate]
LeetCode: Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once.
My code works for all of the test cases so far, ...