I couldn't find any proper example of how to import a .csv with WKT coordinates (Polygon) in PyQGIS.
Here are more details on my .csv. I am working with polygons. The delimiter is a semi colum, and the name of the variable that contains the relevant coordinates is WKT . Thus I wrote :
uri = "data/idf.csv?delimiter=%s&crs=ESPG:2154&wktField=%s" % (";", "WKT")
idf_stats_csv = QgsVectorLayer(uri,"idf","delimitedtext")
But this does not work. Do you have any more advice?