Dropping columns

Let's drop a column:

  1. Note that the to column only contains your own email. So, we can drop this irrelevant column:
dfs.drop(columns='to', inplace=True)
  1. This 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. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.106.237