- 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.
推薦閱讀
- 從零開始構建企業級RAG系統
- Learning Cython Programming(Second Edition)
- 單片機C語言程序設計實訓100例:基于STC8051+Proteus仿真與實戰
- 自己動手寫Java虛擬機
- OpenCV 3和Qt5計算機視覺應用開發
- WSO2 Developer’s Guide
- INSTANT Sencha Touch
- Ray分布式機器學習:利用Ray進行大模型的數據處理、訓練、推理和部署
- 深度學習:算法入門與Keras編程實踐
- 表哥的Access入門:以Excel視角快速學習數據庫開發(第2版)
- Odoo 10 Implementation Cookbook
- Laravel Application Development Blueprints
- PHP與MySQL權威指南
- 遠方:兩位持續創業者的點滴思考
- Mastering Concurrency in Python