Giter Club home page Giter Club logo

Comments (9)

palewire avatar palewire commented on June 12, 2024 1

The pandas stuff is just to explore the data and document what I find. I think our ultimate solution will be something else, and will likely also involve some upstream patches to our scrapers.

from warn-transformer.

palewire avatar palewire commented on June 12, 2024

I've identified some here. It looks like our hashing method does seem to condense the detection

https://github.com/biglocalnews/warn-transformer/blob/main/_notebooks/duplicates.ipynb

from warn-transformer.

zstumgoren avatar zstumgoren commented on June 12, 2024

Is notebook/pandas approach for experimentation purposes? Wondering if we could just use sets + tuples to perform a basic dedupe in the production pipeline code to keep things light-weight...

from warn-transformer.

palewire avatar palewire commented on June 12, 2024

Alabama is clearly caused by the source
Screenshot from 2022-02-03 12-04-22

from warn-transformer.

palewire avatar palewire commented on June 12, 2024

California dupes also appear in the raw source materials. Not sure why, but we're not introducing it.
Screenshot from 2022-02-04 06-37-12
Screenshot from 2022-02-04 06-36-56

from warn-transformer.

palewire avatar palewire commented on June 12, 2024

Same goes for Texas
Screenshot from 2022-02-04 06-39-50

from warn-transformer.

cephillips avatar cephillips commented on June 12, 2024

many of these files have numerous dupes. Could be not complete dupes, with some date differences, and slight changes in dates or number of employees. From what I understand, if there is any change, the company submits a new WARN notice to make sure they comply and it gets added. Additionally, if there are multiple locations, the data may be reflecting multiple layoffs from the same company though, so something to watch for.

from warn-transformer.

palewire avatar palewire commented on June 12, 2024

Gotcha. Now that I've verified these "exact dupes" come from the source, and aren't introduced as bugs in our code, I think I'm going to take the step of eliminating them from our dataset at this point.

from warn-transformer.

cephillips avatar cephillips commented on June 12, 2024

makes sense

from warn-transformer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.