You are viewing a single comment's thread from:
RE: Payment for Coding done
Split the data into training and testing sets
X = df[['day', 'month']]
y = df['price']
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)