This release includes a function to find the unique values in a given dataset. This is useful for knowing the exact values to pass to endpoints for filtering operations:
import spgci as ci
chem = ci.Chemicals()
# just a single column
chem.get_unique_values(dataset='production', columns='region')
# distinct values across multiple columns
chem.get_unique_values(dataset='capacity', columns=['region', 'commodity'])
Additional Endpoints Added:
- capacity
- production
- capacity-utilization
- demand-by-derivative
- demand-by-end-use
- trade
- inventory-change
- total-supply
- total-demand
- assumptions
- country-supply-demand-balance
- region-supply-demand-balance
- world-supply-demand-balance