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

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. 

主站蜘蛛池模板: 饶阳县| 五河县| 松阳县| 二手房| 繁峙县| 霍邱县| 沛县| 固安县| 高台县| 堆龙德庆县| 长治县| 米易县| 桃源县| 三门县| 河北区| 筠连县| 平度市| 新河县| 北流市| 游戏| 栾川县| 四川省| 平遥县| 湖南省| 衡水市| 新巴尔虎左旗| 民和| 海兴县| 崇仁县| 中方县| 南溪县| 通山县| 射洪县| 曲水县| 民勤县| 子洲县| 沙坪坝区| 峨山| 肇东市| 乌拉特中旗| 应用必备|