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.

Use this tag for questions that deal with either of the following two topics:

  1. The difference between two numbers.
  2. What two or more particular objects do not share in common.

Related tags:

1970 questions
0
votes
3 answers

Failing to retrieve difference between two lists

Set-up I have two lists containing unique ID's: tl and yl. An ID looks like '97678410'. len(tl) = 185 and len(yl) = 182. Problem I need the difference between the two lists. That is, I want to obtain a list containing all ID's which are in tl but…
LucSpan
  • 1,831
  • 6
  • 31
  • 66
0
votes
1 answer

MYSQL - select difference of rows counts in two tables

I am trying to compare number of rows of two tables in two databases. The number of rows should be the same : SELECT (SELECT COUNT(*) FROM db1.table1)- (SELECT COUNT(*) FROM db2.table1) AS difference How do i select only if difference<>0? I need…
0
votes
1 answer

Difference between a range of values of txt files

So I have 10 txt files named A_1,A_2,......A_10 and a working txt file named A. In each column of these txt files, there are 4320 values. My goal is to only compare the first 1440 values of any column of the A txt file with the other 10 txt…
Hrihaan
  • 275
  • 5
  • 21
0
votes
1 answer

Different font-weight for special characters

i have problem with font-weight, for "EN" languages it is working fine, but when I do the same thing with with my lang (SK) some characters have different font weight. Font is 'Open Sans'. When I try these chars in font.google viewer there is no…
0
votes
2 answers

Create pandas df from difference between two dfs

Set-up I have two pandas data frames df1 and df2, each containing two columns with observations for id and its respective url, | id | url | | id | url | ------------ ------------ | 1 | url | | 2 | url | | 2 | url | …
LucSpan
  • 1,831
  • 6
  • 31
  • 66
0
votes
0 answers

find difference of 2 images that may also be different sizes

I have 2 pdf files that have multiple layers of images. The images are black and white diagrams and should be almost identical. Problem is that the position of the diagrams in the canvas may be offset by a little (>3%) and they may be scaled to…
0
votes
3 answers

C loop with two conditions - difference

Whats the difference between: int i; for( i=0;i<5 && i<3;i++) { printf("stackoverflow.com"); } and int i; for( i=0;i<5 , i<3;i++) { printf("stackoverflow.com"); } I mean use of && instead of ',' Regards
Sheep
  • 49
  • 1
  • 7
0
votes
1 answer

Calculate time duration using python

>>> M1 ['month:12;year:2006', 'month:7;year:2010'] >>> M2 ['month:5;year:2006', 'month:3;year:2010'] >>> M3 ['year:2006'; 'month:4;year:2010'] I have 3 list item M1, M2, M3 M1[0] is the Start date M2[0] is the End date is it possible to convert…
Ahsan Khan
  • 21
  • 6
0
votes
1 answer

unexpected results getting differences between python list A and B

I have two lists of string names: >>> len(list_a) 14740 >>> len(list_b) 14277 I need to get the 463 names in list_a that are not in list_b. Based on other articles and answers, I have tried: a_set = set(list_a) b_set = set(list_b) diff1 = a_set -…
screwed
  • 73
  • 1
  • 1
  • 9
0
votes
1 answer

Time differences between rows with given sequential pattern

I have a data table describing the times of ON and OFF states for two different devices. ON is represented by -1 and 1, OFF is represented by 0. myData <- data.frame( date = as.POSIXct(c( '2017-06-12 19:35:51','2017-06-12…
DianaLog
  • 326
  • 2
  • 9
0
votes
2 answers

How do I conditionally merge rows based on rows difference in PostgreSQL?

I have gone through some relevant merging questions but my problem is slightly different from the existing ones. I have a table in my PostgreSQL 9.5 database containing four columns i.e., Segment (unique group), height (numeric), lower_limit…
khajlk
  • 791
  • 1
  • 12
  • 32
0
votes
2 answers

C++ public variable scope confusion

If you declare a public variable in a class, then you can modify that variable from any function that is also a member of that class. If you declare a variable within a function, then its scope doesn't exceed the bounds of the function. So is a…
0
votes
1 answer

How can I undo differencing (lag order 1) of a square-root transformed variable? [ARIMA()]

I am using statsmodels.tsa.arima_model.ARIMA, and I took the square root transform of the endogenous variable before plugging it into the algorithm. The model uses a differencing order of 1: model = ARIMA(sj_sqrt, order=(2, 1, 0)) After fitting the…
Renel Chesak
  • 577
  • 6
  • 16
0
votes
3 answers

Extract the discriminating rows of two dataframes in R

I have two dataframes structured like this: X A B C SUM E 1 0 1 2 F 0 0 1 1 G 1 1 0 2 and this: X A B C SUM E 1 0 1 2 F 0 0 1 1 G 1 1 0 2 H 0 0 1 1 I 0 0 0 0 The result that i want to obtain is: X A B C H 0 0 1…
Silvia
  • 405
  • 4
  • 17
0
votes
1 answer

Calculate difference scrore across factors in R

I have the following dataframe Class Behavior mean 1 BH Baseline 5 2 BH Drnk 3 3 BH Lvr 2 4 BH Tone 1 5 NB Baseline 6 6 NB Drnk 3 7 NB Lvr 2 I want to…
Stella
  • 15
  • 3