- Hands-On Exploratory Data Analysis with Python
- Suresh Kumar Mukhiya Usman Ahmed
- 120字
- 2021-06-24 16:44:57
Number of emails
The answer to the first question, "How many emails did I send during a given timeframe?", can be answered as shown here:
print(dfs.index.min().strftime('%a, %d %b %Y %I:%M %p'))
print(dfs.index.max().strftime('%a, %d %b %Y %I:%M %p'))
print(dfs['label'].value_counts())
The output of the preceding code is given here:
Tue, 24 May 2011 11:04 AM
Fri, 20 Sep 2019 03:04 PM
inbox 32952
sent 4602
Name: label, dtype: int64
If you analyze the output, you'll see that we analyzed emails from Tue, 24 May 2011 11:04 AM, to Fri, 20 Sep 2019 03:04 PM. There were 32,952 emails received and 4,602 emails sent during this timeframe. That is a pretty good insight, right? Now, let's jump into the next question.
推薦閱讀
- Fundamentals of Linux
- LabVIEW2018中文版 虛擬儀器程序設(shè)計自學(xué)手冊
- Python機(jī)器學(xué)習(xí):數(shù)據(jù)分析與評分卡建模(微課版)
- Power Up Your PowToon Studio Project
- Rust編程:入門、實戰(zhàn)與進(jìn)階
- 精通搜索分析
- Android Application Development Cookbook(Second Edition)
- Django Design Patterns and Best Practices
- 深入淺出DPDK
- MySQL數(shù)據(jù)庫管理與開發(fā)(慕課版)
- 微信小程序入門指南
- 青少年學(xué)Python(第1冊)
- Citrix XenServer企業(yè)運維實戰(zhàn)
- Windows Phone 8 Game Development
- Photoshop CC移動UI設(shè)計案例教程(全彩慕課版·第2版)