Skip to content

Commit

Permalink
Merge pull request #231 from QuantEcon/reorganizing-chapters
Browse files Browse the repository at this point in the history
Reorganizing chapters
  • Loading branch information
doctor-phil authored Jul 5, 2023
2 parents d2d439e + db13ee0 commit 05cfce8
Show file tree
Hide file tree
Showing 17 changed files with 311 additions and 53 deletions.
20 changes: 20 additions & 0 deletions lectures/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sphinx:
config:
suppress_warnings: ["mystnb.unknown_mime_type"]
nb_mime_priority_overrides: [
# HTML
['html', 'application/vnd.jupyter.widget-view+json', 10],
['html', 'application/javascript', 20],
['html', 'text/html', 30],
Expand All @@ -27,6 +28,25 @@ sphinx:
['html', 'image/jpeg', 70],
['html', 'text/markdown', 80],
['html', 'text/plain', 90],
# Jupyter Notebooks
['jupyter', 'application/vnd.jupyter.widget-view+json', 10],
['jupyter', 'application/javascript', 20],
['jupyter', 'text/html', 30],
['jupyter', 'text/latex', 40],
['jupyter', 'image/svg+xml', 50],
['jupyter', 'image/png', 60],
['jupyter', 'image/jpeg', 70],
['jupyter', 'text/markdown', 80],
['jupyter', 'text/plain', 90],
# LaTeX
['latex', 'text/latex', 10],
['latex', 'application/pdf', 20],
['latex', 'image/png', 30],
['latex', 'image/jpeg', 40],
['latex', 'text/markdown', 50],
['latex', 'text/plain', 60],
# Link Checker
['linkcheck', 'text/plain', 10],
]
html_favicon: _static/lectures-favicon.ico
html_static_path: ['_static']
Expand Down
19 changes: 11 additions & 8 deletions lectures/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,19 @@ parts:
- file: pandas/merge
- file: pandas/groupby
- file: pandas/timeseries
- file: pandas/matplotlib
- caption: Data Science Tools
chapters:
- file: tools/index
- file: tools/matplotlib
- file: tools/maps
- file: tools/visualization_rules
- file: tools/regression
- file: tools/classification
- caption: Applications
chapters:
- file: applications/index
- file: applications/visualization_rules
- file: applications/regression
- file: applications/recidivism
- file: applications/maps
- file: applications/classification
- file: applications/working_with_text
- file: applications/ml_in_economics
- file: applications/heterogeneity
- file: applications/networks
- file: applications/recidivism
- file: applications/working_with_text
- file: applications/heterogeneity
2 changes: 1 addition & 1 deletion lectures/applications/heterogeneity.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kernelspec:
**Prerequisites**

- {doc}`Regression <regression>`
- {doc}`Regression <../tools/regression>`
- {doc}`Machine Learning in Economics <ml_in_economics>`

**Outcomes**
Expand Down
18 changes: 5 additions & 13 deletions lectures/applications/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,12 @@ In this part of the course, we will begin to apply the skills that you have lear
includes using familiar tools in new applications and learning new tools that can be used for
special types of analysis.

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Data Visualization: Rules and Guidelines](../applications/visualization_rules.md)
## <i class="fas fa-chart-column" style="color:#ff9900"></i> [Machine Learning in Economics](../applications/ml_in_economics.md)

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Regression](../applications/regression.md)
## <i class="fas fa-chart-column" style="color:#ff9900"></i> [Social and Economic Networks](../applications/networks.md)

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Case Study: Recidivism](../applications/recidivism.md)
## <i class="fas fa-chart-column" style="color:#ff9900"></i> [Case Study: Recidivism](../applications/recidivism.md)

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Mapping in Python](../applications/maps.md)
## <i class="fas fa-chart-column" style="color:#ff9900"></i> [Working with Text](../applications/working_with_text.md)

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Classification](../applications/classification.md)

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Working with Text](../applications/working_with_text.md)

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Machine Learning in Economics](../applications/ml_in_economics.md)

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Heterogeneous Effects](../applications/heterogeneity.md)

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Social and Economic Networks](../applications/networks.md)
## <i class="fas fa-chart-column" style="color:#ff9900"></i> [Heterogeneous Effects](../applications/heterogeneity.md)
2 changes: 1 addition & 1 deletion lectures/applications/ml_in_economics.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kernelspec:
**Prerequisites**

- {doc}`Regression <regression>`
- {doc}`Regression <../tools/regression>`

**Outcomes**

Expand Down
6 changes: 3 additions & 3 deletions lectures/applications/recidivism.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ kernelspec:
**Prerequisites**

- {doc}`matplotlib Introduction <../pandas/matplotlib>`
- {doc}`Visualization Rules <visualization_rules>`
- {doc}`Regression <regression>`
- {doc}`matplotlib Introduction <../tools/matplotlib>`
- {doc}`Visualization Rules <../tools/visualization_rules>`
- {doc}`Regression <../tools/regression>`

**Outcomes**

Expand Down
8 changes: 4 additions & 4 deletions lectures/applications/working_with_text.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ kernelspec:
**Prerequisites**

- {doc}`Visualization Rules <visualization_rules>`
- {doc}`Regression <regression>`
- {doc}`Classification <classification>`
- {doc}`Maps <maps>`
- {doc}`Visualization Rules <../tools/visualization_rules>`
- {doc}`Regression <../tools/regression>`
- {doc}`Classification <../tools/classification>`
- {doc}`Maps <../tools/maps>`

**Outcomes**

Expand Down
9 changes: 6 additions & 3 deletions lectures/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ Basic Python programming
## <i class="fas fa-server" style="color:#d45f6c"></i> [Scientific Computing](../scientific/index.md)
Numerical and scientific methods

## <i class="fas fa-code" style="color:#6dae5c"></i> [Pandas](../pandas/index.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [Working With Data](../pandas/index.md)
The "data" in data science

## <i class="fas fa-cogs" style="color:#1665ad"></i> [Applications](../applications/index.md)
Applications and statistical tools
## <i class="fas fa-cogs" style="color:#9933ff"></i> [Data Science Tools](../tools/index.md)
Putting everything together

## <i class="fas fa-chart-column" style="color:#ff9900"></i> [Applications](../applications/index.md)
Applying our skills to real economic data
22 changes: 10 additions & 12 deletions lectures/pandas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ kernelspec:
name: python3
---

# pandas
# DataFrames and Series in Pandas

This section of the workshop covers data ingestion, cleaning,
manipulation, analysis, and visualization in Python.
Expand Down Expand Up @@ -40,22 +40,20 @@ The expression "practice makes perfect" is especially true here.
As you work with these tools, both the time to write and the time to run
your programs will fall dramatically.

## <i class="fas fa-code" style="color:#6dae5c"></i> [Introduction](../pandas/intro.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [Introduction](../pandas/intro.md)

## <i class="fas fa-code" style="color:#6dae5c"></i> [Basic Functionality](../pandas/basics.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [Basic Functionality](../pandas/basics.md)

## <i class="fas fa-code" style="color:#6dae5c"></i> [The Index](../pandas/the_index.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [The Index](../pandas/the_index.md)

## <i class="fas fa-code" style="color:#6dae5c"></i> [Storage Formats](../pandas/storage_formats.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [Storage Formats](../pandas/storage_formats.md)

## <i class="fas fa-code" style="color:#6dae5c"></i> [Cleaning Data](../pandas/data_clean.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [Cleaning Data](../pandas/data_clean.md)

## <i class="fas fa-code" style="color:#6dae5c"></i> [Reshape](../pandas/reshape.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [Reshape](../pandas/reshape.md)

## <i class="fas fa-code" style="color:#6dae5c"></i> [Merge](../pandas/merge.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [Merge](../pandas/merge.md)

## <i class="fas fa-code" style="color:#6dae5c"></i> [GroupBy](../pandas/groupby.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [GroupBy](../pandas/groupby.md)

## <i class="fas fa-code" style="color:#6dae5c"></i> [Time series](../pandas/timeseries.md)

## <i class="fas fa-code" style="color:#6dae5c"></i> [Intermediate Plotting](../pandas/matplotlib.md)
## <i class="fas fa-database" style="color:#6dae5c"></i> [Time Series](../pandas/timeseries.md)
4 changes: 2 additions & 2 deletions lectures/problem_sets/problem_set_7.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import pandas as pd

## Question 1

From {doc}`Data Visualization: Rules and Guidelines <../applications/visualization_rules>`
From {doc}`Data Visualization: Rules and Guidelines <../tools/visualization_rules>`

Create a bar chart of the below data on Canadian GDP growth.
Use a non-red color for the years 2000 to 2008, red for
Expand All @@ -41,7 +41,7 @@ for side in ["right", "top", "left", "bottom"]:

## Question 2

From {doc}`Data Visualization: Rules and Guidelines <../applications/visualization_rules>`
From {doc}`Data Visualization: Rules and Guidelines <../tools/visualization_rules>`

Draft another way to organize time and education by modifying the code below.
That is, have two subplots (one for each
Expand Down
Loading

3 comments on commit 05cfce8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.