Skip to content

usmapdata 0.4.0

Choose a tag to compare

@pdil pdil released this 06 Mar 23:43
· 62 commits to master since this release
1517284

New Features

  • Add data_year parameter to us_map(), see Issue #34.
    • Allows user to select the year for which to plot US map.
    • This will allow the user to match the map that is provided to the data they are using.
    • To start with, 2021, 2022, and 2023 maps are included.
    • Going forward, each year will be added to the package and previous years can be accessed with this parameter.
    • If the value provided via data_year is not available, the package will select the next year for which data exists.
      • For example, if data sets 2022 and 2023 are available and the user calls us_map(data_year = 2019), 2022 will be used.
      • A warning is presented when this occurs to alert the user.
    • Further reading on the impetus for this change: major changes made to Connecticut counties in 2023.
    • The old Connecticut counties are available in the 2021 data, 2022 and forward use the new planning regions.

Improvements

  • Improve python script and GitHub Actions workflow that download and process map shapefiles to be more flexible and support new data_year feature listed above.
  • centroid_labels() now accepts "state" and "county" as inputs for the regions parameter like us_map() and fips_data().
  • Update package author email.

Full Changelog: v0.3.0...v0.4.0