Skip to content

Commit

Permalink
Add 2 collapsible hints
Browse files Browse the repository at this point in the history
  • Loading branch information
willingc authored and lwasser committed Oct 23, 2024
1 parent 2c64a56 commit 58a1970
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions clean-modular-code/activity-1/clean-code-activity-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,15 @@ df_combined = pd.concat([df, df2], axis=0)
df_combined.shape
```

```{dropdown} Hint 1 - built-in help
If you want to look up a pandas function to get help, Jupyter Lab has built-in help.
Enter `help(pd.DataFrame.iterrows)`.
```

```{dropdown} Hint 2 - itterows and at
What do we expect to happen in the code block with `iterrows`? Iterate through each row of the dataframe and extract the date and title. Try looking up the `at` method in pandas docs. `at` accesses a single value for a row/column label pair.
```

:::{admonition} Part 3
:class: attention

Expand Down
4 changes: 3 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ dependencies:
- ruff
- isort
- jupyterlab_code_formatter
- jupytext
- jupytext
- sphinx_togglebutton

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies = [
"sphinx-copybutton",
"sphinx-design",
"sphinx-favicon",
"sphinx-togglebutton",
# XML feed for analytics
"sphinx-sitemap",
# Support for social / adds meta tags
Expand All @@ -33,7 +34,7 @@ dev = [
"vale",
# for managing translation files
"sphinx-intl",
"jupytext"
"jupytext",
]

[tool.hatch.build.targets.wheel]
Expand Down

0 comments on commit 58a1970

Please sign in to comment.