Skip to content

Commit

Permalink
Remove ptitprince requirement and commmented code (no longer in use)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Apr 26, 2024
1 parent 2c380e0 commit 2cdba70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ altair
copia
vl-convert-python
seaborn
ptitprince
28 changes: 2 additions & 26 deletions speculative_reading/PartialBorrowers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@
},
{
"cell_type": "code",
"execution_count": 55,
"execution_count": 73,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
Expand All @@ -2434,31 +2434,7 @@
"outputs": [],
"source": [
"# custom altair raincloud plot\n",
"from utils.charts import raincloud_plot\n",
"\n",
"\n",
"# # raincloud plot adapted from Zoe's code\n",
"\n",
"# import seaborn as sns\n",
"# sns.set()\n",
"# import matplotlib.pyplot as plt\n",
"# import matplotlib.collections as clt\n",
"# import ptitprince as pt\n",
"\n",
"# def raincloud_borrow_plot(df, img_filename, duration_for='all members'):\n",
"# dx=\"borrow_duration_days\"\n",
"# pal = sns.color_palette('colorblind')\n",
"# sns.set(style=\"darkgrid\")\n",
"# f, ax = plt.subplots(figsize=(10, 2))\n",
"# ax = pt.half_violinplot(x=dx, data=df, palette=pal, bw=.2, cut=0., scale = \"area\", width=.6, inner = None) \n",
"# ax=sns.stripplot(x=dx,data=df, palette=pal, edgecolor=\"white\", size = 3, jitter = 1, zorder = 0) \n",
"\n",
"# ax.set_title('Distribution of borrow duration for %s' % duration_for)\n",
"# ax.set_xlabel('borrow duration in days')\n",
"# plt.show()\n",
"# ax.figure.savefig(img_filename)\n",
"\n",
"# raincloud_borrow_plot(all_borrows, 'all_borrow_duration_raincloud_plot.png')\n"
"from utils.charts import raincloud_plot"
]
},
{
Expand Down

0 comments on commit 2cdba70

Please sign in to comment.