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

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. 

主站蜘蛛池模板: 微山县| 宝兴县| 襄汾县| 商洛市| 同仁县| 郓城县| 清远市| 建始县| 灌云县| 印江| 冕宁县| 长宁区| 德格县| 嘉善县| 喀什市| SHOW| 郁南县| 阜新市| 清徐县| 当雄县| 江津市| 都安| 甘泉县| 云南省| 山东省| 得荣县| 岢岚县| 大同县| 蕲春县| 资源县| 措美县| 台中县| 乌兰浩特市| 溧水县| 阳春市| 平乐县| 栾川县| 安西县| 石阡县| 汤阴县| 建德市|