Giter Site home page Giter Site logo

datausa-api's People

Contributors

alexandersimoes avatar davelandry avatar jspeis avatar lasserafn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

datausa-api's Issues

You guys rocks!!!

You guys are awesome with this stuffs! I just want to say that! I don't know how to talk to You guys, so I make an issue here, sorry ๐Ÿ˜ž. I really inspired by Your work guys, so I intended to make one! I'm willing to present it to my country/land here in Lombok. So I just clone your repository for learning purpose such as how You collect data, how You structure them and so on, any way datausa-site (this one is really big so I may be will clone it tomorrow at my campus, my cell phone plan is really limited ๐Ÿ˜… ). A little bit about me, I am bachelor student of Informatics Engineering at local campus in Mataram (we here call it TI an abbreviation for Teknik Informatika), I don't study much about data, yes we have one class of Statistics but not digging too much. So i hope You guys give me some advice in purpose of so my journey to study and provide this system to my country/land having less obstacles, didn't mean i don't want them, I love challenges/obstacles!. But, you know ๐Ÿ˜„, just a little bit advice maybe. I don't know if you guys can read my English, it's not our native or second language here. But, I hope You guys can understand what i wrote here intuitively ๐Ÿ˜„. Thank you guys in advance!

triple-check that the Dartmouth data was ingested correctly

from Ann Perrin:

Can you check on the Medicare hospital inpatient spending data - make sure it's added and labeled correctly. We plan to use it for a story and would like to start as soon as possible. Let me know if there are any issues and timing.

ACS Race data missing at tract level

I'm attempting to get the percentage the population that is white (pop_white) at the tract level for all tracts in a particular city. The following query returns an empty array of data:

https://api.datausa.io/api/?show=geo&sumlevel=tract&force=acs_5yr.yg_race&limit=5

However, the pop_white data appears to be visible at the state level.

I'm able to get population data at the tract level (link), but tract level data appears to be unavailable.

remove negative dartmouth values

Similar to the issue with leg amputations, we need change negative values to null for certain Dartmouth variables. May be for more variables than this, but definitely for these (and I will continute to update this list if I find other variables):

  • discharges_for_ambulatory_conditions_per_1000_total
  • discharges_for_ambulatory_conditions_per_1000_black
  • discharges_for_ambulatory_conditions_per_1000_white

Readme

Could you modify the readme so the portion about the API points to the 'about' section on the site and the wiki?

location "05000US99999" on maps

@davelandry commented on Fri Apr 28 2017

Expected Behavior

All locations should have names.

Current Behavior

There is a weird "05000US99999" location visible on the map when looking at data from the Dartmouth Atlas. @jspeis do you know what this is? Should we be filtering this out of the data calls?

Steps to Reproduce (for bugs)

https://sunbird.datausa.io/map/?level=county&key=total_medicare_enrollees

Your Environment

  • Browser Name: N/A
  • Operating System and Version: N/A

"image_meta" column in non-geo attribute tables

This column image_meta needs to be added to the following tables, as well as being hooked up in the API and passed to the attribute calls:

  • attrs.course
  • pums_attrs.pums_naics
  • pums_attrs.pums_soc

new dataset priorities

Starting this github issue to serve as a central location for all new dataset ideas. These are the datasets that have been requested by the client for near-future inclusion on the site:

return map pages in search API results

Expected Behavior

It would be really great if when using the search API and a user types a variable only available in a Map page, that result appears inline with the profile links (ie. "Map of Children in Single-Parent Households").

Current Behavior

The search API only returns profiles (and sections of profiles).

filtering API query by state

Does this API have a way to filter through all 50 states by order of name or alphabet, delivering only one result per state?

query sumlevels, tables, geo by variable

This is more of a feature request than a report of a bug.

I have been hugely impressed with your API as I think it could be very useful for social scientists like myself that often use census and economic data and are frustrated with the census site. I especially like that you can specify a variable and a geographic sumlevel, and the results will be returned at the desired unit of analysis. This is a big step forward!

I have created a short guide for constructing queries in R to make your API accessible to scholars:

https://gist.github.com/lecy/0aa782a873cd174573f32d243233ca5b

The hardest part of using this data is that the validity of arguments varies by the underlying data source. So in one instance I can use "show=geo&sumlevel=msa" and in another instance I cannot, which is confusing for users and it makes it frustrating to figure out if you can get data at the desired level.

To address this problem I have included a couple of helper functions in the guide to allow the user to peek at attributes, and to print the set of valid cases based upon the logic view at "http://api.datausa.io/api/logic/?".

For example, I have formatted the query "http://api.datausa.io/api/logic/?show=geo&sumlevel=all" to print a bunch of tables that look like this:

getUsage( "geo" )
# TABLE: ygi_num_emp 
# DATA SOURCE: ACS 3-year Estimate 
# DEPARTMENT: Census Bureau 
# LINK: http://www.census.gov/programs-surveys/acs/ 
# 
# SUPPORTED SUMLEVELS: 
# 
# acs_ind:  0, 1, 2, all
# geo:  nation, state, msa, all
#
# ...67 more tables printed

The problem is that this use case searches by data attribute (show=geo) and references a data table (ygi_num_emp), but in the typical case the user would want to search for valid sumlevels associated with a specific variable. For example, can I find the number of philosophy majors by county?

Ideally there would be a way to specify an API query that submits a variable name and returns all valid attribute-sumlevel pairs (for example show=geo & sumlevel= nation, state, or msa).

It would be possible to create some functions to do this if the following queries are available:

  • Return all data tables and their valid sumlevels
  • Return all variables associated with a data table (even better if they include definitions)
  • Return all valid sumlevels associated with an attribute

Please let me know if these functions currently exist, or can possibly be added.

Access ACS Data via API

Hello - I'm trying to access the ACS data (such as this commute means info), but it doesn't appear to be available via the DataUSA API. I have tried to make requests using Python's requests library, but either get a 404 response or (after adding headers to the call) get a bunch of uninterpretable hex.

Is it possible to pull down this data using the API? This is one of the calls I tried:

requests.get("http://banana.datausa.io/api/data?measure=Average Commute Time&drilldowns=Place", headers=headers)

I also tried putting the parameters in a dictionary and passing them that way.

I am using python 3.6.9 and requests 2.23

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.