pycensus.census.countries.mexico.inegi_movilidad¶
INEGI Censo 2020 extended questionnaire: means of transport to work per municipality (see :mod:.loader).
load(aoi=None, states=None, level='municipality', cache_dir=None, data_dir=None, **_)
¶
Municipal counts with INEGI municipality geometry, for the states of aoi (or states).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
aoi
|
Optional[GeoDataFrame]
|
Area of interest (GeoDataFrame). |
None
|
states
|
Optional[List[str]]
|
State codes (instead of |
None
|
level
|
str
|
Only |
'municipality'
|
cache_dir
|
Optional[str]
|
Cache folder; |
None
|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|
**_
|
Ignored. |
{}
|
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
For another level. |
ValueError
|
Without |
national(states=None, cache_dir=None)
¶
Municipal mode-to-work counts of several states (all by default).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
states
|
Optional[List[str]]
|
State codes; |
None
|
cache_dir
|
Optional[str]
|
Cache folder; |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per municipality. |
state_table(state, cache_dir=None)
¶
Municipal rows of tabulado 22 (sex = Total, estimator = Valor) for one state, as counts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
str
|
State name, abbreviation or code. |
required |
cache_dir
|
Optional[str]
|
Cache folder; |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per municipality. |