メインコンテンツへスキップ
client.star_counts() -> pd.DataFrame
jmail.world のユーザーによるクラウドソース型のスター数をダウンロードします。スターは特定のメール、ドキュメント、写真に対するコミュニティの関心度を示します。

戻り値

スター数に関するデータを格納した pd.DataFrame

from jmail import JmailClient

client = JmailClient()
stars = client.star_counts()

# エンティティタイプ別のスター
print(stars.groupby("entity_type")["count"].sum().sort_values(ascending=False))

# スターが最も多いメール
email_stars = stars[stars.entity_type == "email_message"]
top = email_stars.sort_values("count", ascending=False).head(20)

ColumnTypeDescription
entity_typestringエンティティ種別(email_messageemail_threadphotodocumentimessage
entity_idintエンティティ ID(対応するテーブルの外部キー)
countintスター数

ダイレクトURL

https://data.jmail.world/v1/star_counts.parquet
https://data.jmail.world/v1/star_counts.ndjson.gz