python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Compare each line and remove the repeated/same line having the same numbers in python
For example if I have txt file with content:
12 15 33 40
9 23 44 45
22 26 76 45
9 23 44 45
I want to remove the repeated line which in this case is 9, 23, 44, 45 and replace it with only one line ins...
uman laaamak
Votes: 0
Answers: 0
Comparing two objects if they have at least one value in common
Given I have two objects, what is the simplest way to compare if they have at least one property matching (some or any)? I am not looking for a full match of a whole object A within object B but a mat...

ignite-me
Votes: 0
Answers: 2
Can i exchange two different cell data in R?
i got two dataframes in R. And i want to compare two dataframe and change the cell data.
data1
a
b
data11
data21
c
1
a
2
if i compare [data1] and [data11], if "a" ...
rainbear
Votes: 0
Answers: 1
Comparing 2 dataframes by ID
I am very new to Python. I want to compare two dataframes. They both have the same columns, first column is the key variable (ID). My goal is to print the differences.
For example:
import pandas as pd...
Nancy Gomez
Votes: 0
Answers: 0