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

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. 

主站蜘蛛池模板: 布尔津县| 牟定县| 海原县| 双流县| 平远县| 芦溪县| 确山县| 绥滨县| 肥乡县| 屯门区| 思南县| 荆门市| 衡水市| 宁津县| 清原| 琼海市| 乡宁县| 布拖县| 尤溪县| 中牟县| 文安县| 来凤县| 汉沽区| 琼海市| 昌平区| 朝阳县| 象州县| 本溪| 宜良县| 黎城县| 信丰县| 甘德县| 普格县| 保山市| 乐安县| 油尖旺区| 武定县| 六安市| 江津市| 山东| 张家口市|