# Convert string column to float
def str_column_to_float(dataset, column):
for row in dataset:
row[column] = float(row[column].strip())
print(row[column])
Am trying to create a above function in python using jupyter notebook. But am getting error like below:
File "<ipython-input-5-b591f37367db>", line 5
print(row[column])
^
TabError: inconsistent use of tabs and spaces in indentation
Can anyone help me to fix this?