Hello im taking my first steps in DS, and here I have an exercise I cannot continue.
The provided starter Colab removes all non-numeric columns from both datasets. it is intended by the exercise itself. Nothing should be done with other columns (yet). The rule is that I can only make filters. Nothing else can be changed. The ultimate goal is to keep only sale prices for CABA. I also cannot touch the model or its parameters. The objetive is to predict prices with all those filters.
Things I do not understand yet:
Training and learning dataset should have the same filters?
I'm having trouble imputing missing values, and I feel that's the key for a good prediction.
Here is the most important db info:
Data columns (total 17 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
2 lat 422620 non-null float64
3 lon 422604 non-null float64
5 publisher_id 663922 non-null object
7 location_0 982787 non-null object
8 location_1 982769 non-null object
12 operation_type 982487 non-null object
13 property_type 982784 non-null object
14 source 1283423 non-null object
15 price 984477 non-null float64 ```
Here are the important columns info:
```df_ent["currency_type"].unique()
array(['dolares', 'Otro', 'pesos'], dtype=object)```
```df_ent["location_1"].unique()
array(['Ciudad Autónoma de Buenos Aires', 'Capital Federal', 'CABA'], dtype=object)```
Here is the model:
```RandomForestRegressor(max_depth=5, n_estimators=50, n_jobs=-1, random_state=42)```
Filters for training and learning are in the images.
The `df_ap = df_ap.select_dtypes('number')` it is intended by the exercise itself.
You can also find in the images an histogram with the not so good final predictions
Thank you in advance!