Pandas coding for a dataset
Using the supplied dataset, produce a category-level summary of usable observations. Include only observations with a valid status and a non-null value, while retaining categories that have no usable observations.
category_name, observation_count, average_value, and maximum_value.observation_count descending, then category_name ascending.| Column | Type | Description |
|---|---|---|
| category_idPK | INT | Unique category identifier |
| category_name | VARCHAR(100) | Category label |
| Column | Type | Description |
|---|---|---|
| observation_idPK | INT | Unique observation identifier |
| category_id | INT | Referenced category identifier |
| observed_at | DATE | Observation date |
| value | DECIMAL(10,2) | Numeric observation value |
| status | VARCHAR(20) | Observation quality status |