Skip to content

Commit

Permalink
using tables from supplementary instead from codex directly
Browse files Browse the repository at this point in the history
  • Loading branch information
EngyNasr committed Feb 21, 2025
1 parent 8a5fceb commit 63ddebb
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions bin/statistics_calculations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"metadata": {},
"outputs": [],
"source": [
"tutorials_url = \"https://raw.githubusercontent.com/galaxyproject/galaxy_codex/refs/heads/main/communities/microgalaxy/resources/tutorials.tsv\"\n",
"tools_url = \"https://raw.githubusercontent.com/galaxyproject/galaxy_codex/refs/heads/main/communities/microgalaxy/resources/curated_tools.tsv\"\n",
"workflows_url = \"https://raw.githubusercontent.com/galaxyproject/galaxy_codex/refs/heads/main/communities/microgalaxy/resources/curated_workflows.tsv\"\n",
"tutorials_url = \"../docs/supplementary/supplementary_table_5.tsv\"\n",
"tools_url = \"../docs/supplementary/supplementary_table_3.tsv\"\n",
"workflows_url = \"../docs/supplementary/supplementary_table_4.tsv\"\n",
"\n",
"tutorials_df = pd.read_csv(tutorials_url, sep=\"\\t\")\n",
"tutorials_df = tutorials_df.drop_duplicates(keep=\"last\")\n",
Expand Down Expand Up @@ -100,7 +100,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -340,7 +340,7 @@
"[5 rows x 22 columns]"
]
},
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -375,7 +375,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -615,7 +615,7 @@
"[5 rows x 22 columns]"
]
},
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -650,7 +650,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -673,13 +673,13 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/tmp/ipykernel_24594/3973245857.py:7: SettingWithCopyWarning: \n",
"/tmp/ipykernel_7418/3973245857.py:7: SettingWithCopyWarning: \n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
" df2[\"Video Count\"] = df2[\"Video\"].apply(lambda x: len(x.split(',')) if isinstance(x, str) and x.strip() else 0)\n",
"/tmp/ipykernel_24594/3973245857.py:8: SettingWithCopyWarning: \n",
"/tmp/ipykernel_7418/3973245857.py:8: SettingWithCopyWarning: \n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
Expand Down Expand Up @@ -827,7 +827,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -859,7 +859,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -891,7 +891,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -927,7 +927,7 @@
" Name: 181, Length: 75, dtype: object)"
]
},
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -956,7 +956,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1003,7 +1003,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1220,7 +1220,7 @@
"4 Formatting "
]
},
"execution_count": 12,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -1255,7 +1255,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1472,7 +1472,7 @@
"4 Undefined "
]
},
"execution_count": 13,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -1507,7 +1507,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand Down

0 comments on commit 63ddebb

Please sign in to comment.