openclimatefix / pv-site-datamodel

Datamodel for PV sites
MIT License
2 stars 12 forks source link

Implement pandera validation on dataframes #44

Closed devsjc closed 1 year ago

devsjc commented 1 year ago

Implements Pandera schema validation on incoming dataframes to write functions.

Creates custom UUIDV4 datatype, which is a Logical datatype built on top of string and represents a valid UUID version 4. This can (and is) then specified as the type of the site_uuid column in the two dataframe schemas, enabling checks on their validity.