Skip to content

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 aoi).

None
level str

Only "municipality".

'municipality'
cache_dir Optional[str]

Cache folder; None = the pycensus cache.

None
data_dir Optional[str]

Folder of the raw downloads; None = the pycensus cache.

None
**_

Ignored.

{}

Raises:

Type Description
NotImplementedError

For another level.

ValueError

Without aoi or states.

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 = all.

None
cache_dir Optional[str]

Cache folder; None = the pycensus cache.

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 = the pycensus cache.

None

Returns:

Type Description
DataFrame

One row per municipality.