- 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.
推薦閱讀
- 零基礎搭建量化投資系統:以Python為工具
- GraphQL學習指南
- PyTorch自然語言處理入門與實戰
- Python零基礎快樂學習之旅(K12實戰訓練)
- Python:Master the Art of Design Patterns
- MongoDB權威指南(第3版)
- Gradle for Android
- Selenium Testing Tools Cookbook(Second Edition)
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- ASP.NET程序開發范例寶典
- Kubernetes源碼剖析
- Web App Testing Using Knockout.JS
- Android移動應用開發項目教程
- Java EE 8 and Angular
- Getting Started with hapi.js