diff --git a/api.html b/api.html index 77ea4c36..e33b1e0e 100644 --- a/api.html +++ b/api.html @@ -155,7 +155,7 @@
add_data
(df: <Mock name='mock.DataFrame' id='140654527739840'>, columns: Optional[Iterable[str]] = None) → None[source]¶add_data
(df: <Mock name='mock.DataFrame' id='140546622420832'>, columns: Optional[Iterable[str]] = None) → None[source]¶
Add columns of a DataFrame to a graph as node attributes by matching the DataFrame’s index to node ids.
from_geodataframe
(dataframe: <Mock name='mock.DataFrame' id='140654527739840'>, adjacency: str = 'rook', cols_to_add: Optional[List[str]] = None, reproject: bool = False, ignore_errors: bool = False) → gerrychain.graph.graph.Graph[source]¶from_geodataframe
(dataframe: <Mock name='mock.DataFrame' id='140546622420832'>, adjacency: str = 'rook', cols_to_add: Optional[List[str]] = None, reproject: bool = False, ignore_errors: bool = False) → gerrychain.graph.graph.Graph[source]¶
Creates the adjacency Graph
of geometries described by dataframe.
The areas of the polygons are included as node attributes (with key area).
The shared perimeter of neighboring polygons are included as edge attributes
@@ -311,7 +311,7 @@
join
(dataframe: <Mock name='mock.DataFrame' id='140654527739840'>, columns: Optional[List[str]] = None, left_index: Optional[str] = None, right_index: Optional[str] = None) → None[source]¶join
(dataframe: <Mock name='mock.DataFrame' id='140546622420832'>, columns: Optional[List[str]] = None, left_index: Optional[str] = None, right_index: Optional[str] = None) → None[source]¶
Add data from a dataframe to the graph, matching nodes to rows when the node’s left_index attribute equals the row’s right_index value.
gerrychain.updaters.
DataTally
(data: Union[Dict, <Mock name='mock.Series' id='140654527739936'>, str], alias: str)[source]¶gerrychain.updaters.
DataTally
(data: Union[Dict, <Mock name='mock.Series' id='140546622420928'>, str], alias: str)[source]¶
An updater for tallying numerical data that is not necessarily stored as node attributes
gerrychain.graph.adjacency.
neighbors
(df: <Mock name='mock.GeoDataFrame' id='140654528205200'>, adjacency: str) → Dict[source]gerrychain.graph.adjacency.
neighbors
(df: <Mock name='mock.GeoDataFrame' id='140546622878000'>, adjacency: str) → Dict[source]
gerrychain.graph.geo.
identify_utm_zone
(df: <Mock name='mock.GeoDataFrame' id='140654528205200'>) → int[source]gerrychain.graph.geo.
identify_utm_zone
(df: <Mock name='mock.GeoDataFrame' id='140546622878000'>) → int[source]
Given a GeoDataFrame, identify the Universal Transverse Mercator zone number for the centroid of the geometries in the dataframe.
add_data
(df: <Mock name='mock.DataFrame' id='140654527739840'>, columns: Optional[Iterable[str]] = None) → None[source]add_data
(df: <Mock name='mock.DataFrame' id='140546622420832'>, columns: Optional[Iterable[str]] = None) → None[source]
Add columns of a DataFrame to a graph as node attributes by matching the DataFrame’s index to node ids.
from_geodataframe
(dataframe: <Mock name='mock.DataFrame' id='140654527739840'>, adjacency: str = 'rook', cols_to_add: Optional[List[str]] = None, reproject: bool = False, ignore_errors: bool = False) → gerrychain.graph.graph.Graph[source]from_geodataframe
(dataframe: <Mock name='mock.DataFrame' id='140546622420832'>, adjacency: str = 'rook', cols_to_add: Optional[List[str]] = None, reproject: bool = False, ignore_errors: bool = False) → gerrychain.graph.graph.Graph[source]
Creates the adjacency Graph
of geometries described by dataframe.
The areas of the polygons are included as node attributes (with key area).
The shared perimeter of neighboring polygons are included as edge attributes
@@ -2012,7 +2012,7 @@
join
(dataframe: <Mock name='mock.DataFrame' id='140654527739840'>, columns: Optional[List[str]] = None, left_index: Optional[str] = None, right_index: Optional[str] = None) → None[source]join
(dataframe: <Mock name='mock.DataFrame' id='140546622420832'>, columns: Optional[List[str]] = None, left_index: Optional[str] = None, right_index: Optional[str] = None) → None[source]
Add data from a dataframe to the graph, matching nodes to rows when the node’s left_index attribute equals the row’s right_index value.
gerrychain.graph.graph.
add_boundary_perimeters
(graph: gerrychain.graph.graph.Graph, geometries: <Mock name='mock.Series' id='140654527739936'>) → None[source]gerrychain.graph.graph.
add_boundary_perimeters
(graph: gerrychain.graph.graph.Graph, geometries: <Mock name='mock.Series' id='140546622420928'>) → None[source]
Add shared perimeter between nodes and the total geometry boundary.
gerrychain.graph.graph.
check_dataframe
(df: <Mock name='mock.DataFrame' id='140654527739840'>) → None[source]gerrychain.graph.graph.
check_dataframe
(df: <Mock name='mock.DataFrame' id='140546622420832'>) → None[source]
None
@@ -2516,7 +2516,7 @@to_series
() → <Mock name='mock.Series' id='140654527739936'>[source]to_series
() → <Mock name='mock.Series' id='140546622420928'>[source]
The assignment as a pandas.Series
.
gerrychain.updaters.tally.
DataTally
(data: Union[Dict, <Mock name='mock.Series' id='140654527739936'>, str], alias: str)[source]gerrychain.updaters.tally.
DataTally
(data: Union[Dict, <Mock name='mock.Series' id='140546622420928'>, str], alias: str)[source]
Bases: object
An updater for tallying numerical data that is not necessarily stored as node attributes