AnsweredAssumed Answered

float argument

Question asked by crizia2 on Sep 11, 2015
Latest reply on Sep 18, 2015 by LukeW

CSV file converted from geodatabase is red in my script and it keeps cause an error regarding float argument as all the items in the data file are strings. I was seeking a few ways to add argument, but it does not work well.

 

Could you please provide any suggestion or solution?

Just in case, I upload a part of my script.

 

 

import csv
from pulp import *

supplyData = {}
with open('C:\\scripts\\oil_sd.csv') as csvfile:
    reader = csv.DictReader(csvfile)
    for row in reader:
      supplyData[row['originid']] = [row['oilseed'], 0]

 

 

Thank you!

Outcomes