2016-ml-contest icon indicating copy to clipboard operation
2016-ml-contest copied to clipboard

Not working code

Open anakreonod opened this issue 5 years ago • 0 comments

Hello. Why doesn't the code part work for the same logging data? TypeErrorTraceback (most recent call last) in () 12 return labels[row['Lith_Section']-1] 13 ---> 14 training_data.loc[:,'FaciesLabels'] = training_data.apply(lambda row: label_facies(row, facies_labels), axis=1) 15 training_data.describe()

5 frames in label_facies(row, labels) 10 11 def label_facies(row, labels): ---> 12 return labels[row['Lith_Section']-1] 13 14 training_data.loc[:,'FaciesLabels'] = training_data.apply(lambda row: label_facies(row, facies_labels), axis=1)

TypeError: ('list indices must be integers, not float', u'occurred at index 0')

Thank you

anakreonod avatar Jan 20 '20 14:01 anakreonod