python-us icon indicating copy to clipboard operation
python-us copied to clipboard

A package for easily working with US and state metadata

Results 42 python-us issues
Sort by recently updated
recently updated
newest added

In mapping a pandas DataFrame's numeric fips index to state name, I currently have to do this: ``` state['state'] = pd.Series(state.index).apply( lambda x: us.states.lookup(str(x).zfill(2)).name).tolist() ``` There are a couple things...

Bumps [py](https://github.com/pytest-dev/py) from 1.8.1 to 1.10.0. Changelog Sourced from py's changelog. 1.10.0 (2020-12-12) Fix a regular expression DoS vulnerability in the py.path.svnwc SVN blame functionality (CVE-2020-29651) Update vendored apipkg: 1.4...

dependencies

It seems like it ought to return NY. In general, looking up 'XXX State' (or phonetic/misspelled equivalents?) should probably work for any of the 50 states, though I think it's...

3.9 has been the latest stable Python release since October 2020

When doing a Lookup if u'Illinois' the Metaphone value that comes back from Jellyfish metaphone is 'LNS'. The Data says that it should be 'ILNS' do the lookup does not...

FIPS code 74 Abbreviation UM https://en.wikipedia.org/wiki/Federal_Information_Processing_Standard_state_code I think this is the only thing preventing mapping from state FIPS codes to county FIPS codes [here](https://www2.census.gov/geo/docs/reference/codes/files/national_county.txt). If there is an interest, I'll...

Hi. For the cache to work, it may be necessary to refine the code. Maybe after this line is required else or return matched_state :) https://github.com/unitedstates/python-us/blob/442364cbf41501a6615dcb9f1c8105a5012fac36/us/states.py#L102

@jcarbaugh, this is passing tests and functioning as expected upon some prodding of the CLI, but let me know if this architecture works. If so, I can finish building out...

Thinking that we could completely drop Dakota, Orleans, and the Philippines from the version 2.0 release @jcarbaugh. Special-casing them presents problems regarding: - [neighboring](https://github.com/unitedstates/python-us/issues/33#issuecomment-481771030) - `capital` - `time_zones`, since official...