GithubHelp home page GithubHelp logo

Comments (4)

sid-kap avatar sid-kap commented on August 27, 2024

For zooming in, what kind of interface did you have in mind? Like, using the scroll bar or a slider or something? And would the zoom only be for the x axis, or both axes?

I could see zooming both x and y axis as being useful, but the tricky thing is that if you have both axes turned on for zooming, then you can't also zoom one or the other by itself with the scroll wheel/two finger trackpad scroll (see https://vega.github.io/vega-lite/docs/zoom.html for an example).

from housing-data.

sid-kap avatar sid-kap commented on August 27, 2024

I definitely want to add per capita numbers for states! To get the per capita numbers for each year, I think we would want to divide the housing units in year X by the population in that year—does that makes sense? This means we would need an intercensal estimate of each state's population for each year between 1980 and 2020.

Looks like 1980-1990 estimates are here: https://www.census.gov/data/tables/time-series/demo/popest/pre-1980-state.html
1990-2000 are here: https://www.census.gov/data/tables/time-series/demo/popest/intercensal-1990-2000-state-and-county-totals.html
2000-2010 are here: https://www.census.gov/data/tables/time-series/demo/popest/intercensal-2000-2010-state.html
2010-2019 are here: https://www.census.gov/data/tables/time-series/demo/popest/2010s-state-total.html

If you're interested in taking a stab, a good first step would be writing a python script to parse each of these data series into a pandas DataFrame containing the columns: year, state name, and population.

from housing-data.

Jskobos avatar Jskobos commented on August 27, 2024

Yeah that makes sense. I'll give this a shot and let you know how it goes. Thanks

from housing-data.

sid-kap avatar sid-kap commented on August 27, 2024

Awesome, thanks! BTW I already got some of the work for the population data started in #14 (that PR also has some unrelated stuff which I'll remove, but the relevant stuff is in population.py).

from housing-data.

Related Issues (6)

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.