Describe your approach when you are given a large, unstructured dataset and asked to begin your analysis for Energy Aspects’ data-driven insights.
Use the provided tables to demonstrate the initial analysis by producing a trustworthy monthly summary from the raw observations.
Output
- One row per commodity, region, and observation month.
- Columns:
commodity_name, region, observation_month, average_price, observation_count, and source_count.
- Include only active commodities and sources, valid positive USD-per-barrel observations, and non-empty regions. Sort by commodity, region, and month ascending.
Output details
- Use only rows whose quality flag is exactly
valid and whose unit is exactly USD/bbl.
- Accept prices only when
price_text contains unsigned digits with an optional decimal portion; treat other values as invalid.
- Round
average_price to exactly two decimal places.
- Represent each
observation_month as the first calendar day of its month.
- Count every qualifying observation in
observation_count, but count each source only once in source_count.
- Exclude regions that are
NULL or contain only whitespace.