Update Day 1_Data_Preprocessing.md

This commit is contained in:
shushengyuan
2019-02-05 20:49:49 +08:00
committed by GitHub
parent 9bd5e28925
commit a85ed9fc65

View File

@ -15,9 +15,10 @@ import pandas as pd
``` ```
## 第2步导入数据集 ## 第2步导入数据集
```python ```python
dataset = pd.read_csv('Data.csv') dataset = pd.read_csv('Data.csv')//读取csv文件
X = dataset.iloc[ : , :-1].values X = dataset.iloc[ : , :-1].values//.iloc[]
Y = dataset.iloc[ : , 3].values Y = dataset.iloc[ : , 3].values // : 全部行 or [a]第a行 or
// [a,b,c] a,b,c or
``` ```
## 第3步处理丢失数据 ## 第3步处理丢失数据
```python ```python