fix
This commit is contained in:
parent
97ca282402
commit
e1616fd376
2
model.py
2
model.py
@ -12,6 +12,8 @@ data = pd.read_csv('./data/train.csv')
|
|||||||
|
|
||||||
data = data[['Sex', 'Age', 'BodyweightKg', 'TotalKg']].dropna()
|
data = data[['Sex', 'Age', 'BodyweightKg', 'TotalKg']].dropna()
|
||||||
data['Age'] = pd.to_numeric(data['Age'], errors='coerce')
|
data['Age'] = pd.to_numeric(data['Age'], errors='coerce')
|
||||||
|
data['Age'] = pd.to_numeric(data['BodyweightKg'], errors='coerce')
|
||||||
|
data['Age'] = pd.to_numeric(data['TotalKg'], errors='coerce')
|
||||||
features = data[['Sex', 'Age', 'BodyweightKg']]
|
features = data[['Sex', 'Age', 'BodyweightKg']]
|
||||||
target = data['TotalKg']
|
target = data['TotalKg']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user