8,203 questions
0
votes
1
answer
49
views
Issues with tuple comparison while using a specific class that bypasses comparison
During a current school project of mine, I came up with a specific sorting algorithm which I nicknamed parallel_sort. By giving it a list of integers and a list of dictionaries, it sorts the ...
1
vote
3
answers
148
views
Comparing multiple flags at once
I have a script which checks the value of a series of flags before deciding on an execution pathway. Because of the way the script executes, the flag values are held as script properties, therefore ...
0
votes
4
answers
241
views
How can I compare two pandas DataFrames with object-type columns, with a numeric tolerance?
I have two pandas dataframes: One assembled manually in Python, the other imported from a dashboard's .csv output.
All columns in both dataframes are objects, and look like this:
2020
2021
2022
2023
0....
0
votes
3
answers
91
views
How Do Sets and Set Comparisons Work in Python? [duplicate]
I'm learning Python coming from some beginner-level experience with Java. It all makes sense for the most part, but one of the exercises kind of made me wonder what actually happens within Python.
...
1
vote
2
answers
110
views
How do I assert that two pointers are equal with GLib's testing framework?
I'm writing a unit test with GLib's testing framework where I want to check if two pointers point to the same place in memory. I do NOT want to compare the actual memory which they point to, so ...
0
votes
0
answers
52
views
EXCEL - Comparing multiple dates against a single date value for highlighting
I'm trying to use conditional formatting to compare the date output from multiple cells and columns against one date value.
The condition works but in an undesired state. The condition evaluates ...
2
votes
1
answer
206
views
Comparing initialized floating point variable to zero, again
We know that floating point values cannot be compared with the == operator, due to precision issues. However, the following code, which initializes a double variable to an integer 0, successfully ...
0
votes
2
answers
64
views
SQL row-wise comparison within group
I am trying to compute the number of events that take place within 30 minutes of one another (variable n_within_30) on the same date and in the same location.
I have tried to partition and group by ...
1
vote
1
answer
109
views
jspdf Tahoma Font rendering different from other PDF
To use the Tahoma font in my PDF I loaded the TTF file from my Windows/Fonts folder into a converter which holds a Base64 string as input to the jsPDF plugin.
Now the results show different from ...
3
votes
1
answer
105
views
Is it defined behaviour to compare two null pointers for order
I have implemented begin and end functions for MFC containers. The iterators are pointers to the internal data and may be null pointers for an empty container. What happens if both are null pointers ...
0
votes
0
answers
35
views
Test statistic T in MRPP with vegan package
I'm running mrpp() function from the package vegan. I'm currently trying to move my analysis from PCORD to R so I'm developing a code to match the results. PCORD calculates an statistics test T which ...
1
vote
0
answers
38
views
max() output depends on order when nan is present [duplicate]
I am puzzled by this behaviour of Python's max() function:
>>> a = 100
>>> n = float("nan")
>>> a
100
>>> n
nan
>>> max(a, n)
100
>>> ...
0
votes
0
answers
45
views
Parallelism for many dataframes with sparksqlcompare
I have many number of data frames up to 10. I need to compare 10 data frames with other 10 data frames which are independent to each other. Each of data frame has a specific keys to be compared. ...
1
vote
3
answers
75
views
How to filter array of objects with filter with dynamic properties count?
I have an array of objects with some bool and int properties:
let employees = [
{ isSkilled: false, isLeader: false, departmentHeadType: 0 },
{ isSkilled: true, isLeader: false, departmentHeadType:...
0
votes
0
answers
41
views
Creating scatterplot in R but want the X and Y from same column
I have trade data as shown. The countries and trade direction are not in separate fields, otherwise I think that might be easier. I would like the X axis to be one trade partner and the Y axis to be ...