Questions tagged [difference]
This tag may refer to 1) the difference between two numbers (i.e. the difference between 5 and 10 is 5) or 2) the things that two or more particular objects do not share in common.
1,832
questions
3
votes
5
answers
47
views
Column difference from baseline
This may be a duplicate question, I wouldn't be surprised if that's the case,
This is an example of a dataset I am dealing with
ID Type Time1 Time2 Time3
1 A1 12.23 NA ...
0
votes
0
answers
13
views
React date countdown timer with input
Hello I have one problem, I created component in which we can get difference between seconds that we type and actual seconds.
Until this point it is ok, but problem comes when I want to save state ...
-1
votes
0
answers
25
views
Calculating confidence intervals of differences in proportions between two groups with complex survey design in R
I'd like to calculate the difference in proportions and confidence intervals (CIs) between two groups (men and women) using the svychisq function in the survey package in R, accounting for the complex ...
0
votes
0
answers
10
views
create a new variable that is the result of substraction of two other varibles
I would like to know how to build a new varible that is the result of the substraction of two other existing variables
(in my case v_49 in data2.1 and v_247 in data2.1 (column vectors in that sense)).
...
0
votes
0
answers
18
views
Problem with checking differencies in two Excel using windows application form - c#
I need to make a Windows application form to check differences in two Excel sheet (the two Excel sheet can have different number of rows and columns - the column name can be used to know which column ...
0
votes
0
answers
22
views
Testing significant difference between two different IRF
I am trying to compare the difference between two impulse response functions. I have done two VAR models on the same type of data but on different time periods, I have then done an IRF on each VAR. Is ...
1
vote
1
answer
32
views
Create a new column based on condition from a column in another dataset
I have a weird pandas problem I am not sure how to begin. Here are examples of my two datasets:
df1: This dataset has a yearly metric per state.
Metric Year State
8 1996 AL
6 ...
0
votes
1
answer
21
views
Filter panel members that don't have before and after data
The context of my data is that I have (partial) time series data on the rental values for properties in a neighbourhood. A ‘treatment’ is a bank closing in the neighbourhood and I want to estimate the ...
-3
votes
0
answers
40
views
difference between C++ and Python in function (variables by refference) [duplicate]
Can anyone explain to me where does this difference come from? (between C++ and Python code)
Code in C++:
#include <iostream>
#include <vector>
void printV(std::vector<int> a) {
...
0
votes
3
answers
37
views
Calculate difference between the row counts of tables in two schemas in PostgreSQL
I have two table with same name in two different schemas (old and new dump). I would like to know the difference between the two integration.
I have two queries, that gives old and new count:
select ...
1
vote
0
answers
15
views
What is the difference between /lib/modules/version and /lib/modules/version+ (plus sign)?
Please help, who know between /lib/modules/version and /lib/modules/version+ (plus sign)
e.g. /lib/modules/3.4.61 and /lib/modules/3.4.61+.
Sorry my weak English and weak Linux (I am newbie).
0
votes
1
answer
36
views
Compare 2 files in Python and extract differences as a strings
I am trying to extract as strings all the differences in 2 files with Python. For example by doing this:
import difflib
first_file_lines = open('first_file', encoding='utf-8').readlines()
...
0
votes
1
answer
23
views
difference overlay filter ffmpeg like photoshop/affinity photo
In photoshop and affinity photo there is a nice overlay filter that basically subtracts the overlaying layer from the one bellow to make a "difference map"
Example:
Base image:
Screenshot ...
0
votes
1
answer
34
views
BigQuery how to create a column of the difference between two TIMESTAMP columns?
I have two columns in my table already in the TIMESTAMP format that show the beginning and end of bike ride data (these are called started_at and ended_at). I am attempting to create another column ...
1
vote
1
answer
18
views
To check if few values in dataframe column exists in another dataframe column
I am trying to check if values present in df1 column is present in df2 column.
df2 contains more values than df1 and cant use for loop
import pandas as pd
df1 = pd.DataFrame({'one': [2,4,6,8]})
df2 = ...
0
votes
1
answer
40
views
Compare two lists and print what is missing
I have two tables
In list TEST22, which fruits did the buyer buy!
https://docs.google.com/spreadsheets/d/1wOZWSPapMTnLGco4POGjsO2nKPdCNIiD_TCsfFjegPs/edit?usp=sharing
In the TETS2 sheet, I want to ...
-1
votes
2
answers
43
views
What's The Difference Between two php functions? [duplicate]
I'm little confused with split and explode function as they both are using for removing commas from array so why two functions? can any body describe it?
0
votes
2
answers
27
views
How to find the difference between two lists of dictionaries for a specific value?
I have two lists of dictionaries and I'd like to find the difference between them (i.e. what exists in the first list but not the second, and what exists in the second list but not the first list).
I ...
0
votes
2
answers
43
views
compute the difference of two values within 1 column
I have a big table of total 276 rows and I need to find the difference between every two rows in 1 column e.g. row1 and row2, row3 and row4, row5 and row6 etc. How can I do that? I was told to do it ...
0
votes
0
answers
8
views
phpmyadmin trigger to subtract value from previous row
I am using phpMyAdmin to manage my MySQL. I have this table:
DATE FOLLOWERS FOLLOWING DIFF FOLLOWERS
2022-01-01 9630 100
2022-01-02 9694 100
2022-...
0
votes
0
answers
25
views
Cannot get ST_DIFFERENCE to provide required outcome in PostGIS
Im used to using PostGIS to undertake a variety of functions, but for some reason am struggling to return the difference between two geometry columns [from different tables]. Assume it's me doing ...
0
votes
0
answers
7
views
Mean difference analysis for several variables at once
Is it possible to do mean difference analysis for several variables at once in R? But not for a couple of variables?
can i do a mean comparison for several variables at the same time? code in RStudio: ...
-1
votes
1
answer
51
views
What is difference between these two code snippets?
Below are two codes which first one is compiling and result is infinity loop, but with another one I get a compiler error as "Not a statement". As Math.random() returns double between 0.0 ...
-3
votes
1
answer
44
views
What is the difference between the "is" keyword and "=="? [duplicate]
What is the difference between the is keyword and the == operator in Python? Why would a programmer need to use one over the other depending on the situation?
1
vote
1
answer
31
views
Function to Conduct a Kruskal Wallis Tests for Multiple Comparison of Variables using R
Issue:
I have a dataset that doesn't meet the assumptions to conduct an ANOVA, so I need to conduct a non-parametric alternative such as the Kruskal Wallis test. Overall, I have seven parameters and I ...
1
vote
0
answers
57
views
why does the result of shapely difference still result in overlaps?
I have a simple case of two overlapping polygons. I want to remove the overlap between them using shapely difference. However, when I do that, the resulting differenced polygon, still overlaps other ...
0
votes
1
answer
31
views
Laravel 7: How to calculate difference between two time format value and store in database?
I want to calculate late entry from difference between check_in time and opening_time from Settings table and store the time value in attendance table. Time formate : 10:15:00. The check_in and ...
0
votes
1
answer
35
views
Compare two nested dictionaries in python and find records that are not present in the other dictionary
I have written code to extract record information from a folder of old csv files into dictionary A and a folder of new csv files into dictionary B. The dictionaries each look like the following with ...
0
votes
1
answer
32
views
Calculate difference between CET and UTC to handle daylight saving automatically
I am trying to handle daylight saving time (DST) in my code in more automatic way.
I want to calculate if difference between current UTC and CET time is one hour or two hours.
I have two variables ...
1
vote
1
answer
27
views
Calculating the difference of all variables to all other variables
Suppose my Dataframe look like:
w <- sample(-10:10, size =10)
x <- sample(-10:10, size =10)
y <- sample(-10:10, size =10)
z <- sample(-10:10, size =10)
df <- data.frame(w,x,y,z)
Now I ...
0
votes
1
answer
67
views
Find difference between a set of csv files in folder A compared to set of csv files in folder B
There are a number a files that need to be compared for differences in their rows; difference not as in subtraction but as in what values are different for each row of a column. Each file is named ...
0
votes
0
answers
45
views
python script that compares values in a dict and a list
I have 2 json files that i would like to compare using Python and return if there is a match or not into a new file.
If a value in ESoutput matches a value in staticlist it returns the value and the ...
-1
votes
1
answer
34
views
Write a query that shows the difference between overall average Kilometers & each category avgerage Kilometers
I am trying to show the difference between overall average Kilometers & each category avgerage Kilometers
SELECT AVG(Distance) AS avg_KM, Category
FROM project-348014.swvl.swvl
GROUP BY Category
...
0
votes
2
answers
28
views
Find difference between two table in SQL and append back result to source table & update column values only for newly inserted rows
I am new to SQL Server. I want to create a procedure which should check difference between master table & quarterly table and insert the different rows back to the master table and update the ...
1
vote
1
answer
59
views
How to subtract Date and Time Arrays to get a difference in Minutes in Excel VBA?
I've got two String-Arrays which contain Values in the following order:
Date (Year-Month-Day) and Time (Hours-Minutes-Seconds).
Here's the code:
sDateSplitArray1 = Split(sDate1, "-") ' ...
0
votes
1
answer
31
views
Pandas: how to sequentially alternate between calculating difference between two rows and skip calculation for the next row?
The idea would be to calculate the difference between the first and second rows, and store that value in the second row (similar to .diff()).
Then, skip the calculation between the second and third ...
0
votes
0
answers
27
views
Find difference between two table in SQL and append back result to source table with extra column
Please pour in your suggestions for the following SQL problem.
I have 2 tables. Table A & B.
Table A
| PID | ReleaseDate |RetiredDate
| -------- | -------------- |
| loc1 | 2021 ...
0
votes
0
answers
36
views
How do you reverse transform a Logarithmic Seasonally differenced data back to original in Python?
I have a data that is log transformed + Seasonally differenced with season=24.
How do I back transform this data to original ?
I know I could use something like this:
forecast_actual = np.exp(...
0
votes
1
answer
17
views
What is the difference between optimization algorithms and Ensembling methods?
I was going through ensemblling methods and was wondering what is the difference between the optimization techniques like gradient descent etc. And ensembling techniques like bagging, boosting etc.
0
votes
2
answers
48
views
Count character difference between two files in bash
What would be the best way to count the number of characters that are different between strings in two files. I know how to do this in Python but I need a bash solution.
File contents:
ABCDEF
ABDCEF
...
0
votes
0
answers
11
views
How to update a table by comparing an entry in two other tables in Microsoft sql?
I am new to sql manager. I am attempting to write a query that will compare two tables and display the latest entire between the two in another table. Below demonstrates what I am attempting to do in ...
0
votes
0
answers
37
views
Why is this HackerRank problem working fine with 'int' but not with 'Integer'? [duplicate]
"Birthday Cake Candles" is the name of this problem in HackerRank
This is the working code and if I replace "int" with "Integer" it is not working.
It is working for all ...
-1
votes
2
answers
72
views
How to calculate difference in minutes between START and END times in a file using Powershell or cmd
The file has the following content.
START Sun 04/17/2022 13:01:44.13
END Sun 04/17/2022 14:41:50.60
I'm trying to find a way to automate how many minutes it took from END to START time, I don't ...
1
vote
1
answer
53
views
What is the difference between function and keyword/statements?
I've seen 'del' being referred to as a keyword and as a statement. Apparently, it is not considered a function:
Python has a del statement (keyword) to delete objects, not a del function.
https://...
1
vote
2
answers
39
views
How to calculate percent through the week / month in google sheets?
I want to calculate how far I am through the week and / or the current month in Google Sheets. What's the best way to do this?
Ideally in a single cell too. I also want to account for the difference ...
0
votes
4
answers
90
views
Finding differences in arrays
I have an array in python which consists of distances in meters (chainage) between electric poles. Here’s a sample
d=([0, 98, 198, 300, 400, 500, 600, 700, 800, 900, 997, 1102, 1187, 1282, 1382, 1480, ...
1
vote
1
answer
46
views
How to find time difference between previous and following rows from specific rows
I would like to calculate the difference in time for rows before and after a specific row if it satisfies a condition. I don't want to find the difference in sequence (row 3 - row 2, row 4 - row 3, ...
0
votes
1
answer
28
views
Counting mistake in number of different elements in two strings
My code seems to have some sort of error when considering the 'Q' variable in the following code. I know when counted by hand and when looking at the values I should obtain, Q should be equal to 3. In ...
-1
votes
2
answers
185
views
How to calculate the percentage of overlap between 2 ranges with python
I would like to calculate the percentage of overlap between 2 ranges.
for example: I have two lists x and y
x ['567.630', '592.927']
y ['593.000', '618.297']
In this case I would like an output of 0 ...
1
vote
1
answer
50
views
Get a specific line before specific line in txt file after comparison
I'm doing comparison between 2 txt files and i want to add before the difference lines the name of interface which contains this line to be like below :.
First file contains :
!CfgFileCrc:f4fcebea
!...