- 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.
推薦閱讀
- Vue.js設計與實現
- Apache Oozie Essentials
- Raspberry Pi for Secret Agents(Third Edition)
- Building Cross-Platform Desktop Applications with Electron
- Cassandra Data Modeling and Analysis
- 網絡爬蟲原理與實踐:基于C#語言
- C語言程序設計
- Node.js從入門到精通
- 零基礎學Java(第5版)
- Testing Practitioner Handbook
- 微信小程序開發圖解案例教程:附精講視頻(第3版)
- SEO的藝術(原書第2版)
- Learning Akka
- C語言學習手冊
- Hands/On Microsoft Teams