2023-12-27 02:57:08 +00:00
|
|
|
|
{
|
|
|
|
|
"cells": [
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 9,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "c0c52617",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"import pandas as pd\n",
|
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
|
"import numpy as np\n",
|
|
|
|
|
"from ipywidgets import widgets\n",
|
|
|
|
|
"from IPython.display import display\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"%matplotlib notebook"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 3,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "d20f8fbf",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"posts = pd.read_sql_table('post', 'sqlite:///db.sqlite')\n",
|
|
|
|
|
"likes = pd.read_sql_table('like', 'sqlite:///db.sqlite')\n",
|
|
|
|
|
"reposts = pd.read_sql_table('repost', 'sqlite:///db.sqlite')\n",
|
|
|
|
|
"follows = pd.read_sql_table('follow', 'sqlite:///db.sqlite')\n"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 4,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "7140b9bd",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"application/vnd.jupyter.widget-view+json": {
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"model_id": "169f0c9f67a84aecb38cb8c94336f656",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"version_major": 2,
|
|
|
|
|
"version_minor": 0
|
|
|
|
|
},
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"Tab(children=(Output(), Output(), Output(), Output()), selected_index=0, titles=('posts', 'likes', 'reposts', …"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 4,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"output_type": "execute_result"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"tabs = []\n",
|
|
|
|
|
"for tab in (posts, likes, reposts, follows):\n",
|
|
|
|
|
" widg = widgets.Output()\n",
|
|
|
|
|
" with widg:\n",
|
|
|
|
|
" display(tab)\n",
|
|
|
|
|
" tabs.append(widg)\n",
|
|
|
|
|
" \n",
|
|
|
|
|
"tab = widgets.Tab(children=tabs, titles = ['posts', 'likes', 'reposts', 'follows'])\n",
|
|
|
|
|
"tab"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "bc1b5a30",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Basic Summaries\n"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 5,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "689b5e00",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"Timespan: 1 days 00:29:00.608000\n",
|
|
|
|
|
"Posting Accounts: 134910\n",
|
|
|
|
|
"Liking Accounts: 201814\n",
|
|
|
|
|
"Accounts that only posted: 43655\n",
|
|
|
|
|
"Accounts that only liked: 110559\n",
|
|
|
|
|
"Accounts that posted and liked: 91255\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"posts['indexedAt'] = pd.to_datetime(posts['indexedAt'])\n",
|
|
|
|
|
"span = posts['indexedAt'].max() - posts['indexedAt'].min()\n",
|
|
|
|
|
"posting_accounts = set(posts['authorDid'])\n",
|
|
|
|
|
"liking_accounts = set(likes['authorDid'])\n",
|
|
|
|
|
"posters_only = posting_accounts - liking_accounts\n",
|
|
|
|
|
"likers_only = liking_accounts - posting_accounts\n",
|
|
|
|
|
"posts_and_likes = posting_accounts.intersection(liking_accounts)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"print(f\"\"\"\n",
|
|
|
|
|
"Timespan: {span}\n",
|
|
|
|
|
"Posting Accounts: {len(posting_accounts)}\n",
|
|
|
|
|
"Liking Accounts: {len(liking_accounts)}\n",
|
|
|
|
|
"Accounts that only posted: {len(posters_only)}\n",
|
|
|
|
|
"Accounts that only liked: {len(likers_only)}\n",
|
|
|
|
|
"Accounts that posted and liked: {len(posts_and_likes)}\n",
|
|
|
|
|
"\"\"\")"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "040f4a01",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"# Interaction Distributions\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"Likes per post"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 6,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "3c6a03ff",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/html": [
|
|
|
|
|
"<div>\n",
|
|
|
|
|
"<style scoped>\n",
|
|
|
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe tbody tr th {\n",
|
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe thead th {\n",
|
|
|
|
|
" text-align: right;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"</style>\n",
|
|
|
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
|
|
|
" <thead>\n",
|
|
|
|
|
" <tr style=\"text-align: right;\">\n",
|
|
|
|
|
" <th></th>\n",
|
|
|
|
|
" <th>cid</th>\n",
|
|
|
|
|
" <th>likes</th>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </thead>\n",
|
|
|
|
|
" <tbody>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>0</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>bafyreia222dxd77nwlefofspvv4zyo4vcyidfm53vxhzl...</td>\n",
|
|
|
|
|
" <td>28</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>1</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>bafyreia222hs2ffawpplfo3nfs2g4ibqleg7exybmxx4m...</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>1</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>2</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>bafyreia222p4uouja7nmodbin7msvfyky65zd4epn4fqq...</td>\n",
|
|
|
|
|
" <td>5</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>3</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>bafyreia222tx72zwcfs5mzdtssw4xcpwvmzsan6lk4yrh...</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>1</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>4</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>bafyreia223lumxspphn5wcbw2v65aeon3l2t3frtgrik5...</td>\n",
|
|
|
|
|
" <td>3</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>...</th>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>637533</th>\n",
|
|
|
|
|
" <td>bafyreihzzyn6h4roumu7cebt2ywblpxryz42tt4yd66vb...</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>1</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>637534</th>\n",
|
|
|
|
|
" <td>bafyreihzzyzsfj2qo4lonn3ny6kht6xy4squzfmha4luf...</td>\n",
|
|
|
|
|
" <td>1</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>637535</th>\n",
|
|
|
|
|
" <td>bafyreihzzzd6jvfod4gmeucp4wgtn2fzxw6lggztkmeum...</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>2</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>637536</th>\n",
|
|
|
|
|
" <td>bafyreihzzzfwyi7hxm5wusper7hn6qbi2bx6gibiz4skm...</td>\n",
|
|
|
|
|
" <td>95</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>637537</th>\n",
|
|
|
|
|
" <td>bafyreihzzzgh23q2dplc32rqfuuqn6seimmujmtrq66dc...</td>\n",
|
|
|
|
|
" <td>19</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </tbody>\n",
|
|
|
|
|
"</table>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<p>637538 rows × 2 columns</p>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"</div>"
|
|
|
|
|
],
|
|
|
|
|
"text/plain": [
|
|
|
|
|
" cid likes\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0 bafyreia222dxd77nwlefofspvv4zyo4vcyidfm53vxhzl... 28\n",
|
|
|
|
|
"1 bafyreia222hs2ffawpplfo3nfs2g4ibqleg7exybmxx4m... 1\n",
|
|
|
|
|
"2 bafyreia222p4uouja7nmodbin7msvfyky65zd4epn4fqq... 5\n",
|
|
|
|
|
"3 bafyreia222tx72zwcfs5mzdtssw4xcpwvmzsan6lk4yrh... 1\n",
|
|
|
|
|
"4 bafyreia223lumxspphn5wcbw2v65aeon3l2t3frtgrik5... 3\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"... ... ...\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"637533 bafyreihzzyn6h4roumu7cebt2ywblpxryz42tt4yd66vb... 1\n",
|
|
|
|
|
"637534 bafyreihzzyzsfj2qo4lonn3ny6kht6xy4squzfmha4luf... 1\n",
|
|
|
|
|
"637535 bafyreihzzzd6jvfod4gmeucp4wgtn2fzxw6lggztkmeum... 2\n",
|
|
|
|
|
"637536 bafyreihzzzfwyi7hxm5wusper7hn6qbi2bx6gibiz4skm... 95\n",
|
|
|
|
|
"637537 bafyreihzzzgh23q2dplc32rqfuuqn6seimmujmtrq66dc... 19\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"[637538 rows x 2 columns]"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 6,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"post_likes = likes.groupby('subjectCid'\n",
|
|
|
|
|
" ).agg(likes=('uri', 'count')\n",
|
|
|
|
|
" ).reset_index(\n",
|
|
|
|
|
" ).rename(columns={'subjectCid':'cid'})\n",
|
|
|
|
|
"post_likes"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 7,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "ff9773ef",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"posts = posts.merge(post_likes, left_on='cid', right_on='cid', how='left')\n",
|
|
|
|
|
"posts.loc[posts['likes'].isna(), 'likes'] = 0"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 11,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "2523ba0a",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiwAAAGsCAYAAAD+L/ysAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8g+/7EAAAACXBIWXMAAA9hAAAPYQGoP6dpAABAzElEQVR4nO3deVyVdd7/8fcB5CAqILIrKu65mwtZOuVEoTlOzlLmrxnNabnrrqaGVptGa6YZqmkaa3Jyaix05i6zqawmM40is1ATI5dMxQ03UFQ4gMp2vr8/kKMnQTkInAvO6/l4nEdyXd/rOp9zhfD2u1yXzRhjBAAAYGF+3i4AAADgfAgsAADA8ggsAADA8ggsAADA8ggsAADA8ggsAADA8ggsAADA8ggsAADA8ggsAADA8ggsAADA8lpdYFm5cqUmTZqkuLg42Ww2LVmyxONzGGP0zDPPqE+fPrLb7ercubP++Mc/Nn6xAACgXgK8XUBjKy0t1ZAhQ/SrX/1KP/3pTxt0jnvuuUfLly/XM888o0GDBuno0aM6evRoI1cKAADqy9aaH35os9n0zjvvaPLkya5tZWVl+u1vf6vXX39dhYWFGjhwoJ566ildccUVkqQtW7Zo8ODB2rRpk/r27eudwgEAgJtWNyR0PnfddZcyMzO1aNEibdiwQdddd53Gjx+v7du3S5Lef/999ejRQ//973+VkJCg7t2765ZbbqGHBQAAL/KpwJKbm6tXX31Vb775psaOHauePXvq/vvv15gxY/Tqq69Kknbu3Kk9e/bozTff1MKFC5WWlqasrCz9/Oc/93L1AAD4rlY3h+VcNm7cqKqqKvXp08dte1lZmTp16iRJcjqdKisr08KFC13t5s+fr+HDh2vr1q0MEwEA4AU+FVhKSkrk7++vrKws+fv7u+1r3769JCk2NlYBAQFuoeaiiy6SVN1DQ2ABAKD5+VRgGTZsmKqqqnTo0CGNHTu21jaXX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NpaSkaPbs2Vq/fr2GDBmi5ORkHTp0yNPyAABAI7HKhFtJCvD0gAkTJmjChAkev1FUVJTCwsJq3ffss8/q1ltv1YwZMyRJ8+bN0wcffKBXXnlFDz/8sMfvBQAALpyrh8XL81ekZpzDMnToUMXGxuqqq67SF1984dpeXl6urKwsJSUlnS7Kz09JSUnKzMys9VxlZWVyOBxuLwAA0LhKy6oDSzu7x/0bja7JA0tsbKzmzZunt956S2+99Zbi4+N1xRVXaP369ZKkgoICVVVVKTo62u246Ojos+a51EhNTVVoaKjrFR8f39QfAwAAn1NSVinJGoGlySvo27ev+vbt6/r60ksv1Y4dO/TXv/5V//rXvxp0zpkzZyolJcX1tcPhILQAANDISsoqJEkdfCGw1GbUqFFatWqVJCkiIkL+/v7Kz893a5Ofn6+YmJhaj7fb7bLb7U1eJwAAvqzk1JBQewsEFq9M+83OzlZsbKwkKTAwUMOHD1d6erprv9PpVHp6ukaPHu2N8gAAgKSSk9VDQu2DvB9YPK6gpKREOTk5rq937dql7OxshYeHq2vXrpo5c6b279+vhQsXSpLmzJmjhIQEDRgwQCdPntQ///lPffLJJ1q+fLnrHCkpKZo+fbpGjBihUaNGac6cOSotLXWtGgIAAM2vZkjICj0sHlewbt06jRs3zvV1zVyS6dOnKy0tTQcPHlRubq5rf3l5ue677z7t379fwcHBGjx4sD7++GO3c0yZMkWHDx/WrFmzlJeXp6FDh2rZsmVnTcQFAADNp9RCQ0I2Y4zxdhEXyuFwKDQ0VEVFRQoJCfF2OQAAtAr3Lf5Gb63fp4cn9NPtl/ds9PN78vvb+7euAwAAllQ
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
2024-01-05 23:40:11 +00:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"%matplotlib inline\n",
|
|
|
|
|
"y = posts.sort_values(by='likes')['likes'].cumsum()\n",
|
|
|
|
|
"plt.plot(y.reset_index(drop=True))\n",
|
|
|
|
|
"plt.title('Cumulative sum of likes by post')\n",
|
|
|
|
|
"plt.show()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 51,
|
|
|
|
|
"id": "ee048235-1d61-4209-8c84-bf51e3f246dc",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
2023-12-27 02:57:08 +00:00
|
|
|
|
{
|
|
|
|
|
"data": {
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjAAAAGzCAYAAAAxPS2EAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8g+/7EAAAACXBIWXMAAA9hAAAPYQGoP6dpAAA+RklEQVR4nO3de3wU9b3/8ffmsksCbMIt2UQCjaJAuClBwx6VqqQEjLcjWhAUVITCCVbAAzTn8EPUajx4RRGotRrbggqtV1AwBAheAmJKyk1TVDRU2ATBZAEhIcn394fNyMotCaHLJK/n4zGPBzPzmZnPjOvm/Zj9zq7DGGMEAABgIyHBbgAAAKC+CDAAAMB2CDAAAMB2CDAAAMB2CDAAAMB2CDAAAMB2CDAAAMB2CDAAAMB2CDAAAMB2CDBAM/XVV1/J4XAoOzvbWnb77berVatWwWsKAOqIAAM0QdnZ2XI4HPrkk0+C3Qrq4eGHH9Ybb7wR7DYAWwgLdgMAgqNz5846dOiQwsPDg90K/uXhhx/WTTfdpBtuuCHYrQBnPe7AAM2Uw+FQixYtFBoaGuxWguLgwYPBbgHAaSDAAM3U8cbAHE9hYaE6dOigK664QgcOHJAkffPNN7rzzjsVGxsrl8ulHj166IUXXjhm22eeeUY9evRQZGSk2rRpo379+mnRokUnPd6aNWvkcDj06quv6n/+53/k8XjUsmVLXXfdddq5c+cx9evXr9fgwYMVFRWlyMhI/fznP9eHH34YUDNr1iw5HA5t27ZNI0aMUJs2bXTZZZedsIfaj+DWrl2rX/3qV2rXrp3cbrdGjRql77777pj6efPmqUePHnK5XIqPj1dGRobKysoCarZv366hQ4fK4/GoRYsW6tixo4YPH67y8nJJPwTKgwcP6qWXXpLD4ZDD4dDtt99+0msFNGd8hATghDZs2KC0tDT169dPb775piIiIlRSUqL+/fvL4XBo4sSJ6tChg959912NGTNGfr9fkyZNkiT9/ve/169//WvddNNNuueee3T48GFt2rRJ69ev14gRI0557IceekgOh0PTp09XaWmpnnrqKaWmpqqwsFARERGSpFWrVmnIkCFKTk7Wfffdp5CQEL344ou66qqr9P777+uSSy4J2OfNN9+s888/Xw8//LCMMafsYeLEiYqOjtasWbNUVFSk+fPn6+uvv7ZClvRDOLr//vuVmpqqCRMmWHUbNmzQhx9+qPDwcFVWViotLU0VFRW6++675fF49M0332jp0qUqKytTVFSU/vSnP+muu+7SJZdconHjxkmSzjvvvPr85wKaFwOgyXnxxReNJLNhw4YT1uzYscNIMi+++KK1bPTo0aZly5bGGGM++OAD43a7TXp6ujl8+LBVM2bMGBMXF2e+/fbbgP0NHz7cREVFme+//94YY8z1119vevToUe/eV69ebSSZc845x/j9fmv54sWLjSQzZ84cY4wxNTU15vzzzzdpaWmmpqbGqvv+++9NYmKi+cUvfmEtu++++4wkc8stt9Sph9rrl5ycbCorK63ls2fPNpLMm2++aYwxprS01DidTjNo0CBTXV1t1c2dO9dIMi+88IIxxpiNGzcaSWbJkiUnPW7Lli3N6NGj69Qj0NzxERKAY6xevVppaWkaOHCgXnvtNblcLkmSMUZ//etfde2118oYo2+//daa0tLSVF5err/97W+SpOjoaP3zn//Uhg0bGtTDqFGj1Lp1a2v+pptuUlxcnN555x1JP3y0tX37do0YMUJ79+61+jh48KAGDhyotWvXqqamJmCf48ePr1cP48aNCxjkPGHCBIWFhVk9rFy5UpWVlZo0aZJCQn58Ox07dqzcbreWLVsmSYqKipIkrVixQt9//329egBwfHyEBCDA4cOHlZ6eruTkZC1evFhhYT++TezZs0dlZWV67rnn9Nxzzx13+9LSUknS9OnTtXLlSl1yySXq0qWLBg0apBEjRujSSy+tUx/nn39+wLzD4VCXLl301VdfSfphTIkkjR49+oT7KC8vV5s2baz5xMTEOh37RD20atVKcXFxVg9ff/21JKlr164BdU6nU+eee661PjExUVOmTNETTzyhhQsX6vLLL9d1112nW2+91Qo3AOqHAAMggMvl0tVXX60333xTy5cv1zXXXGOtq72jceutt54wOPTu3VuS1L17dxUVFWnp0qVavny5/vrXv2revHmaOXOm7r///tPus7aXRx99VBdeeOFxa376pXy1Y2eC4fHHH9ftt9+uN998U++9955+/etfKysrS+vWrVPHjh2D1hdgVwQYAAEcDocWLlyo66+/XjfffLPeffddXXHFFZKkDh06qHXr1qqurlZqauop99WyZUsNGzZMw4YNU2VlpW688UY99NBDyszMVIsWLU66be0dllrGGH3++edWQKod4Op2u+vUS0Ns375dV155pTV/4MAB7d69W1dffbWkH75LR5KKiop07rnnWnWVlZXasWPHMX316tVLvXr10owZM/TRRx/p0ksv1YIFC/Tb3/5WkqyBwQBOjTEwAI7hdDr12muv6eKLL9a1116rjz/+WJIUGhqqoUOH6q9//au2bNlyzHZ79uyx/r13795j9pmUlCRjjI4cOXLKHv74xz9q//791vxf/vIX7d69W0OGDJEkJScn67zzztNjjz1mPd59ol4a6rnnngvodf78+aqqqrJ6SE1NldPp1NNPPx3wVNMf/vAHlZeXKz09XZLk9/tVVVUVsO9evXopJCREFRUV1rKWLVse8/g1gOPjDgzQhL3wwgtavnz5McvvueeeU24bERGhpUuX6qqrrtKQIUOUl5ennj176pFHHtHq1auVkpKisWPHKikpSfv27dPf/vY3rVy5Uvv27ZMkDRo0SB6PR5deeqliY2P16aefau7cuUpPTw8YnHsibdu21WWXXaY77rhDJSUleuqpp9SlSxeNHTtWkhQSEqLnn39eQ4YMUY8ePXTHHXfonHPO0TfffKPVq1fL7Xbr7bffrucVC1RZWamBAwfql7/8pYqKijRv3jxddtlluu666yT9cEcqMzNT999/vwYPHqzrrrvOqrv44ot16623Svrhce+JEyfq5ptv1gUXXKCqqir96U9/sgJhreTkZK1cuVJPPPGE4uPjlZiYqJSUlNM6B6DJCuozUADOiNrHgE807dy585SPUdf69ttvTVJSkvF4PGb79u3GGGNKSkpMRkaGSUhIMOHh4cbj8ZiBAwea5557ztrud7/7nRkwYIBp166dcblc5rzzzjNTp0415eXlJ+299jHql19+2WRmZpqYmBgTERFh0tPTzddff31M/caNG82NN95oHadz587ml7/8pcnNzbVqah+j3rNnT72uX15enhk3bpxp06aNadWqlRk5cqTZu3fvMfVz58413bp1M+Hh4SY2NtZMmDDBfPfdd9b6L7/80tx5553mvPPOMy1atDBt27Y1V155pVm5cmXAfj777DMzYMAAExERYSTxSDVwEg5j6vBtTgDwb7JmzRpdeeWVWrJkiW666aag9JCdna077rhDGzZsUL9+/YLSA4CTYwwMAACwHQIMAACwHQIMAACwHcbAAAAA2+EODAAAsB0CDAAAsJ0m+0V2NTU12rVrl1q3bs3XcwMAYBPGGO3fv1/x8fEBv/L+U002wOzatUsJCQnBbgMAADTAzp07T/pDp002wNR+VfnOnTvldruD3A0AAKgLv9+vhISEU/7kSJMNMLUfG7ndbgIMAAA2c6rhHwziBQAAtkOAAQAAtkOAAQAAtnNaAeaRRx6Rw+HQpEmTrGWHDx9WRkaG2rVrp1atWmno0KEqKSkJ2K64uFjp6emKjIxUTEyMpk6dqqqqqoCaNWvWqG/fvnK5XOrSpYuys7NPp1UAANCENDjAbNiwQb/73e/Uu3fvgOWTJ0/W22+/rSVLligvL0+7du3SjTfeaK2vrq5Wenq6Kisr9dFHH+mll15Sdna2Zs6cadXs2LFD6enpuvLKK1VYWKhJkybprrvu0ooVKxraLgAAaEpMA+zfv9+cf/75Jicnx/z85z8399xzjzHGmLKyMhM
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"%matplotlib inline\n",
|
|
|
|
|
"y = posts.sort_values(by='likes')['likes']\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"plt.plot(y.reset_index(drop=True))\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"plt.title('Likes per post')\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"plt.show()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 12,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "1b9264f4",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.3944738883046787"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 12,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"np.sum(posts['likes'] == 0) / posts.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 13,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "6744b53f",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.6932166446400256"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 13,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"np.sum(posts['likes'] <= 1) / posts.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "187f935d",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Likes per account"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 14,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "e9b4f141",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/html": [
|
|
|
|
|
"<div>\n",
|
|
|
|
|
"<style scoped>\n",
|
|
|
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe tbody tr th {\n",
|
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe thead th {\n",
|
|
|
|
|
" text-align: right;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"</style>\n",
|
|
|
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
|
|
|
" <thead>\n",
|
|
|
|
|
" <tr style=\"text-align: right;\">\n",
|
|
|
|
|
" <th></th>\n",
|
|
|
|
|
" <th>account</th>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </thead>\n",
|
|
|
|
|
" <tbody>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>0</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:lhfbzpkdw2jk5i6im5pd2mi5</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>1</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:btaxnpi4resvm2uz4n7tcp3f</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>2</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:ky3xc27d4ct6ntwxsu7tjpx7</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>3</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:z3ds6onyuoyfnx42qgoddhbp</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>4</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:hqzxqh634sd546rfoazslb5h</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>...</th>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>269812</th>\n",
|
|
|
|
|
" <td>did:plc:p6t6ari5h7bcim3iq3zs3fwr</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>269813</th>\n",
|
|
|
|
|
" <td>did:plc:omiligdebd4dwcthsxvn2fgi</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>269814</th>\n",
|
|
|
|
|
" <td>did:plc:fg6wnip4zgzz3277lz7djpet</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>269815</th>\n",
|
|
|
|
|
" <td>did:plc:5czjjn5zjvkxec6rcvvuidgq</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>269816</th>\n",
|
|
|
|
|
" <td>did:plc:jdiqko5hqd3chtepm4docjsc</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </tbody>\n",
|
|
|
|
|
"</table>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<p>269817 rows × 1 columns</p>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"</div>"
|
|
|
|
|
],
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" account\n",
|
|
|
|
|
"0 did:plc:lhfbzpkdw2jk5i6im5pd2mi5\n",
|
|
|
|
|
"1 did:plc:btaxnpi4resvm2uz4n7tcp3f\n",
|
|
|
|
|
"2 did:plc:ky3xc27d4ct6ntwxsu7tjpx7\n",
|
|
|
|
|
"3 did:plc:z3ds6onyuoyfnx42qgoddhbp\n",
|
|
|
|
|
"4 did:plc:hqzxqh634sd546rfoazslb5h\n",
|
|
|
|
|
"... ...\n",
|
|
|
|
|
"269812 did:plc:p6t6ari5h7bcim3iq3zs3fwr\n",
|
|
|
|
|
"269813 did:plc:omiligdebd4dwcthsxvn2fgi\n",
|
|
|
|
|
"269814 did:plc:fg6wnip4zgzz3277lz7djpet\n",
|
|
|
|
|
"269815 did:plc:5czjjn5zjvkxec6rcvvuidgq\n",
|
|
|
|
|
"269816 did:plc:jdiqko5hqd3chtepm4docjsc\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"[269817 rows x 1 columns]"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 14,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"accounts = pd.concat([likes['subjectDid'], likes['authorDid'], posts['authorDid']])\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"accounts = pd.DataFrame({'account': accounts.unique()})\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 15,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "05c7fe61",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/html": [
|
|
|
|
|
"<div>\n",
|
|
|
|
|
"<style scoped>\n",
|
|
|
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe tbody tr th {\n",
|
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe thead th {\n",
|
|
|
|
|
" text-align: right;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"</style>\n",
|
|
|
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
|
|
|
" <thead>\n",
|
|
|
|
|
" <tr style=\"text-align: right;\">\n",
|
|
|
|
|
" <th></th>\n",
|
|
|
|
|
" <th>account</th>\n",
|
|
|
|
|
" <th>likes</th>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </thead>\n",
|
|
|
|
|
" <tbody>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>0</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:2224x6c53tqc6dpnbamce2yg</td>\n",
|
|
|
|
|
" <td>64</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>1</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:222ombk5yfjty5jw6r6566tk</td>\n",
|
|
|
|
|
" <td>4</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>2</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:222p42fegwhwfyrc3gqam76j</td>\n",
|
|
|
|
|
" <td>119</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>3</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:222qqedb2kgz3ulwbpboltw2</td>\n",
|
|
|
|
|
" <td>6</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>4</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:222rnvnta2lbl364bog2plxw</td>\n",
|
|
|
|
|
" <td>575</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>...</th>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>133639</th>\n",
|
|
|
|
|
" <td>did:plc:zzz2awwhi7smhg3qn6th37xg</td>\n",
|
|
|
|
|
" <td>2</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>133640</th>\n",
|
|
|
|
|
" <td>did:plc:zzza7zo2lho4etts27epjgpc</td>\n",
|
|
|
|
|
" <td>1</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>133641</th>\n",
|
|
|
|
|
" <td>did:plc:zzzj2bhzojle3nic4wpwmcsm</td>\n",
|
|
|
|
|
" <td>1</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>133642</th>\n",
|
|
|
|
|
" <td>did:plc:zzznrmktdln6qlvsqigd6ubc</td>\n",
|
|
|
|
|
" <td>7</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>133643</th>\n",
|
|
|
|
|
" <td>did:plc:zzzzet3m2cnkmtsjyusz7uzs</td>\n",
|
|
|
|
|
" <td>67</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </tbody>\n",
|
|
|
|
|
"</table>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<p>133644 rows × 2 columns</p>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"</div>"
|
|
|
|
|
],
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" account likes\n",
|
|
|
|
|
"0 did:plc:2224x6c53tqc6dpnbamce2yg 64\n",
|
|
|
|
|
"1 did:plc:222ombk5yfjty5jw6r6566tk 4\n",
|
|
|
|
|
"2 did:plc:222p42fegwhwfyrc3gqam76j 119\n",
|
|
|
|
|
"3 did:plc:222qqedb2kgz3ulwbpboltw2 6\n",
|
|
|
|
|
"4 did:plc:222rnvnta2lbl364bog2plxw 575\n",
|
|
|
|
|
"... ... ...\n",
|
|
|
|
|
"133639 did:plc:zzz2awwhi7smhg3qn6th37xg 2\n",
|
|
|
|
|
"133640 did:plc:zzza7zo2lho4etts27epjgpc 1\n",
|
|
|
|
|
"133641 did:plc:zzzj2bhzojle3nic4wpwmcsm 1\n",
|
|
|
|
|
"133642 did:plc:zzznrmktdln6qlvsqigd6ubc 7\n",
|
|
|
|
|
"133643 did:plc:zzzzet3m2cnkmtsjyusz7uzs 67\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"[133644 rows x 2 columns]"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 15,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"account_likes = likes.groupby('subjectDid'\n",
|
|
|
|
|
" ).agg(likes=('uri', 'count')\n",
|
|
|
|
|
" ).reset_index(\n",
|
|
|
|
|
" ).rename(columns={'subjectDid':'account'})\n",
|
|
|
|
|
"account_likes"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 16,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "956aa546",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"accounts = accounts.merge(account_likes, left_on='account', right_on='account', how='left')\n",
|
|
|
|
|
"accounts.loc[accounts['likes'].isna(), 'likes'] = 0"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 17,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "152aa08c",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiMAAAGsCAYAAAAPJKchAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8g+/7EAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAzNUlEQVR4nO3deXzV1Z3/8ffNdpOQjRCyQYAgi7IjsgQ3HFFAtNJ2LHWcgo7S0YGOltZ26KLVTie2imXGoVIfVvNzKqJMBaaoVAwCRSIWJAKCYScIWYCQ3CzkZrnn90dyL1whZCHJ9y6v5+NxH5L7Pd97P/ckMe/HOed7vjZjjBEAAIBFQqwuAAAABDfCCAAAsBRhBAAAWIowAgAALEUYAQAAliKMAAAASxFGAACApQgjAADAUoQRAABgKcIIAACwlF+Fkc2bN+uuu+5Senq6bDabVq9e3e7XMMboueee05AhQ2S329WnTx/96le/6vxiAQBAm4RZXUB7VFdXa/To0fqnf/onfeMb3+jQazz66KN6//339dxzz2nkyJEqKytTWVlZJ1cKAADayuavN8qz2WxatWqVZs2a5XnO6XTqpz/9qd544w2Vl5drxIgR+vWvf60pU6ZIkvbt26dRo0Zpz549Gjp0qDWFAwAAL341TdOaBQsWKC8vTytWrNCuXbt0zz33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Mk1X9srOyAgAAOhu7lERSYoMZ2QEAAB0M/eVNDYbd+0FAAAWqK0
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"%matplotlib inline\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"y_accounts = accounts.sort_values(by='likes')['likes'].cumsum().reset_index(drop=True)\n",
|
|
|
|
|
"plt.plot(y_accounts)\n",
|
|
|
|
|
"plt.show()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 18,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "33ec3b44",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
|
|
|
|
"0.00 0.0\n",
|
|
|
|
|
"0.25 0.0\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.50 0.0\n",
|
|
|
|
|
"0.75 3.0\n",
|
|
|
|
|
"0.90 13.0\n",
|
|
|
|
|
"0.95 33.0\n",
|
|
|
|
|
"0.99 152.0\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"Name: likes, dtype: float64"
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 18,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"quants = [0, 0.25, 0.5, 0.75, 0.9, .95, .99]\n",
|
|
|
|
|
"quantiles = accounts['likes'].quantile(quants)\n",
|
|
|
|
|
"quantiles"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 19,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "fe29f683",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"[0, 0, 0, 196497, 241490, 256295, 267113]"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 19,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"sorted_accounts = accounts.sort_values(by='likes')\n",
|
|
|
|
|
"quant_idx = [np.where(sorted_accounts['likes'] >= q)[0][0] for q in quantiles]\n",
|
|
|
|
|
"quant_idx"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 20,
|
|
|
|
|
"id": "36b72cea",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"(array([136173, 136174, 136175, ..., 269814, 269815, 269816]),)"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 20,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"np.where(sorted_accounts['likes'] > 0)"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 22,
|
|
|
|
|
"id": "c10b03d4",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
2023-12-27 02:57:08 +00:00
|
|
|
|
{
|
|
|
|
|
"data": {
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAicAAAGzCAYAAAD0T7cVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8g+/7EAAAACXBIWXMAAA9hAAAPYQGoP6dpAABkx0lEQVR4nO3dd3yT1f4H8E/SNuluKd1QaClTRtmlIEOtDEHAwbooQwEHXMWFoj9F9CqionARRe9V6mYJeEVlC4gUBQTZe5TVltU90ibn90fJY0PztEmbJs/TfN6vV1/Q5Mk5J+dJk2/O95zzaIQQAkREREQKoXV1A4iIiIjKY3BCREREisLghIiIiBSFwQkREREpCoMTIiIiUhQGJ0RERKQoDE6IiIhIURicEBERkaIwOCEiIiJFYXBCDjdu3DjExsY6tMyUlBRoNBqcOXPGoeW6mzVr1qB9+/bw9vaGRqNBVlaW1eOs9XefPn3Qp08f6ffNmzdDo9Fg+fLltdtolamN17+tNBoNXn311UqP4XkjNWBwolAnT57EI488giZNmsDb2xuBgYHo0aMH5s2bh8LCQlc3r9a8+eabWLVqlaubUSddvXoVw4cPh4+PDxYsWIAvv/wSfn5+rm4WkeoVFBTg1VdfxebNm13dlDrD09UNoIp+/PFHDBs2DHq9HmPGjEGbNm1gMBiwbds2PPfcczh48CA++eQTVzezVrz55pu4//77MXToUIvbH3zwQYwcORJ6vd41DasD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 +00:00
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"%matplotlib inline\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n",
|
|
|
|
|
"cumsum_accounts = sorted_accounts['likes'].cumsum().reset_index(drop=True)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"plt.plot(cumsum_accounts)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"for q_label, q_idx in zip(quants, quant_idx):\n",
|
|
|
|
|
" plt.axvline(x=q_idx, color='black', linestyle='--', linewidth=.1)\n",
|
|
|
|
|
" plt.annotate(text=str(q_label), xy=(q_idx, max(cumsum_accounts)), xycoords='data')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"plt.title('Cumulative sum of likes received by accounts') \n",
|
|
|
|
|
"\n",
|
|
|
|
|
"plt.show()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 23,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "edbf19cc",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.5046865097454941"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 23,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"len(accounts[accounts['likes']==0]['likes']) / len(accounts)"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "cbf4bf37",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Proportion of interactions received by the 99th and 95th percentile of most interacted with accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 24,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "da3a792a",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.442995115042035"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 24,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"percentile = 0.99\n",
|
|
|
|
|
"accounts.loc[accounts['likes'] >= quantiles[percentile], 'likes'].sum() / accounts['likes'].sum()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 25,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "f018a478",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.73839113058112"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 25,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"percentile = 0.95\n",
|
|
|
|
|
"accounts.loc[accounts['likes'] >= quantiles[percentile], 'likes'].sum() / accounts['likes'].sum()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "66961868",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Excluding interactions with the top (percentile) accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"id": "2d6a7119",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 26,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "db949eae",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"top_accounts = accounts.loc[accounts['likes'] >= quantiles[percentile]]\n"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 27,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "660122a8",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"top_posts = posts.loc[posts['authorDid'].isin(top_accounts['account'])]\n",
|
|
|
|
|
"non_top_posts = posts.loc[~posts['authorDid'].isin(top_accounts['account'])]\n",
|
|
|
|
|
"top_threads = posts.loc[np.logical_or(\n",
|
|
|
|
|
" posts['replyRoot'].isin(top_posts['uri']),\n",
|
|
|
|
|
" posts['replyParent'].isin(top_posts['uri'])\n",
|
|
|
|
|
")]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 28,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "9bf35229",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/html": [
|
|
|
|
|
"<div>\n",
|
|
|
|
|
"<style scoped>\n",
|
|
|
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe tbody tr th {\n",
|
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe thead th {\n",
|
|
|
|
|
" text-align: right;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"</style>\n",
|
|
|
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
|
|
|
" <thead>\n",
|
|
|
|
|
" <tr style=\"text-align: right;\">\n",
|
|
|
|
|
" <th></th>\n",
|
|
|
|
|
" <th>uri</th>\n",
|
|
|
|
|
" <th>cid</th>\n",
|
|
|
|
|
" <th>authorDid</th>\n",
|
|
|
|
|
" <th>indexedAt</th>\n",
|
|
|
|
|
" <th>createdAt</th>\n",
|
|
|
|
|
" <th>subjectUri</th>\n",
|
|
|
|
|
" <th>subjectCid</th>\n",
|
|
|
|
|
" <th>subjectDid</th>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </thead>\n",
|
|
|
|
|
" <tbody>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>1</th>\n",
|
|
|
|
|
" <td>at://did:plc:iomleec6ojlmywkrwqjbr57o/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreidgvotn7srwum67gsv5rkjbiybtwjwpei5tvnrws...</td>\n",
|
|
|
|
|
" <td>did:plc:iomleec6ojlmywkrwqjbr57o</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:43.896Z</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:42.248Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:btaxnpi4resvm2uz4n7tcp3f/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreifsu35qmmr66fooemrvkke6rdd3qq5mdjvtsqs5y...</td>\n",
|
|
|
|
|
" <td>did:plc:btaxnpi4resvm2uz4n7tcp3f</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>2</th>\n",
|
|
|
|
|
" <td>at://did:plc:cakburidjcwro44hweyxazjg/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreiawjvozspsyg5yelmmnb3hs4sp7vsjqddpr6t636...</td>\n",
|
|
|
|
|
" <td>did:plc:cakburidjcwro44hweyxazjg</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:43.968Z</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:43.705Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:ky3xc27d4ct6ntwxsu7tjpx7/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreib7r6526nciyilv3ky345zbmbh4w3tsarc74z72c...</td>\n",
|
|
|
|
|
" <td>did:plc:ky3xc27d4ct6ntwxsu7tjpx7</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>6</th>\n",
|
|
|
|
|
" <td>at://did:plc:kwmi7ftr3g7hbohzauip3mxn/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreiasf7jxlprpiix6eo4x7ifb7zeaduu2kcftyxpyi...</td>\n",
|
|
|
|
|
" <td>did:plc:kwmi7ftr3g7hbohzauip3mxn</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:44.068Z</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:45.463Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:wxj3cnbus6js5f7hjwowoxoq/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreifcftx7xktszbhmylitz34hf66ivmboymshgtchl...</td>\n",
|
|
|
|
|
" <td>did:plc:wxj3cnbus6js5f7hjwowoxoq</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>10</th>\n",
|
|
|
|
|
" <td>at://did:plc:43eonpufv7sg6hglanhbhraw/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreieyyoeepsexamgybk5dun3sqxwiqftas2ent47np...</td>\n",
|
|
|
|
|
" <td>did:plc:43eonpufv7sg6hglanhbhraw</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:44.287Z</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:44.003Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:mgsxkvihm65lecdzbavku3tk/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreibyyeobzn34r4edmeiaarancnpjbuesdiuqxkxfy...</td>\n",
|
|
|
|
|
" <td>did:plc:mgsxkvihm65lecdzbavku3tk</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>11</th>\n",
|
|
|
|
|
" <td>at://did:plc:ipepj5vzwwzvggali4tnccwj/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreiht7xdi2cuc6bwoer4qcf5nwzekyt7kvwq6cv4la...</td>\n",
|
|
|
|
|
" <td>did:plc:ipepj5vzwwzvggali4tnccwj</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:44.369Z</td>\n",
|
|
|
|
|
" <td>2023-12-27T03:12:43.406Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:e4r2dxzbadqabu63wne4tosx/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreibk6afarwpw7rdzifkxbi5kgy36tolpe45lxvjzq...</td>\n",
|
|
|
|
|
" <td>did:plc:e4r2dxzbadqabu63wne4tosx</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>...</th>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>2431516</th>\n",
|
|
|
|
|
" <td>at://did:plc:feaa5k4utn2gayj2bxsvx3cx/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreifm7bfz6t22liztgjjtnrm3svwiuyno37chgh4ki...</td>\n",
|
|
|
|
|
" <td>did:plc:feaa5k4utn2gayj2bxsvx3cx</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:47.605Z</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:46.687Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:q4b6fmgkkrybhf5ejbrgcmgn/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreibl7b6qni2jxir2v4uf5wfcurx3bbsgprvodwb2s...</td>\n",
|
|
|
|
|
" <td>did:plc:q4b6fmgkkrybhf5ejbrgcmgn</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>2431523</th>\n",
|
|
|
|
|
" <td>at://did:plc:7yeirudvbp5l3lmp4ycgbml5/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreigj5r4j2cmgyops6naxbnk6qsdk7woqtjwy75fh4...</td>\n",
|
|
|
|
|
" <td>did:plc:7yeirudvbp5l3lmp4ycgbml5</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:47.666Z</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:46.741Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:fllmcdrrhebd55j4mp43igmb/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreiatd54b5pcpu2f2cysdavzcv2iqtdput7orhgbnt...</td>\n",
|
|
|
|
|
" <td>did:plc:fllmcdrrhebd55j4mp43igmb</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>2431524</th>\n",
|
|
|
|
|
" <td>at://did:plc:qdriunexx3nobe5kpltycouy/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreifncwwa4desh5ju6re2ykvfgchnppxvzlk5spili...</td>\n",
|
|
|
|
|
" <td>did:plc:qdriunexx3nobe5kpltycouy</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:47.686Z</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:46.886Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:i3l64jceufl7zcbk3r2sfiyc/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreihyyllfudoppmwlzvir5uvomf4cgxogygba7dt2l...</td>\n",
|
|
|
|
|
" <td>did:plc:i3l64jceufl7zcbk3r2sfiyc</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>2431529</th>\n",
|
|
|
|
|
" <td>at://did:plc:ycdfsvtnosafdvko26fc7i43/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreigvptivi6zu6njihe7wfuii6rdhj5y3l6u2azihw...</td>\n",
|
|
|
|
|
" <td>did:plc:ycdfsvtnosafdvko26fc7i43</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:47.745Z</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:46.679Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:gxxkzpo2cw6q2ynee64rxppw/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreicoczktoxoxozi3wurb3shbikgd5tbrukl4goavl...</td>\n",
|
|
|
|
|
" <td>did:plc:gxxkzpo2cw6q2ynee64rxppw</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>2431538</th>\n",
|
|
|
|
|
" <td>at://did:plc:ct5u4vpg5ajhx6wxihtca6qh/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreiduxg3lwaaibwaxsrsck44rzfpefliil2otfy67z...</td>\n",
|
|
|
|
|
" <td>did:plc:ct5u4vpg5ajhx6wxihtca6qh</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:48.066Z</td>\n",
|
|
|
|
|
" <td>2023-12-28T03:41:47.744Z</td>\n",
|
|
|
|
|
" <td>at://did:plc:4msurte3uoa37puu2ma673t6/app.bsky...</td>\n",
|
|
|
|
|
" <td>bafyreifmtmvujeeccj4t7trmzof22lhxpkiqk5s5yamty...</td>\n",
|
|
|
|
|
" <td>did:plc:4msurte3uoa37puu2ma673t6</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </tbody>\n",
|
|
|
|
|
"</table>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<p>546374 rows × 8 columns</p>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"</div>"
|
|
|
|
|
],
|
|
|
|
|
"text/plain": [
|
|
|
|
|
" uri \\\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"1 at://did:plc:iomleec6ojlmywkrwqjbr57o/app.bsky... \n",
|
|
|
|
|
"2 at://did:plc:cakburidjcwro44hweyxazjg/app.bsky... \n",
|
|
|
|
|
"6 at://did:plc:kwmi7ftr3g7hbohzauip3mxn/app.bsky... \n",
|
|
|
|
|
"10 at://did:plc:43eonpufv7sg6hglanhbhraw/app.bsky... \n",
|
|
|
|
|
"11 at://did:plc:ipepj5vzwwzvggali4tnccwj/app.bsky... \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"... ... \n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"2431516 at://did:plc:feaa5k4utn2gayj2bxsvx3cx/app.bsky... \n",
|
|
|
|
|
"2431523 at://did:plc:7yeirudvbp5l3lmp4ycgbml5/app.bsky... \n",
|
|
|
|
|
"2431524 at://did:plc:qdriunexx3nobe5kpltycouy/app.bsky... \n",
|
|
|
|
|
"2431529 at://did:plc:ycdfsvtnosafdvko26fc7i43/app.bsky... \n",
|
|
|
|
|
"2431538 at://did:plc:ct5u4vpg5ajhx6wxihtca6qh/app.bsky... \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n",
|
|
|
|
|
" cid \\\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"1 bafyreidgvotn7srwum67gsv5rkjbiybtwjwpei5tvnrws... \n",
|
|
|
|
|
"2 bafyreiawjvozspsyg5yelmmnb3hs4sp7vsjqddpr6t636... \n",
|
|
|
|
|
"6 bafyreiasf7jxlprpiix6eo4x7ifb7zeaduu2kcftyxpyi... \n",
|
|
|
|
|
"10 bafyreieyyoeepsexamgybk5dun3sqxwiqftas2ent47np... \n",
|
|
|
|
|
"11 bafyreiht7xdi2cuc6bwoer4qcf5nwzekyt7kvwq6cv4la... \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"... ... \n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"2431516 bafyreifm7bfz6t22liztgjjtnrm3svwiuyno37chgh4ki... \n",
|
|
|
|
|
"2431523 bafyreigj5r4j2cmgyops6naxbnk6qsdk7woqtjwy75fh4... \n",
|
|
|
|
|
"2431524 bafyreifncwwa4desh5ju6re2ykvfgchnppxvzlk5spili... \n",
|
|
|
|
|
"2431529 bafyreigvptivi6zu6njihe7wfuii6rdhj5y3l6u2azihw... \n",
|
|
|
|
|
"2431538 bafyreiduxg3lwaaibwaxsrsck44rzfpefliil2otfy67z... \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n",
|
|
|
|
|
" authorDid indexedAt \\\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"1 did:plc:iomleec6ojlmywkrwqjbr57o 2023-12-27T03:12:43.896Z \n",
|
|
|
|
|
"2 did:plc:cakburidjcwro44hweyxazjg 2023-12-27T03:12:43.968Z \n",
|
|
|
|
|
"6 did:plc:kwmi7ftr3g7hbohzauip3mxn 2023-12-27T03:12:44.068Z \n",
|
|
|
|
|
"10 did:plc:43eonpufv7sg6hglanhbhraw 2023-12-27T03:12:44.287Z \n",
|
|
|
|
|
"11 did:plc:ipepj5vzwwzvggali4tnccwj 2023-12-27T03:12:44.369Z \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"... ... ... \n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"2431516 did:plc:feaa5k4utn2gayj2bxsvx3cx 2023-12-28T03:41:47.605Z \n",
|
|
|
|
|
"2431523 did:plc:7yeirudvbp5l3lmp4ycgbml5 2023-12-28T03:41:47.666Z \n",
|
|
|
|
|
"2431524 did:plc:qdriunexx3nobe5kpltycouy 2023-12-28T03:41:47.686Z \n",
|
|
|
|
|
"2431529 did:plc:ycdfsvtnosafdvko26fc7i43 2023-12-28T03:41:47.745Z \n",
|
|
|
|
|
"2431538 did:plc:ct5u4vpg5ajhx6wxihtca6qh 2023-12-28T03:41:48.066Z \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n",
|
|
|
|
|
" createdAt \\\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"1 2023-12-27T03:12:42.248Z \n",
|
|
|
|
|
"2 2023-12-27T03:12:43.705Z \n",
|
|
|
|
|
"6 2023-12-27T03:12:45.463Z \n",
|
|
|
|
|
"10 2023-12-27T03:12:44.003Z \n",
|
|
|
|
|
"11 2023-12-27T03:12:43.406Z \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"... ... \n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"2431516 2023-12-28T03:41:46.687Z \n",
|
|
|
|
|
"2431523 2023-12-28T03:41:46.741Z \n",
|
|
|
|
|
"2431524 2023-12-28T03:41:46.886Z \n",
|
|
|
|
|
"2431529 2023-12-28T03:41:46.679Z \n",
|
|
|
|
|
"2431538 2023-12-28T03:41:47.744Z \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n",
|
|
|
|
|
" subjectUri \\\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"1 at://did:plc:btaxnpi4resvm2uz4n7tcp3f/app.bsky... \n",
|
|
|
|
|
"2 at://did:plc:ky3xc27d4ct6ntwxsu7tjpx7/app.bsky... \n",
|
|
|
|
|
"6 at://did:plc:wxj3cnbus6js5f7hjwowoxoq/app.bsky... \n",
|
|
|
|
|
"10 at://did:plc:mgsxkvihm65lecdzbavku3tk/app.bsky... \n",
|
|
|
|
|
"11 at://did:plc:e4r2dxzbadqabu63wne4tosx/app.bsky... \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"... ... \n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"2431516 at://did:plc:q4b6fmgkkrybhf5ejbrgcmgn/app.bsky... \n",
|
|
|
|
|
"2431523 at://did:plc:fllmcdrrhebd55j4mp43igmb/app.bsky... \n",
|
|
|
|
|
"2431524 at://did:plc:i3l64jceufl7zcbk3r2sfiyc/app.bsky... \n",
|
|
|
|
|
"2431529 at://did:plc:gxxkzpo2cw6q2ynee64rxppw/app.bsky... \n",
|
|
|
|
|
"2431538 at://did:plc:4msurte3uoa37puu2ma673t6/app.bsky... \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n",
|
|
|
|
|
" subjectCid \\\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"1 bafyreifsu35qmmr66fooemrvkke6rdd3qq5mdjvtsqs5y... \n",
|
|
|
|
|
"2 bafyreib7r6526nciyilv3ky345zbmbh4w3tsarc74z72c... \n",
|
|
|
|
|
"6 bafyreifcftx7xktszbhmylitz34hf66ivmboymshgtchl... \n",
|
|
|
|
|
"10 bafyreibyyeobzn34r4edmeiaarancnpjbuesdiuqxkxfy... \n",
|
|
|
|
|
"11 bafyreibk6afarwpw7rdzifkxbi5kgy36tolpe45lxvjzq... \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"... ... \n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"2431516 bafyreibl7b6qni2jxir2v4uf5wfcurx3bbsgprvodwb2s... \n",
|
|
|
|
|
"2431523 bafyreiatd54b5pcpu2f2cysdavzcv2iqtdput7orhgbnt... \n",
|
|
|
|
|
"2431524 bafyreihyyllfudoppmwlzvir5uvomf4cgxogygba7dt2l... \n",
|
|
|
|
|
"2431529 bafyreicoczktoxoxozi3wurb3shbikgd5tbrukl4goavl... \n",
|
|
|
|
|
"2431538 bafyreifmtmvujeeccj4t7trmzof22lhxpkiqk5s5yamty... \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n",
|
|
|
|
|
" subjectDid \n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"1 did:plc:btaxnpi4resvm2uz4n7tcp3f \n",
|
|
|
|
|
"2 did:plc:ky3xc27d4ct6ntwxsu7tjpx7 \n",
|
|
|
|
|
"6 did:plc:wxj3cnbus6js5f7hjwowoxoq \n",
|
|
|
|
|
"10 did:plc:mgsxkvihm65lecdzbavku3tk \n",
|
|
|
|
|
"11 did:plc:e4r2dxzbadqabu63wne4tosx \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"... ... \n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"2431516 did:plc:q4b6fmgkkrybhf5ejbrgcmgn \n",
|
|
|
|
|
"2431523 did:plc:fllmcdrrhebd55j4mp43igmb \n",
|
|
|
|
|
"2431524 did:plc:i3l64jceufl7zcbk3r2sfiyc \n",
|
|
|
|
|
"2431529 did:plc:gxxkzpo2cw6q2ynee64rxppw \n",
|
|
|
|
|
"2431538 did:plc:4msurte3uoa37puu2ma673t6 \n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"[546374 rows x 8 columns]"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 28,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"non_top_reply_likes = likes.loc[\n",
|
|
|
|
|
" np.logical_and(\n",
|
|
|
|
|
" ~likes['subjectUri'].isin(top_threads['uri']),\n",
|
|
|
|
|
" ~likes['subjectDid'].isin(top_accounts['account'])\n",
|
|
|
|
|
" )]\n",
|
|
|
|
|
"non_top_account_likes = likes.loc[\n",
|
|
|
|
|
" ~likes['subjectDid'].isin(top_accounts['account'])\n",
|
|
|
|
|
"]\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"non_top_reply_likes"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "5d7ca01a",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Proportion of posts from top posters"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 29,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "5069cd71",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.4083754239690857"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 29,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"top_posts.shape[0] / posts.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "44fa1058",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Proportion of non-top account likes that are not in threads with top accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 30,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "79b26b9b",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.8589246581587577"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 30,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"non_top_reply_likes.shape[0] / non_top_account_likes.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "455e39bd",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Proportion of likes to non-top accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 31,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "602921d8",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.26160886941888"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 31,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"non_top_account_likes.shape[0] / likes.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "19ae2594",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Proportion of likes to non-top accounts that are not in threads with top accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 32,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "a3572f44",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.22470230873691058"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 32,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"non_top_reply_likes.shape[0] / likes.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "f88361b0",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Number of top accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 33,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "7b0094ba",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"13522"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 33,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"top_accounts.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "aae6aa9d",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"Quantiles of likes received by non-top posts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 34,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "3a0c7e8b",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
|
|
|
|
"0.00 0.0\n",
|
|
|
|
|
"0.25 0.0\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.50 0.0\n",
|
|
|
|
|
"0.75 1.0\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"0.90 3.0\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.95 5.0\n",
|
|
|
|
|
"0.99 11.0\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"Name: likes, dtype: float64"
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 34,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"non_top_posts['likes'].quantile(quants)"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 35,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "f6471c77",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.8008732539358548"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 35,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"sum(non_top_posts['likes'] <= 1) / non_top_posts.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 36,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "1c9f73b5",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"32.0"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 36,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"non_top_posts['likes'].max()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 37,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "1e9d4b13",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"3928.0"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 37,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"top_posts['likes'].max()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
|
"id": "9cc66fb2",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"How many accounts who posted received any likes?"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 38,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "17f85222",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"posting_account_likes = posts.groupby('authorDid'\n",
|
|
|
|
|
" ).agg(\n",
|
|
|
|
|
" likes=('likes', 'sum'),\n",
|
|
|
|
|
" posts=('uri', 'count')\n",
|
|
|
|
|
" ).reset_index()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 39,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "58fb21bc",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.31761174116077384"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 39,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"sum(posting_account_likes['likes'] == 0) / posting_account_likes.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 40,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "ba4a400e",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"posting_account_likes['likes_per_post'] = \\\n",
|
|
|
|
|
" posting_account_likes['likes'] / posting_account_likes['posts']"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 41,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "d67e1705",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.00 0.0\n",
|
|
|
|
|
"0.25 0.0\n",
|
|
|
|
|
"0.50 1.0\n",
|
|
|
|
|
"0.75 2.0\n",
|
|
|
|
|
"0.90 5.0\n",
|
|
|
|
|
"0.95 8.3\n",
|
|
|
|
|
"0.99 28.0\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"Name: likes_per_post, dtype: float64"
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 41,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"lpp_quantiles = posting_account_likes['likes_per_post'].quantile(quants)\n",
|
|
|
|
|
"lpp_quantiles"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 42,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "c1daecca",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
|
|
|
|
"0.00 0.000000\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.25 0.000000\n",
|
|
|
|
|
"0.50 0.833333\n",
|
|
|
|
|
"0.75 1.625000\n",
|
|
|
|
|
"0.90 3.250000\n",
|
|
|
|
|
"0.95 5.000000\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"0.99 12.000000\n",
|
|
|
|
|
"Name: likes_per_post, dtype: float64"
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 42,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"nontop_lpp_quantiles = posting_account_likes[\n",
|
|
|
|
|
" ~posting_account_likes['authorDid'].isin(top_accounts['account'])\n",
|
|
|
|
|
"]['likes_per_post'].quantile(quants)\n",
|
|
|
|
|
"nontop_lpp_quantiles"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 50,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "8f14183c",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkUAAAGzCAYAAAAhXWNYAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8g+/7EAAAACXBIWXMAAA9hAAAPYQGoP6dpAABUYUlEQVR4nO3deVwU9f8H8Ndy7HIvIMdCIl7liUeYRApeBCJZlmWpKeaZYeaRGR2GWeFR5n31S+3QNP2alZmKtyVqUuRVpOZR6aKpsOLBte/fH7YjI9eCIIqv5+OxD535fGbmMx9mZ147OzOrEREBERER0V3OpqobQERERHQ7YCgiIiIiAkMREREREQCGIiIiIiIADEVEREREABiKiIiIiAAwFBEREREBYCgiIiIiAsBQRERERASAoeiWql27Nvr166cMb926FRqNBlu3blXGtW/fHk2bNr31jaNyOXz4MCIjI6HX66HRaLB69eqqbhJVsH79+sHFxaWqm3HH6devH2rXrl3u6W/cX1aUyprvzeA2VrJb+Te77UPR4sWLodFooNFo8MMPPxQqFxEEBARAo9HgkUceqYIWUnVx+fJlJCQkqEJqaWJjY7F//368++67+Oyzz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z99dciInLx4kVxd3eXQYMGqaY3Go2i1+tV4y3B5dVXX7WqDZY3zKOPPqoa/8ILLwgAZWeSmpoqAGTgwIGqei+//LIAkM2bN4uIyFdffaVsR8U5e/asAJC33nrLqjYeO3ZMAMiUKVNU47t
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"%matplotlib inline\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"lpp_sorted = posting_account_likes.sort_values('likes_per_post').reset_index()\n",
|
|
|
|
|
"plt.plot(lpp_sorted['likes_per_post'])\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"plt.title('Mean likes per post for accounts who posted during the sample')\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"plt.show()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 44,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "729e665e",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/html": [
|
|
|
|
|
"<div>\n",
|
|
|
|
|
"<style scoped>\n",
|
|
|
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe tbody tr th {\n",
|
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe thead th {\n",
|
|
|
|
|
" text-align: right;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"</style>\n",
|
|
|
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
|
|
|
" <thead>\n",
|
|
|
|
|
" <tr style=\"text-align: right;\">\n",
|
|
|
|
|
" <th></th>\n",
|
|
|
|
|
" <th>account</th>\n",
|
|
|
|
|
" <th>likes</th>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </thead>\n",
|
|
|
|
|
" <tbody>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>1</th>\n",
|
|
|
|
|
" <td>did:plc:btaxnpi4resvm2uz4n7tcp3f</td>\n",
|
|
|
|
|
" <td>2.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>6</th>\n",
|
|
|
|
|
" <td>did:plc:wxj3cnbus6js5f7hjwowoxoq</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>2.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>9</th>\n",
|
|
|
|
|
" <td>did:plc:acmcckkebktixw6lzhx76fsq</td>\n",
|
|
|
|
|
" <td>61.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>10</th>\n",
|
|
|
|
|
" <td>did:plc:mgsxkvihm65lecdzbavku3tk</td>\n",
|
|
|
|
|
" <td>7.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>11</th>\n",
|
|
|
|
|
" <td>did:plc:e4r2dxzbadqabu63wne4tosx</td>\n",
|
|
|
|
|
" <td>3.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>...</th>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>247965</th>\n",
|
|
|
|
|
" <td>did:plc:zeau3uhk2sm4bdpeg7cl2hk7</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>247966</th>\n",
|
|
|
|
|
" <td>did:plc:fl4mmwjixqnonmwfxti6tbb7</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>247967</th>\n",
|
|
|
|
|
" <td>did:plc:ylz7ikmlz7kn33s6xfn2hfbr</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>247968</th>\n",
|
|
|
|
|
" <td>did:plc:6dqstbx266mlgjvdmr4u4vbw</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>247969</th>\n",
|
|
|
|
|
" <td>did:plc:qrpae44n3nmwjvm4le6foryx</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </tbody>\n",
|
|
|
|
|
"</table>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<p>134907 rows × 2 columns</p>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"</div>"
|
|
|
|
|
],
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" account likes\n",
|
|
|
|
|
"1 did:plc:btaxnpi4resvm2uz4n7tcp3f 2.0\n",
|
|
|
|
|
"6 did:plc:wxj3cnbus6js5f7hjwowoxoq 2.0\n",
|
|
|
|
|
"9 did:plc:acmcckkebktixw6lzhx76fsq 61.0\n",
|
|
|
|
|
"10 did:plc:mgsxkvihm65lecdzbavku3tk 7.0\n",
|
|
|
|
|
"11 did:plc:e4r2dxzbadqabu63wne4tosx 3.0\n",
|
|
|
|
|
"... ... ...\n",
|
|
|
|
|
"247965 did:plc:zeau3uhk2sm4bdpeg7cl2hk7 0.0\n",
|
|
|
|
|
"247966 did:plc:fl4mmwjixqnonmwfxti6tbb7 0.0\n",
|
|
|
|
|
"247967 did:plc:ylz7ikmlz7kn33s6xfn2hfbr 0.0\n",
|
|
|
|
|
"247968 did:plc:6dqstbx266mlgjvdmr4u4vbw 0.0\n",
|
|
|
|
|
"247969 did:plc:qrpae44n3nmwjvm4le6foryx 0.0\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"[134907 rows x 2 columns]"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 44,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"non_posting_accounts = accounts[~accounts['account'].isin(posting_accounts)]\n",
|
|
|
|
|
"non_posting_accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 45,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "a7840d6e",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.4999944406764585"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 45,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"non_posting_accounts.shape[0] / accounts.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 46,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "dab2dfa5",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"269817"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 46,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"accounts.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 47,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "03ea581a",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.2707272417294877"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 47,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"sum(non_posting_accounts['likes'] > 0) / non_posting_accounts.shape[0]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 48,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "ab29ccc1",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"0.06262517756192973"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 48,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"non_posting_accounts['likes'].sum() / accounts['likes'].sum()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 49,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"id": "d495fad6",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/html": [
|
|
|
|
|
"<div>\n",
|
|
|
|
|
"<style scoped>\n",
|
|
|
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe tbody tr th {\n",
|
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe thead th {\n",
|
|
|
|
|
" text-align: right;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"</style>\n",
|
|
|
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
|
|
|
" <thead>\n",
|
|
|
|
|
" <tr style=\"text-align: right;\">\n",
|
|
|
|
|
" <th></th>\n",
|
|
|
|
|
" <th>account</th>\n",
|
|
|
|
|
" <th>likes</th>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </thead>\n",
|
|
|
|
|
" <tbody>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>0</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:lhfbzpkdw2jk5i6im5pd2mi5</td>\n",
|
|
|
|
|
" <td>160.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>3</th>\n",
|
|
|
|
|
" <td>did:plc:z3ds6onyuoyfnx42qgoddhbp</td>\n",
|
|
|
|
|
" <td>313.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>4</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:hqzxqh634sd546rfoazslb5h</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" <td>103.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>5</th>\n",
|
|
|
|
|
" <td>did:plc:ats4shmeia7i7ildqm3denmd</td>\n",
|
|
|
|
|
" <td>405.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>7</th>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <td>did:plc:7o55wjsyg2ylsmlr5to6gb67</td>\n",
|
|
|
|
|
" <td>313.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>...</th>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>130508</th>\n",
|
|
|
|
|
" <td>did:plc:d5torywdns2h4kghsqmil7k6</td>\n",
|
|
|
|
|
" <td>46.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>130569</th>\n",
|
|
|
|
|
" <td>did:plc:2tdfuxjpemewkkyhi2db7lck</td>\n",
|
|
|
|
|
" <td>46.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>130642</th>\n",
|
|
|
|
|
" <td>did:plc:en7khbuwadt72huhdyrvhf7s</td>\n",
|
|
|
|
|
" <td>33.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>131261</th>\n",
|
|
|
|
|
" <td>did:plc:oafrik4tx7nkmqysa4kpnuv5</td>\n",
|
|
|
|
|
" <td>243.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" <th>132789</th>\n",
|
|
|
|
|
" <td>did:plc:osxrt2mj6274mw4de6duncpu</td>\n",
|
|
|
|
|
" <td>39.0</td>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </tbody>\n",
|
|
|
|
|
"</table>\n",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"<p>13522 rows × 2 columns</p>\n",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"</div>"
|
|
|
|
|
],
|
|
|
|
|
"text/plain": [
|
2024-01-05 23:40:11 +00:00
|
|
|
|
" account likes\n",
|
|
|
|
|
"0 did:plc:lhfbzpkdw2jk5i6im5pd2mi5 160.0\n",
|
|
|
|
|
"3 did:plc:z3ds6onyuoyfnx42qgoddhbp 313.0\n",
|
|
|
|
|
"4 did:plc:hqzxqh634sd546rfoazslb5h 103.0\n",
|
|
|
|
|
"5 did:plc:ats4shmeia7i7ildqm3denmd 405.0\n",
|
|
|
|
|
"7 did:plc:7o55wjsyg2ylsmlr5to6gb67 313.0\n",
|
|
|
|
|
"... ... ...\n",
|
|
|
|
|
"130508 did:plc:d5torywdns2h4kghsqmil7k6 46.0\n",
|
|
|
|
|
"130569 did:plc:2tdfuxjpemewkkyhi2db7lck 46.0\n",
|
|
|
|
|
"130642 did:plc:en7khbuwadt72huhdyrvhf7s 33.0\n",
|
|
|
|
|
"131261 did:plc:oafrik4tx7nkmqysa4kpnuv5 243.0\n",
|
|
|
|
|
"132789 did:plc:osxrt2mj6274mw4de6duncpu 39.0\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"[13522 rows x 2 columns]"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"execution_count": 49,
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"top_accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 135,
|
|
|
|
|
"id": "77340e08",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/html": [
|
|
|
|
|
"<div>\n",
|
|
|
|
|
"<style scoped>\n",
|
|
|
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe tbody tr th {\n",
|
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe thead th {\n",
|
|
|
|
|
" text-align: right;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"</style>\n",
|
|
|
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
|
|
|
" <thead>\n",
|
|
|
|
|
" <tr style=\"text-align: right;\">\n",
|
|
|
|
|
" <th></th>\n",
|
|
|
|
|
" <th>account</th>\n",
|
|
|
|
|
" <th>likes</th>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </thead>\n",
|
|
|
|
|
" <tbody>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>0</th>\n",
|
|
|
|
|
" <td>did:plc:nvog7rczakwzh5ckxnjnwqdd</td>\n",
|
|
|
|
|
" <td>2009.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>1</th>\n",
|
|
|
|
|
" <td>did:plc:z3eu4ec7csnznxrrdrabudgj</td>\n",
|
|
|
|
|
" <td>331.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>2</th>\n",
|
|
|
|
|
" <td>did:plc:m2hze6zxa744iberzknpkc3i</td>\n",
|
|
|
|
|
" <td>12.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>3</th>\n",
|
|
|
|
|
" <td>did:plc:ykzmsemoxmlzmrci2p77eqkm</td>\n",
|
|
|
|
|
" <td>41.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>4</th>\n",
|
|
|
|
|
" <td>did:plc:afrooick4a2hy2m2eme5ognc</td>\n",
|
|
|
|
|
" <td>103.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>...</th>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" <td>...</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>45665</th>\n",
|
|
|
|
|
" <td>did:plc:efkxngznfeo2onvrjhskmmou</td>\n",
|
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>45666</th>\n",
|
|
|
|
|
" <td>did:plc:pv4x356soulpp7spindi57gz</td>\n",
|
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>45667</th>\n",
|
|
|
|
|
" <td>did:plc:w5reveglbupc6sz4txst2v7b</td>\n",
|
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>45668</th>\n",
|
|
|
|
|
" <td>did:plc:7o6uylwbtcpwk5c5pqa67fsl</td>\n",
|
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>45669</th>\n",
|
|
|
|
|
" <td>did:plc:uppr7hyd3a2zzss54drq2s5j</td>\n",
|
|
|
|
|
" <td>0.0</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </tbody>\n",
|
|
|
|
|
"</table>\n",
|
|
|
|
|
"<p>45670 rows × 2 columns</p>\n",
|
|
|
|
|
"</div>"
|
|
|
|
|
],
|
|
|
|
|
"text/plain": [
|
|
|
|
|
" account likes\n",
|
|
|
|
|
"0 did:plc:nvog7rczakwzh5ckxnjnwqdd 2009.0\n",
|
|
|
|
|
"1 did:plc:z3eu4ec7csnznxrrdrabudgj 331.0\n",
|
|
|
|
|
"2 did:plc:m2hze6zxa744iberzknpkc3i 12.0\n",
|
|
|
|
|
"3 did:plc:ykzmsemoxmlzmrci2p77eqkm 41.0\n",
|
|
|
|
|
"4 did:plc:afrooick4a2hy2m2eme5ognc 103.0\n",
|
|
|
|
|
"... ... ...\n",
|
|
|
|
|
"45665 did:plc:efkxngznfeo2onvrjhskmmou 0.0\n",
|
|
|
|
|
"45666 did:plc:pv4x356soulpp7spindi57gz 0.0\n",
|
|
|
|
|
"45667 did:plc:w5reveglbupc6sz4txst2v7b 0.0\n",
|
|
|
|
|
"45668 did:plc:7o6uylwbtcpwk5c5pqa67fsl 0.0\n",
|
|
|
|
|
"45669 did:plc:uppr7hyd3a2zzss54drq2s5j 0.0\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"[45670 rows x 2 columns]"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"execution_count": 135,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"accounts"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"id": "75bbb3eb",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"metadata": {
|
|
|
|
|
"kernelspec": {
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"display_name": "Python 3 (ipykernel)",
|
2023-12-27 02:57:08 +00:00
|
|
|
|
"language": "python",
|
|
|
|
|
"name": "python3"
|
|
|
|
|
},
|
|
|
|
|
"language_info": {
|
|
|
|
|
"codemirror_mode": {
|
|
|
|
|
"name": "ipython",
|
|
|
|
|
"version": 3
|
|
|
|
|
},
|
|
|
|
|
"file_extension": ".py",
|
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
|
"name": "python",
|
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
|
"pygments_lexer": "ipython3",
|
2024-01-05 23:40:11 +00:00
|
|
|
|
"version": "3.11.2"
|
2023-12-27 02:57:08 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"nbformat": 4,
|
|
|
|
|
"nbformat_minor": 5
|
|
|
|
|
}
|