Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify and Identify Duplicates By ID #4

Open
theryankelly opened this issue Feb 25, 2022 · 0 comments
Open

Clarify and Identify Duplicates By ID #4

theryankelly opened this issue Feb 25, 2022 · 0 comments

Comments

@theryankelly
Copy link

theryankelly commented Feb 25, 2022

Prior reviews of data that came out of the aggregator identified that if a listing appeared in multiple weeks' scrapes, it would appear multiple times in the data. This is to be expected. As there is no unique posting id captured we need to first clarify our current process is for removing these records.

One key place where this deduplication happens is in the cleaner script after adjusting titles runs this script:

 #Remove duplicate titles
  listing <- listing[!(listing$title == 'None'), ]
  listing$uniqueid <- paste(listing$ask,listing$bedrooms,listing$title,listing$latitude,listing$longitude)
  listing <- subset(listing[!duplicated( listing$uniqueid), ]) 

We need to confirm that records with all matching fields besides created date (the date we capture, not the posting_date) are being accurately removed before any further cleaning or analysis is completed.

After this review process, we will move to implement appropriate steps to remove duplicate captures of the same postings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant