- Hands-On Exploratory Data Analysis with Python
- Suresh Kumar Mukhiya Usman Ahmed
- 67字
- 2021-06-24 16:44:56
Dropping columns
Let's drop a column:
Note that the to column only contains your own email. So, we can drop this irrelevant column:
dfs.drop(columns='to', inplace=True)
2.his drops the to column from the dataframe. Let's display the first 10 entries now:
dfs.head(10)
The output of the preceding code is as follows:
Check the preceding output. The fields are cleaned. The data is transformed into the correct format.
推薦閱讀
- Android Studio Essentials
- SQL for Data Analytics
- Python Network Programming Cookbook(Second Edition)
- FLL+WRO樂高機器人競賽教程:機械、巡線與PID
- Java程序設計
- Service Mesh實戰:基于Linkerd和Kubernetes的微服務實踐
- UNIX Linux程序設計教程
- Spring Boot+MVC實戰指南
- 區塊鏈架構之美:從比特幣、以太坊、超級賬本看區塊鏈架構設計
- Clojure High Performance Programming(Second Edition)
- Python硬件編程實戰
- Visual Basic程序設計基礎
- Java EE實用教程
- Hadoop Blueprints
- Python數據可視化之matplotlib實踐