Skip to main content
Version: v5

relative_importance

Fetch BLS CPI relative-importance and weights for one yearly file + sheet.

Examples​

from openbb import obb
# Latest CPI relative-importance weights for CPI-U & CPI-W.
obb.bls.cpi.relative_importance(provider='bls')
# 2024 weights for selected local areas (Table 2).
obb.bls.cpi.relative_importance(provider='bls', year=2024, table=2)

Parameters​


Returns​

results: BlsCpiRelativeImportance

Serializable results.

provider: str | None

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data​