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

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. 

主站蜘蛛池模板: 泸西县| 东光县| 延庆县| 英吉沙县| 疏勒县| 大丰市| 永新县| 舞阳县| 神农架林区| 神农架林区| 辉南县| 吉木乃县| 怀来县| 静乐县| 华阴市| 淮阳县| 金平| 永兴县| 法库县| 丰顺县| 邢台县| 寿光市| 巴塘县| 滁州市| 城步| 义乌市| 梅州市| 泰州市| 鄂州市| 阿拉善盟| 时尚| 分宜县| 基隆市| 宁德市| 五家渠市| 平顺县| 盖州市| 辽宁省| 环江| 堆龙德庆县| 普洱|