Skip to main content
Version: v5

cotton_wool_and_textile_data

Get ERS cotton, wool, and textile data - the Cotton and Wool Yearbook supply, use, price, and trade tables plus the raw-fiber equivalents of U.S. textile trade, each pivoted to a wide layout by year.

Examples​

from openbb import obb
obb.usda.cotton_wool_and_textile_data(provider='usda')
# Get world cotton supply and use since 2010.
obb.usda.cotton_wool_and_textile_data(table='world_cotton_supply_and_use', start_year=2010, provider='usda')
# Get U.S. cotton textile and apparel imports by country of origin.
obb.usda.cotton_wool_and_textile_data(table='rfe_cotton_textile_imports_by_origin', provider='usda')

Parameters​


Returns​

results: CottonWoolAndTextileData

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​