Skip to content

Commit

Permalink
0.544
Browse files Browse the repository at this point in the history
  • Loading branch information
sizhky committed Sep 6, 2024
1 parent 353690e commit a6a8495
Show file tree
Hide file tree
Showing 37 changed files with 3,886 additions and 2,268 deletions.
1,057 changes: 951 additions & 106 deletions _proc/AttrDict.ipynb

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions _proc/charts.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _proc/decorators.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
"OUTPUTS:\n",
"int: 21\n",
"══════════════════════════════════════════════════════════════════\n",
"\u001b[2;36m[08/24/24 22:50:57]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m foo took \u001b[1;36m1.00\u001b[0m seconds to execute \u001b]8;id=82185;file://<ipython-input-1-6ac2073623b5>:47\u001b\\\u001b[2m<ipython-input-1-6ac2073623b5>\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=712140;file://<ipython-input-1-6ac2073623b5>:47#wrapper:47\u001b\\\u001b[2mwrapper:47\u001b[0m\u001b]8;;\u001b\\\n"
"\u001b[2;36m[09/07/24 00:37:26]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m foo took \u001b[1;36m1.01\u001b[0m seconds to execute \u001b]8;id=246568;file://<ipython-input-1-6ac2073623b5>:47\u001b\\\u001b[2m<ipython-input-1-6ac2073623b5>\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=943576;file://<ipython-input-1-6ac2073623b5>:47#wrapper:47\u001b\\\u001b[2mwrapper:47\u001b[0m\u001b]8;;\u001b\\\n"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions _proc/jupyter_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,15 @@
"### display_dfs_side_by_side\n",
"\n",
"> display_dfs_side_by_side (*args, titles=<itertools.cycle object at\n",
"> 0x12412ef40>, max_rows=50)"
"> 0x31e1bac80>, max_rows=50)"
],
"text/plain": [
"---\n",
"\n",
"### display_dfs_side_by_side\n",
"\n",
"> display_dfs_side_by_side (*args, titles=<itertools.cycle object at\n",
"> 0x12412ef40>, max_rows=50)"
"> 0x31e1bac80>, max_rows=50)"
]
},
"execution_count": 6,
Expand Down
34 changes: 24 additions & 10 deletions _proc/logging.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _proc/markups.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[2;36m[08/24/24 22:50:55]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m loaded \u001b[1;36m8\u001b[0m lines \u001b]8;id=726449;file://<ipython-input-1-e6d68859b80d>:6\u001b\\\u001b[2m<ipython-input-1-e6d68859b80d>\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=24409;file://<ipython-input-1-e6d68859b80d>:6#<module>:6\u001b\\\u001b[2m<module>:6\u001b[0m\u001b]8;;\u001b\\\n",
"\u001b[2;36m[09/07/24 00:37:25]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m loaded \u001b[1;36m8\u001b[0m lines \u001b]8;id=553299;file://<ipython-input-1-e6d68859b80d>:6\u001b\\\u001b[2m<ipython-input-1-e6d68859b80d>\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=767964;file://<ipython-input-1-e6d68859b80d>:6#<module>:6\u001b\\\u001b[2m<module>:6\u001b[0m\u001b]8;;\u001b\\\n",
"{\n",
"\"a\": [\n",
"1.0,\n",
Expand Down
413 changes: 134 additions & 279 deletions _proc/misc.ipynb

Large diffs are not rendered by default.

82 changes: 81 additions & 1 deletion _proc/pdf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,86 @@
"execution_count": 1,
"has_sd": true,
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"---\n",
"\n",
"### preview_pdf\n",
"\n",
"> preview_pdf (path)\n",
"\n",
"*Preview a PDF file*"
],
"text/plain": [
"---\n",
"\n",
"### preview_pdf\n",
"\n",
"> preview_pdf (path)\n",
"\n",
"*Preview a PDF file*"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| echo: false\n",
"#| output: asis\n",
"show_doc(preview_pdf)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"has_sd": true,
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"---\n",
"\n",
"### dump_pdf_images\n",
"\n",
"> dump_pdf_images (path, folder,\n",
"> create_new_folder_with_same_name:bool=True,\n",
"> show_after_dump:bool=False)\n",
"\n",
"*Dump all images from a PDF file to a folder*"
],
"text/plain": [
"---\n",
"\n",
"### dump_pdf_images\n",
"\n",
"> dump_pdf_images (path, folder,\n",
"> create_new_folder_with_same_name:bool=True,\n",
"> show_after_dump:bool=False)\n",
"\n",
"*Dump all images from a PDF file to a folder*"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| echo: false\n",
"#| output: asis\n",
"show_doc(dump_pdf_images)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"has_sd": true,
"metadata": {},
"outputs": [
{
"data": {
Expand All @@ -50,7 +130,7 @@
"**WIP***"
]
},
"execution_count": 1,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
4 changes: 2 additions & 2 deletions _proc/sklegos.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"\n",
"### ImputeMissingValues\n",
"\n",
"> ImputeMissingValues (num_mode=<function mean at 0x11225b3f0>,\n",
"> ImputeMissingValues (num_mode=<function mean at 0x112f6f7b0>,\n",
"> cat_mode='MISSING')\n",
"\n",
"*DataFrame input - DataFrame output\n",
Expand All @@ -117,7 +117,7 @@
"\n",
"### ImputeMissingValues\n",
"\n",
"> ImputeMissingValues (num_mode=<function mean at 0x11225b3f0>,\n",
"> ImputeMissingValues (num_mode=<function mean at 0x112f6f7b0>,\n",
"> cat_mode='MISSING')\n",
"\n",
"*DataFrame input - DataFrame output\n",
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Changelog
#### 0.544
πŸŽ‰ Quality of life improvements in logging
πŸŽ‰ Add support for `dataclass` in `AD`
πŸŽ‰ DeepDiff integrated into `AD`. Now you can call x.diff(y) where x is `AD` and y is `AD`able
πŸŽ‰ `AD.d` (no brackets, d is a property) to convert the object to dictionary

#### 0.540
✨ Made all imports lazy for a faster import experience

Expand Down
Loading

0 comments on commit a6a8495

Please sign in to comment.