每天資訊經驗分享——Excel資料清洗

菜單

經驗分享——Excel資料清洗

經驗分享——Excel資料清洗

經驗分享——Excel資料清洗

經驗分享——Excel資料清洗

01:42

來自LearningYard學苑

分享興趣,傳播快樂,增長見聞,留下美好!親愛的您,這裡是LearningYard新學苑。今天小編為大家帶來經驗分享——Excel資料清洗。

Share interest, spread happiness, increase knowledge, leave good! Dear, this is LearningYard‘s new school。 Today xiaobian for you to bring experience to share —— Excel data cleaning。

在之前的文章中小編為大家介紹了利用八爪魚採集器採集資料的詳細過程,接下來為大家進一步介紹相關資料的清洗過程。

In the previous article, xiaobian introduced the detailed process of collecting data using octopus collector。 Next, we will further introduce the cleaning process of relevant data。

01

資料轉換

首先我們來到Excel介面,選中商品價格的整列,複製文字型區域資料。

First we go to The Excel interface, select the entire column of commodity prices, copy the text area data。

經驗分享——Excel資料清洗

插入空白列並在所要貼上單元格中右擊滑鼠,點選選擇性貼上。

Insert a blank column and right-click in the cell you want to paste and click Selective Paste。

經驗分享——Excel資料清洗

在選擇性貼上對話方塊中運算下選擇加,點選確定按鈕。

Select add under operations in the Selective Paste dialog box and click ok。

經驗分享——Excel資料清洗

修改插入列的欄位名稱,選中原來的列,並刪除。

Change the field name of the inserted column, select the original column, and delete it。

經驗分享——Excel資料清洗

以下就是文字型資料轉化為數值型資料的結果。

Here is the result of converting textual data to numeric data。

經驗分享——Excel資料清洗

02

資料篩選與修改

接著選中商品價格,點選排序和篩選,選中篩選,點擊出現的箭頭,

刪除錯誤資料。

Then select the commodity price, click sort and filter, select filter, click the arrow that appears, delete the wrong data。

經驗分享——Excel資料清洗

選中篩選出的全部資料,並點選刪除。

Select all the selected data and click Delete。

經驗分享——Excel資料清洗

篩選出非空白的資料,點選確定。

Filter out non-blank data and click OK。

經驗分享——Excel資料清洗

在新的單元格內算出價格均值。

Figure out the average price in the new cell。

經驗分享——Excel資料清洗

複製這個均值,複製後記得刪除這一行。

Copy the mean, and then delete the row。

經驗分享——Excel資料清洗

同樣篩選出空白的單元格,選中空白的單元格,將剛才的均值填充進去。

Also screen out the blank cells, select the blank cells, and fill in the mean value。

經驗分享——Excel資料清洗

最後恢復全選的狀態。

Finally, the state of all selection is restored。

經驗分享——Excel資料清洗

繼續清洗畫素一列的資料,點選排序和篩選,選中篩選。

To continue cleaning the data in the pixel column, click Sort and Filter and select Filter。

經驗分享——Excel資料清洗

將無關欄位改為其它。

Change the irrelevant field to something else。

經驗分享——Excel資料清洗

恢復全選狀態。

Restore the select all state。

經驗分享——Excel資料清洗

03

重複以上步驟

重複以上操作步驟,修改其它引數欄位的資料。

Repeat the preceding steps to modify the data of other parameter fields。

經驗分享——Excel資料清洗

經驗分享——Excel資料清洗

04

清洗後資料

以下就是Excel資料清洗後的展示圖。

The following is the Excel data cleaning display diagram。

經驗分享——Excel資料清洗

如果您對今天的文章有獨特的想法,歡迎給我們留言,讓我們相約明天,祝您今天過得開心快樂!

If you have a unique idea for today’s article, feel free to leave a message and let‘s meet tomorrow。 I wish you a happy day today!

-END

參考資料:百度百科、商業資料科學導論課堂影片資料、谷歌翻譯

本文由LearningYard新學苑原創,部分圖片及文字來源於網路,若有侵權請聯絡刪除。