Skip to content

Commit

Permalink
bringing in joining data example
Browse files Browse the repository at this point in the history
  • Loading branch information
aeturrell committed Dec 21, 2024
1 parent d4e4d33 commit ed193f6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ There is a Dockerfile for the environment, which is the easiest way to set up a

Warning: if you are building the Dockerfile with the environment, it will take some time to build.

There is a bug that arises during builds due to the many dependencies of the book—this is automatically addressed by the Dockerfile but you may be interested in what is going on. It comes from a list index error. You can squish this manually by commenting out `token.children[1].content = token.children[1].content[3:]` in `"/opt/conda/envs/codeforecon/lib/python3.10/site-packages/mdit_py_plugins/tasklists/__init__.py"`, usually line 90, in todoify. (This is due to version issues between **markdown-it-py**, **myst-nb**, and **myst-parser**.) On a Mac, this line will likely be at `"/Users/USERNAME/opt/anaconda3/envs/codeforecon/lib/python3.10/site-packages/mdit_py_plugins/tasklists/__init__.py"`.
There is a bug that arises during builds due to the many dependencies of the book—this is automatically addressed by the Dockerfile but you may be interested in what is going on. It comes from a list index error. You can squish this manually by commenting out `token.children[1].content = token.children[1].content[3:]` in `"/opt/conda/envs/codeforecon/lib/python3.10/site-packages/mdit_py_plugins/tasklists/__init__.py"`, usually line 90, in todoify. (This is due to version issues between **markdown-it-py**, **myst-nb**, and **myst-parser**.) On a Mac, this line will likely be at `"/Users/USERNAME/mambaforge/envs/codeforecon/lib/python3.10/site-packages/mdit_py_plugins/tasklists/__init__.py"`.



### Building the Book

Expand Down
11 changes: 3 additions & 8 deletions data-advanced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"from pandera.typing import Series\n",
"\n",
"\n",
"class Schema(pa.SchemaModel):\n",
"class Schema(pa.DataFrameModel):\n",
" column1: Series[int] = pa.Field(le=10)\n",
" column2: Series[float] = pa.Field(lt=-1.2)\n",
" column3: Series[str] = pa.Field(str_startswith=\"value_\")\n",
Expand Down Expand Up @@ -699,7 +699,7 @@
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3.10.12 ('codeforecon')",
"display_name": "codeforecon",
"language": "python",
"name": "python3"
},
Expand All @@ -713,12 +713,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
},
"vscode": {
"interpreter": {
"hash": "c4570b151692b3082981c89d172815ada9960dee4eb0bedb37dc10c95601d3bd"
}
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion data-intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Binary file added data/capop.dta
Binary file not shown.
Binary file added data/ilpop.dta
Binary file not shown.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ dependencies:
- ruptures
- great_tables
- polars
- ibis-sqlite
- pip:
- specification_curve
- stargazer
- matplotlib-scalebar
- skimpy
- graphviz
- sqlmodel
- ibis-framework
- binsreg
- feature-engine
- lets-plot>=4.3.0
Expand Down

0 comments on commit ed193f6

Please sign in to comment.