Skip to content

Commit

Permalink
tracts20 to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
knaaptime committed Oct 2, 2023
1 parent c38d87f commit 0c559d1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

- name: Test geosnap
run: |
pytest -v --color yes --cov geosnap --cov-append --cov-report term-missing --cov-report xml .
pytest -v --color yes --cov geosnap/tests --cov-append --cov-report term-missing --cov-report xml .
- uses: codecov/codecov-action@v3

Expand Down
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ available quickly with no configuration by accessing methods on the class.
DataStore.tracts_1990
DataStore.tracts_2000
DataStore.tracts_2010

DataStore.tracts_2020

Storing data
'''''''''''''''
Expand Down
35 changes: 12 additions & 23 deletions geosnap/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,8 @@ def tracts_2000(self, states=None):
Returns
-------
pandas.DataFrame or geopandas.GeoDataFrame
2000 tracts as a geodataframe or as a dataframe with geometry
stored as well-known binary on the 'wkb' column.
geopandas.GeoDataFrame
2000 tracts as a geodataframe
"""
local = pathlib.Path(self.data_dir, "tracts_2000_500k.parquet")
Expand All @@ -461,9 +460,8 @@ def tracts_2010(
Returns
-------
pandas.DataFrame or geopandas.GeoDataFrame
2010 tracts as a geodataframe or as a dataframe with geometry
stored as well-known binary on the 'wkb' column.
geopandas.GeoDataFrame
2010 tracts as a geodataframe
"""
msg = "Streaming data from S3. Use `geosnap.io.store_census() to store the data locally for better performance"
Expand All @@ -480,7 +478,7 @@ def tracts_2020(
self,
states=None,
):
"""Nationwide Census Tracts as drawn in 2010 (cartographic 500k).
"""Nationwide Census Tracts as drawn in 2020 (cartographic 500k).
Parameters
----------
Expand All @@ -489,9 +487,8 @@ def tracts_2020(
Returns
-------
pandas.DataFrame or geopandas.GeoDataFrame
2010 tracts as a geodataframe or as a dataframe with geometry
stored as well-known binary on the 'wkb' column.
geopandas.GeoDataFrame
2020 tracts as a geodataframe
"""
msg = "Streaming data from S3. Use `geosnap.io.store_census() to store the data locally for better performance"
Expand All @@ -513,9 +510,8 @@ def msas(self):
Returns
-------
pandas.DataFrame or geopandas.GeoDataFrame
2010 MSAs as a geodataframe or as a dataframe with geometry
stored as well-known binary on the 'wkb' column.
geopandas.GeoDataFrame
2010 MSAs as a geodataframe
"""
local = pathlib.Path(self.data_dir, "msas.parquet")
Expand All @@ -530,9 +526,8 @@ def states(self):
Returns
-------
pandas.DataFrame or geopandas.GeoDataFrame
US States as a geodataframe or as a dataframe with geometry
stored as well-known binary on the 'wkb' column.
geopandas.GeoDataFrame
US States as a geodataframe
"""
local = pathlib.Path(self.data_dir, "states.parquet")
Expand All @@ -545,16 +540,10 @@ def states(self):
def counties(self):
"""Nationwide counties as drawn in 2010.
Parameters
----------
convert : bool
if True, return geodataframe, else return dataframe (the default is True).
Returns
-------
geopandas.GeoDataFrame
2010 counties as a geodataframe or as a dataframe with geometry
stored as well-known binary on the 'wkb' column.
2010 counties as a geodataframe.
"""
local = pathlib.Path(self.data_dir, "counties.parquet")
Expand Down

0 comments on commit 0c559d1

Please sign in to comment.