Giter Site home page Giter Site logo

Comments (2)

baolingz avatar baolingz commented on September 23, 2024
WITH tmp AS(
SELECT a.geotype, a.geoid, a.c, a.e, a.m, a.p, a.z, a.variable, b.c, b.e, b.m, b.p, b.z
FROM housing a
RIGHT JOIN staging.housing b
ON a.geotype = b.geotype
AND a.geogname = b.geogname
AND a.geoid = b.geoid
AND a.dataset = b.dataset
AND a.variable = b.variable
WHERE (b.e = b.p
AND b.e IS NOT NULL
AND a.p != b.p)
OR (b.m = b.z
AND b.m IS NOT NULL
AND a.z != b.z
)
)
SELECT geotype, variable, COUNT(*) FROM tmp
GROUP BY geotype, variable
ORDER BY COUNT(*) DESC;
  • After exploring the datasets, I noticed there are many records having the same value for e and p and only a couple of them have the same value for e and z.
  • Majority of these records come from geotype 'CT2010', some are from 'Boro2010' and a handful from 'City2010'
  • on average, only 5% of the total records are affected by this issue.
  • for the records having e = p, their p values are supposed to be '100'

from db-acs.

SPTKL avatar SPTKL commented on September 23, 2024

see #10

from db-acs.

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.