The code below is not working: This code doesn't affect the table at all
layer = point_layer3
selected_feature = layer.selectedFeatures()
print(len(selected_feature))
layer.startEditing()
for feature in selected_feature:
a = f['parkeer_approx']
b = parking_capacity[f.id()-int(1)]['parking_capacity']
feature["parkeer_approx"] = a - b
layer.updateFeature(feature)
layer.commitChanges()
a = feature['parkeer_approx']. What are you trying to calculate withb? – Joseph Aug 01 '19 at 13:14