Is there a way to merge all the layers with same name using python script in QGIS in the following list;
names = [layer.name() for layer in QgsMapLayerRegistry.instance().mapLayers().values()]
print names
Output:
[u'Pois', u'Pois', u'Pois', u'Pois', u'Pois', u'Pois', u'Pois', u'Pois', u'Pois']
So that when I list my current mapLayers, all I get is one layer with all the other layers merged into it.