Skip to content

Commit

Permalink
added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Coerulatus committed May 7, 2024
1 parent f0f709f commit 2b69b20
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions topobenchmarkx/io/load/us_county_demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@


def load_us_county_demos(path, year=2012, y_col="Election"):
r"""Load US County Demos dataset
Parameters
----------
path: str
Path to the dataset.
year: int
Year to load the features.
y_col: str
Column to use as label.
Returns
-------
torch_geometric.data.Data
Data object of the graph for the US County Demos dataset.
"""

edges_df = pd.read_csv(f"{path}/county_graph.csv")
stat = pd.read_csv(f"{path}/county_stats_{year}.csv", encoding="ISO-8859-1")

Expand Down

0 comments on commit 2b69b20

Please sign in to comment.