Added import libraries part.
This commit is contained in:
@@ -15,6 +15,7 @@ Perform following tasks:
|
|||||||
|
|
||||||
## Steps
|
## Steps
|
||||||
|
|
||||||
|
1. Importing Libraries
|
||||||
1. Data Loading and Pre-processing
|
1. Data Loading and Pre-processing
|
||||||
2. Outlier Detection
|
2. Outlier Detection
|
||||||
3. Correlation Analysis
|
3. Correlation Analysis
|
||||||
@@ -25,6 +26,21 @@ Perform following tasks:
|
|||||||
|
|
||||||
## Code
|
## Code
|
||||||
|
|
||||||
|
0. Importing Libraries:
|
||||||
|
|
||||||
|
```python3
|
||||||
|
# Import necessary libraries
|
||||||
|
import pandas as pd
|
||||||
|
import numpy as np
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
import seaborn as sns
|
||||||
|
from sklearn.model_selection import train_test_split
|
||||||
|
from sklearn.linear_model import LinearRegression
|
||||||
|
from sklearn.ensemble import RandomForestRegressor
|
||||||
|
from sklearn.metrics import r2_score, mean_squared_error, mean_absolute_error
|
||||||
|
from math import radians, cos, sin, asin, sqrt
|
||||||
|
```
|
||||||
|
|
||||||
1. Data Loading & Preprocessing:
|
1. Data Loading & Preprocessing:
|
||||||
|
|
||||||
```python3
|
```python3
|
||||||
|
|||||||
Reference in New Issue
Block a user