- Hands-On Exploratory Data Analysis with Python
- Suresh Kumar Mukhiya Usman Ahmed
- 44字
- 2021-06-24 16:44:55
Loading the CSV file
We will load the CSV file. Refer to the following code block:
dfs = pd.read_csv('mailbox.csv', names=['subject', 'from', 'date', 'to', 'label', 'thread'])
The preceding code will generate a pandas dataframe with only the required fields stored in the CSV file.