私はデータフレームパンダは:
weight height
56 167
88 179
42 159
51 162
90 170
ていると私はいくつかの機能
def min_error(w0, w1, height, weight):
return np.sum(np.power((height - (w0 + w1*weight))), 2)
(data.apply(lambda row: min_error(60, 0.05, row['Height'], row['Weight']), axis=1))
を適用しよう。しかし、それは私がこれを修正するにはどうすればよい
ValueError: ('invalid number of arguments', u'occurred at index 1')
返すデータフレームの列に関数を適用しますか?