def reorder_headers()

in datasets/sunroof_solar/pipelines/_images/run_csv_transform_kub/csv_transform.py [0:0]


def reorder_headers(df: pd.DataFrame) -> pd.DataFrame:
    logging.info("Reordering headers..")
    df = df[
        [
            "region_name",
            "state_name",
            "lat_max",
            "lat_min",
            "lng_max",
            "lng_min",
            "lat_avg",
            "lng_avg",
            "yearly_sunlight_kwh_kw_threshold_avg",
            "count_qualified",
            "percent_covered",
            "percent_qualified",
            "number_of_panels_n",
            "number_of_panels_s",
            "number_of_panels_e",
            "number_of_panels_w",
            "number_of_panels_f",
            "number_of_panels_median",
            "number_of_panels_total",
            "kw_median",
            "kw_total",
            "yearly_sunlight_kwh_n",
            "yearly_sunlight_kwh_s",
            "yearly_sunlight_kwh_e",
            "yearly_sunlight_kwh_w",
            "yearly_sunlight_kwh_f",
            "yearly_sunlight_kwh_median",
            "yearly_sunlight_kwh_total",
            "install_size_kw_buckets",
            "carbon_offset_metric_tons",
            "existing_installs_count",
            "center_point",
        ]
    ]

    return df