官术网_书友最值得收藏!

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. 

主站蜘蛛池模板: 景谷| 望谟县| 绍兴县| 新泰市| 贺兰县| 梅河口市| 搜索| 平潭县| 安宁市| 五家渠市| 新巴尔虎左旗| 浦县| 改则县| 隆回县| 安岳县| 梅州市| 玛沁县| 怀安县| 寻甸| 峨边| 民丰县| 错那县| 隆安县| 虹口区| 和平区| 雷山县| 遂溪县| 额尔古纳市| 察雅县| 阳山县| 桐乡市| 乳源| 六盘水市| 平舆县| 太谷县| 南部县| 怀安县| 延津县| 克山县| 色达县| 康保县|