7- Show attribute table of a vector layerAzad Rasul·Jun 15, 2021·1 min readWe can use iface.showAttributeTable() function for opening attribute table of a vector layer: uri = "D:/Python_QGIS/data/Countries.shp" vlayer = QgsVectorLayer(uri, "Countries", "ogr") iface.showAttributeTable(vlayer) PythonGISlearning Share this