I have a dataset like with three columns Type/Name/Price and want to predict the price based on Type and name. Here Type/Name are categorical string values. And Price is numeric target variable.
My dataset looks like:
Type Name Price
A ec1 1.5
B ec2 2
A ec2 3
C ec1 1
B ec3 1
I have to create a model for this dataset and want to predict for type/name. What is the predicted price for Type - A and Name ec2? Could you please provide the sample code.
Also, the dataset wont have fixed number of columns. Only the target variable is fixed as Price. Independent variables might have Type/Name/Date..etc fields.