BritishGeologicalSurvey / pyagsapi

pyagsapi - An AGS Utilities API with AGS v4.x Schema Validation & Converter for .ags<-->.xslx files
https://britishgeologicalsurvey.github.io/pyagsapi/
GNU Lesser General Public License v3.0
12 stars 2 forks source link

Add BGS rule that LOCA_IDs are in LOCA group #46

Closed volcan01010 closed 3 years ago

volcan01010 commented 3 years ago

This merge request checks for all groups that contain a LOCA_ID column and makes sure that the value is present in the LOCA_ID group.

The implementation uses the pd.DataFrame.apply() function, which I've found useful for making checks within a record.

This addresses the last of the "Formatting" issues on https://github.com/BritishGeologicalSurvey/pyagsapi/issues/21