Questions tagged [compare]
The analysis required to assess the differences and similarities between two or more entities.
10,229
questions
-1
votes
1
answer
34
views
Finding similar values pandas
I have a dataframe that I am trying to get the matching values between two columns.
import pandas as pd
data = [['thomas', 'tommy'], ['nickolas', 'nicky'], ['johnathan', 'johnny']]
df = pd.DataFrame(...
0
votes
0
answers
40
views
How does Python compare strings of different length? [duplicate]
For example suppose I run "12"<"7" , the answer is TRUE. Why?
0
votes
1
answer
14
views
What is the use of the "Repository" dropdown in Bitucket
The highlighted dropdown selections only show the current repo. Is there a setting to have it show the other repo's in the project? Would be nice to be able to use Bitbucket to compare commits and ...
0
votes
0
answers
13
views
find out if an image contains another image in emgucv
I am trying to find out with C# and emgucv if there is a smaller image inside a large image. but the smaller image has a transparent background (its sprite like).
`
using Mat result = new Mat();
...
0
votes
1
answer
79
views
Comparing data in two columns in excel
The data
I need a formula to find out if column 1 has a pair in column 2.
The aim is to find the value that does not have a pair.
I have 4,333 rows of data and doing it manually would take me hours.
...
1
vote
1
answer
33
views
how to compare user input for a password that matches a randomized challange response password?
im creating a code that asks the user to input their password as digits from a randomly generated string of digits between 1 and 3 that is beneath.
for example,
pin: 0 1 2 3 4 5 6 7 8 9
ran: 1 2 2 3 1 ...
0
votes
0
answers
37
views
comparator for c++ sort function giving errors [duplicate]
Following is solution of leetcode problem called Merge Intervals using compare function inside a sorting function
class Solution {
public:
static bool compare(vector<int> t1,vector<int> t2)...
-1
votes
0
answers
56
views
Compare key items in a list not a dictionary that are same in order to calculate those same line items for a final result
The way this list came to life was from an excel document I created that sheet 1 has channel numbers and sheet 2 has wattage values for if channel is in between a low and highValue. In trying to keep ...
-1
votes
1
answer
15
views
How do I transfer NA's from one data frame into another data frame of the same size in R
I want to update my main data frame so that I can copy the NA entries at the exact position as in my reference data frame ref. Here is an example:
main <- data.frame(Q1 = 1:5,
Q2 ...
0
votes
2
answers
26
views
compare specific column values between two dataframes in R
i have two data frames df1 and df2 where i want to compare values in a specific column present in both dataframes. How do i get the deisred output mention below in any format such a string or tibble ...
0
votes
2
answers
38
views
bash - compare integer value
I am trying to trap arrow keys without the user hitting the "return" key. The program works except for my attempt to catch the "esc" key. I have tried to compare using everything I ...
0
votes
1
answer
33
views
TIMx CHx in Output Compare Mode using STM32F4 series and Configuring CubeMx
I want to configure a CHx (could be CH1, CH2, CH3 or CH4) of a particular timer TIMx in the output compare mode. I want to utilize the CCRx (Capture/Compare Register of that individual channel) to ...
0
votes
2
answers
44
views
Is it possible to check a dynamic path in a python dictionary?
I would like to know if it is possible to dynamically loop through paths in a a jira object and print the value if it doesn't match ?
I have two objects, with have a bunch of fields....
jira_object_1
{...
0
votes
1
answer
25
views
compare two spreadsheet and highlight rows don't exist in the first file
I have two workbooks/spreadsheets - one has 11000 rows and one has 8000.
They both have 10 columns.
I am looking for a way to show what row entries are in the 11000 file that aren't in the 8000 file.
...
0
votes
0
answers
20
views
Please explain about comparing objects in Python [duplicate]
#python strange compare
import pickle
import os.path
class Example:
def __init__(self, test01, test02, test03):
self.test01 = test01
self.test02 = test02
self.test03 = ...
2
votes
6
answers
103
views
In linux I want to compare yesterday's file to today's file getting only changes from today as the output, ignoring some fields
I have 2 pipe delimited files. yesterday.txt and today.txt
yesterday.txt:
1234|12|Bill|Blatt|programmer
3243|34|Bill|Blatt|dentist
98734|25|Jack|Blatt|programmer
748567|31|Mark|Spark|magician
today....
2
votes
5
answers
61
views
How to compare one set of columns with another set of columns?
Consider that we have the below data
df <- data.frame(jan=c(10,7,1),
feb=c(20,9,2),
mar=c(30,6,3),
apr=c(5,5,4),
may=c(0,9,5),
jun=c(10,8,6)
)
...
0
votes
1
answer
28
views
Do a custom comparison between Strings of different columns in a Python Pandas DataFrame
I want to use Pandas to do an automated analysis of formal criteria for SW requirements.
One criteria would be, that requirements do not have a lower ASIL level, than the requirements that they are ...
0
votes
0
answers
20
views
How to compare two json and get difference as original input json format in groovy/java script
I have to compare two json object and need to get their differences in the same format as input json.
For example I have input json 1 as follow:
{
"entities": [
{
&...
0
votes
0
answers
26
views
Unexpected 1 Error From IF Statement with GTR When Running Windows Command Batch File [duplicate]
I have the following code. I want it to go through every folder in the start folder and count the number of .mkv files. Then if there are more than 1 I want it to print the .mkv files. Then move to ...
-1
votes
1
answer
51
views
how do do comparison 2 columns and then calculate in excel?
I have an excel file with following data :
tab AA :
tab BB :
this is just a small example, I have more than 300 names and thousands rows in my excel , and the clock under each name does not always ...
1
vote
2
answers
46
views
PY - Compare several CSV file
I have several .csv files and some of them have more header and so more columns than others files.
I want to fill the missing columns into the files that don't have it
I tried this :
import os
import ...
0
votes
2
answers
57
views
How to compare the date entered in the date input tag with the newly entered date
I want to compare the already entered date with the newly entered date in one date input tag, and display a warning if the newly entered date is earlier than the already entered date.
However, the ...
0
votes
0
answers
9
views
Compare two data sets from different periods
I want to compare two data sets (XLS) and easily identify differences. Each data set has the same structure: Loans information in rows and in columns the amount each loan amortizes in a calendar year (...
-2
votes
0
answers
13
views
compare values of object in js [duplicate]
I'm trying to compare 2 objects by their values not by their reference, hence strict & loose equality oparator aren't useful.
EXP:
let cars = [{
"color": "purple",
"type": "minivan",
...
0
votes
1
answer
114
views
PowerShell Compare-Object filtering
Attempting to filter files from two source locations and one destination. All 3 contain files and are very mismatched.
All files in locations correctly get pulled using:
$Source1Files = Get-ChildItem -...
-1
votes
1
answer
10
views
Missing element to complete a palindrome by python
I don't know how to do it USING PYTHON.
But the program must print the missing letter in the given palindrome.
INPUT should be:
input_string="abcdeedba"
OUTPUT should be:
c
I guess we can ...
0
votes
1
answer
29
views
Compare i+1 to i in a list, remove by condition, continue comparing only with remaining elements
I have a df with the headers "date" and "dif_to_forelast" and a function with a for-loop that identifies clusters where dif_to_forelast is <= -0.1. It extracts the first date of ...
0
votes
1
answer
17
views
Grouping lists in list-of-lists using tolerance and even if lists are shifted
I'm trying to compare shapes of rectangular (or similar) panels.
I'm breaking these polylines into lists of tuples with a line vector and curve lengths.
Now I need to compare each list to all other ...
0
votes
3
answers
107
views
How to compare (diff) two large CSV files where order does not matter
I'm struggling with comparing (diff'ing) 2 large CSV files.
The order of rows doesn't matter
I don't need to print the differences or anything, just a True or False.
For example:
File 1
a,b,c,d
e,f,...
0
votes
1
answer
47
views
Need a query to show mismatched data on comparing tables
I have 2 tables: tab_Def and tab_Prod with same columns and same data.
Table tab_Def is a default table that has model data. Table tab_Prod is a production table on which some updates may be made but ...
0
votes
2
answers
46
views
rbindlist with different variable names / positions in R: Creating an output dataframe/file
I have a question that is a combination of two different posts.
Combine (rbind) data frames and create column with name of original data frames
Compare the column names of multiple CSV files in R
I am ...
-1
votes
2
answers
51
views
EXCEL comparing 2 id columns for new entries
I know it is a pretty basic procedure, but I am looking for a cleaner way to accomplish it.
I have two lists each one with an ID and a Name column and I would like to compare the two unique ID columns ...
1
vote
0
answers
7
views
Team, please what perl utility command can I use to list out all files not contained on a small set from a bigger set?
I have 2 listings. List A is a bigger one which contains everything. Then, I have a smaller list, B, which is an extract from List A. I need a guide on how I can write a perl script that can list all ...
0
votes
0
answers
30
views
Why is v2 == v2 false when it should be true? [duplicate]
I have an issue with my JavaScript code that is so stupid that I doubt anyone can help. But here it is: There is a variable called v2 and apparently if I do v2 == v2 it returns false. I can't figure ...
1
vote
0
answers
40
views
Check that the next FirstOnlyDesignNumber is the value of the previous NextDesignNumber In PowerShell
I have the following code:
try
{
#Connect to the SQL server and retrieves the data
$query = 'Query.sql'
$SQLConnection = Invoke-Sqlcmd2 -ServerInstance "$Instance"...
0
votes
0
answers
41
views
Comparing CLOB data types in SQL
I have table which have a column of datatype like CLOB.
create table t (
c1 clob
);
The data inserted is in Key Value pair like below
insert into t values ([{"overallOutcome1":"Suitable&...
0
votes
1
answer
43
views
comparing integer with multiple conditions in powershell
Sorry for the "stupid" question but I'm going crazy!
I need to understand if a variable exist and, if exist, checking also if its value isn't 0.
I can use multiple conditions, or I've to use ...
0
votes
0
answers
46
views
PS - compare WMI query for docking station version to specific value
Trying to figure out how to compare the returned value of a WMI query to a set value.
I.e.
Get-WmiObject -class HP_DockAccessory -computername $_ -namespace root/HP/InstrumentedServices/v1 | Select ...
0
votes
2
answers
73
views
Dart How to compare 2 List <double> with rounded values?
I welcome everyone. Can you please tell me how to compare 2 List, rounding the values, for example, to two decimal places?
We have
var list1 = [3425,5559394484, 2351,4392210480, -2384,4831199322];
var ...
1
vote
2
answers
100
views
PowerShell: Why are these file comparison times so different?
Edit: I have changed the title of this question from "PowerShell: Why is this timing not working?" I originally thought the times reported had to be wrong, but I was wrong about that. The ...
0
votes
0
answers
16
views
Adding percent increase/decrease labels comparing to a control in ggplot2 [duplicate]
I need to compare my treatments for each day to the control and then add percent labels to the top of the bars. I have already calculated the values and would like it to look something like this:
...
0
votes
0
answers
13
views
Python - Pandas compare 2 DataFrames and get difference [duplicate]
I would need help with task I have. I have 2 dataframes containing almost same information and one Dataframe has 2 more columns. I need to get all lines from one DataFrame (all columns) based on ...
0
votes
1
answer
38
views
flutter Compare complex 2 List<Object>
I'm still new to flutter, I need your help.
I get the data from a json file that has a nested class structure.
Example:
[
{
"name" : User 1
"phone": [
"+793476522"
"...
0
votes
4
answers
37
views
Compare and add word if not found in the list
This is the code i am trying:
file1 = open("romeo.txt")
list_orig=[]
list_distinct=[]
for line in file1:
words=line.split()
list_orig=list_orig+words
for word in words:
if word in ...
0
votes
1
answer
96
views
CS50x, pset3 tideman, vote, preferences
Hi these are my functions for Tideman pset3, the problem is that when I run check50, it says that the vote function did not correctly set ranks and preferences did not correctly set preference for ...
-1
votes
2
answers
118
views
SQL query to compare the average of two different sql queries with dates
I have a table with name_id, date and col1-col5 with rates.
I'm looking for a solution to compare the average of the rates of the latest day with the average of the rates of the day before the latest ...
2
votes
3
answers
51
views
Compare the values of same products from past and present
I am very new with R and need to solve a problem. So need your help. I have 3 people A, B, C, selling different products like car, house, watch, dress, jewellery etc at 2009 and again 2020.
For year ...
0
votes
2
answers
44
views
How to diff a very long csv with a very long txt
I have two CSVs:
beta.csv: where multiple NPCs have multiple items (some items are currently invalid)
NPC,Item
NPC 1,Item 1
NPC 1,Item 2
NPC 2,Item 1
NPC 2,Item 3
NPC 3,Item 2
NPC 4,Item 1
NPC 4,Item ...
2
votes
2
answers
61
views
Pandas compare method to show differences and keep only one column equal
I have 2 dataframes with the same shape and 20 columns each one.
I want to compare them and obviously the easiest way to do it is to use pandas compare. Assuming that one column never changes and it's ...