i want to convert incoming data to float in excel file , and i don't know how to do it , please if any one can help me i will be very appreciate
with open(file_path, "rt") as csv_file:
content = csv.reader(csv_file)
for row in content:
values = []
for column in row:
values.append({'number_value': float(column)})
payload = {
'row': {'values': values}
}
response = prediction_client.predict(model_full_id, payload)
print("Prediction results:")
for result in response.payload:
print("Predicted class name: {}".format(result.display_name))
print("Predicted class score: {}".format(result.classification.score))
there is some data in string format, how can i convert those which is in string format to float please?