// First we initiate MindsDB
mdb = MindsDB()
// We tell mindsDB what we want to learn and from what data
mdb.learn(
from_file="https://raw.githubusercontent.com/mindsdb/main/master/docs/examples/basic/home_rentals.csv", // the path to the file where we can learn from
After Change
from mindsdb import *
// We tell mindsDB what we want to learn and from what data
MindsDB().learn(
from_file="https://raw.githubusercontent.com/mindsdb/main/master/docs/examples/basic/home_rentals.csv", // the path to the file where we can learn from
predict="rented_price", // the column we want to learn to predict given all the data in the file
model_name="home_rentals" // the name of this model