diff --git a/src/pudl/metadata/fields.py b/src/pudl/metadata/fields.py index 6f7c8f047d..0800a077fb 100644 --- a/src/pudl/metadata/fields.py +++ b/src/pudl/metadata/fields.py @@ -3005,7 +3005,12 @@ "Pacific/Honolulu", ] } - } + }, + "report_date": { + "constraints": { + "required": True, + } + }, }, } diff --git a/src/pudl/transform/ferc714.py b/src/pudl/transform/ferc714.py index 189091ab39..ad07d40e56 100644 --- a/src/pudl/transform/ferc714.py +++ b/src/pudl/transform/ferc714.py @@ -505,9 +505,7 @@ def demand_hourly_pa_ferc714( df.loc[mask, "demand_mwh"] *= -1 # Convert report_date to first day of year - df["report_date"] = pd.Series( - df.loc[:, "report_date"].to_numpy().astype("datetime64[Y]") - ) + df["report_date"] = df.report_date.dt.to_period("Y").dt.to_timestamp() # Format result columns = [