• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Only keep values that have a duplicate within the row or in another row R

Resolved: Only keep values that have a duplicate within the row or in another row R

0
By Isaac Tonny on 16/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I am trying to identify Ethereum addresses in my dataframe that are not only buyers but also seller. The dataframe consists of transactions with that have the following variables:
hash, seller, buyer, ethamount, buyerid, date, price, dollvalue enter image description here
I want to remove all rows that have a buyer or seller address that is unique in the dataset, meaning it is only involved in one transaction.I tried this in excel but it is far too slow since my original dataset has more than three million rows.
looks like this after I removed the other variables for simplification but I am not sure whether there is a purchase sale pair included, hence the screenshot in which the red marked address ending on 9a36 would be an example of an address I want to keep.
I hope this i somewhat clear, I could not find any other questoions related to this, anything else was related to single columns but nothing regarding duplicates over two columns. Any type of help is appreciated, thank you very much in advance.

Answer:

You could create a vector keep that holds the ids of sellers/buyers that occur more than once; then use that to filter the rows of the table

If you have better answer, please add a comment about this, thank you!

bigdata duplicates ethereum r transactions
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Openlayers: Update clusters depending on filter (geometryFunction)

24/03/2023

Resolved: Getting ‘502 Bad Gateway’ while deploying Springboot app in EKS

24/03/2023

Resolved: Why is NGINX’s $request_uri empty?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.