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

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. 

主站蜘蛛池模板: 宜良县| 勃利县| 吉木乃县| 平果县| 理塘县| 左权县| 华池县| 北川| 长阳| 大理市| 马关县| 荥经县| 田林县| 濉溪县| 沙河市| 晋中市| 温宿县| 长子县| 金平| 甘洛县| 仁寿县| 阳原县| 永胜县| 泰宁县| 曲松县| 文水县| 团风县| 固原市| 醴陵市| 思茅市| 松原市| 米易县| 稻城县| 裕民县| 宁化县| 武宁县| 平舆县| 东兰县| 玛沁县| 卢龙县| 明光市|