I am new to QGIS 3.0 and using "qgis:Joinattributetable" for joining .csv and .shp file. Below is my code, but I am getting Syntax Error.
AttributeError: module Processing has no attribute 'runandLoadResults'
I don't know how to fix this. Any suggestions?
vectorLyr=QgsVectorLayer("C:/Test/demand/Demand.shp","BuildingLayer","ogr")
vectorLyr.isValid()
uri='file:///C:/Test/data.csv?delimiter=,'
infoLyr=QgsVectorLayer(uri,'Population','delimitedtext')
infoLyr.isValid()
QgsProject.instance().addMapLayer(vectorLyr)
QgsProject.instance().addMapLayer(infoLyr)
shpField='FID_1'
csvField='FID'
result=processing.runandLoadResults('qgis:joinattributetable',vectorLyr,infoLyr,shpField,csvField,None)
Syntax Error
that you end up with.