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

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. 

主站蜘蛛池模板: 庄浪县| 马鞍山市| 宁化县| 榆林市| 荣昌县| 浦东新区| 平乡县| 哈密市| 炎陵县| 黄浦区| 济南市| 东乡| 阳山县| 汾阳市| 益阳市| 融水| 多伦县| 荆州市| 西宁市| 垣曲县| 肥东县| 惠东县| 大埔区| 潞城市| 临沧市| 阜康市| 辽中县| 永丰县| 陆丰市| 马山县| 砚山县| 车险| 冷水江市| 民丰县| 井研县| 承德县| 获嘉县| 化德县| 富平县| 重庆市| 海丰县|