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

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. 

主站蜘蛛池模板: 临西县| 郸城县| 元阳县| 黄梅县| 武邑县| 闽侯县| 涞水县| 资阳市| 文成县| 罗江县| 九江市| 绿春县| 东城区| 西吉县| 澄迈县| 香河县| 武夷山市| 达日县| 彭泽县| 越西县| 通河县| 龙川县| 巴彦淖尔市| 石林| 五河县| 博爱县| 白玉县| 辽宁省| 长丰县| 玉环县| 诸暨市| 北票市| 宣化县| 望谟县| 神农架林区| 岚皋县| 河北省| 凤庆县| 弥勒县| 常德市| 和平县|