.shp, .csv, .geojson etc. are in the output folder.
At the time of this writing, the Administrative Units And Boundaries in GML format, published in the Planning Authority's geoportal, remains locked and cumbersome to manipulate (e.g. exporting to an ESRI Shapefile).
The code in this repository extracts the administrative units' polygons from the GML and merges them with a separate list of local councils to curate a single data frame containing the official administrative ID, its all-important geometry, and a recognisable locality name with various English and Maltese aliases (e.g. San Ġiljan and Saint Julian's, Valletta and Il-Belt Valletta, Marsaskala, Marsascala, and Wied il-Għajn, etc.).
Manual intervention was necessary in cases where automated matching (using fuzzywuzzy) failed, as was the case with Marsa, Marsaskala, and Marsaxlokk, for example.
The resultant .csv, .shp, .geojson etc. files in the output folder can now, quite simply, be loaded into an environment as a basemap for spatial analysis and/or visualisation, or be modified and enhanced as necessary.
Saħħa u sliem!