Skip to content

Commit

Permalink
#1: Update chips_sold plot (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Lawrence Chen <lawrencechen@DN0a23334b.SUNet>
The goal of the issue is to modify the code in the data folder ([`~/data/code/clean_data.py`](https://github.com/lawrencech3n/gentzkow/blob/master/data/code/clean_data.py)) so that the histogram in [`~/paper_slides/output/chips_sold.pdf`](https://github.com/lawrencech3n/gentzkow/blob/fe13790124dbe08001d6a88cbc0be28ff72567fc/paper_slides/output/paper.pdf) displays percentages instead of counts. This follows from the [Practice Task Instructions](https://github.com/gslab-econ/lab-manual/wiki/Practice-Task).
  • Loading branch information
lawrencech3n authored Oct 26, 2023
1 parent fe13790 commit 97fa1eb
Show file tree
Hide file tree
Showing 17 changed files with 1,378 additions and 1,384 deletions.
6 changes: 2 additions & 4 deletions analysis/log/make.log
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
--------------------------------------------------------------------------------
Makelog started: 2023-10-22 16:17:49
Makelog started: 2023-10-23 14:05:47
Working directory: /Users/lawrencechen/Desktop/gentzkow/analysis
--------------------------------------------------------------------------------
Input links successfully created!
External links successfully created!
Source logs successfully written!
WARNING! The following target files have been modified according to git status:
/Users/lawrencechen/Desktop/gentzkow/data/output/data_cleaned.csv
Version logs successfully written!
Executing command: `python "/Users/lawrencechen/Desktop/gentzkow/analysis/code/analyze_data.py" `
/opt/homebrew/Caskroom/miniconda/base/envs/template/lib/python3.11/site-packages/linearmodels/panel/model.py:1214: MissingValueWarning:
Expand All @@ -15,6 +13,6 @@ Inputs contain missing values. Dropping rows with missing observations.

Output logs successfully written!
--------------------------------------------------------------------------------
Makelog ended: 2023-10-22 16:17:53
Makelog ended: 2023-10-23 14:05:50
Working directory: /Users/lawrencechen/Desktop/gentzkow/analysis
--------------------------------------------------------------------------------
2 changes: 1 addition & 1 deletion analysis/log/output_stats.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
file name | last modified | file size
/Users/lawrencechen/Desktop/gentzkow/analysis/output/regression.csv | 2023-10-22 23:17:54 | 58
/Users/lawrencechen/Desktop/gentzkow/analysis/output/regression.csv | 2023-10-23 21:05:51 | 58
1,358 changes: 679 additions & 679 deletions analysis/log/source_stats.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion analysis/log/versions.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--------------------------------------------------------------------------------
Versions log started: 2023-10-22 16:17:50
Versions log started: 2023-10-23 14:05:48
--------------------------------------------------------------------------------
# packages in environment at /opt/homebrew/Caskroom/miniconda/base/envs/template:
#
Expand Down
7 changes: 2 additions & 5 deletions data/log/make.log
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
--------------------------------------------------------------------------------
Makelog started: 2023-10-22 16:42:26
Makelog started: 2023-10-23 14:05:41
Working directory: /Users/lawrencechen/Desktop/gentzkow/data
--------------------------------------------------------------------------------
Input links successfully created!
External links successfully created!
Source logs successfully written!
WARNING! The following target files have been modified according to git status:
/Users/lawrencechen/Desktop/gentzkow/raw/tv.csv
/Users/lawrencechen/Desktop/gentzkow/raw/chips.csv
Version logs successfully written!
Executing command: `python "/Users/lawrencechen/Desktop/gentzkow/data/code/merge_data.py" `
Executing command: `python "/Users/lawrencechen/Desktop/gentzkow/data/code/clean_data.py" `
Expand All @@ -19,6 +16,6 @@ See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stab

Output logs successfully written!
--------------------------------------------------------------------------------
Makelog ended: 2023-10-22 16:42:32
Makelog ended: 2023-10-23 14:05:46
Working directory: /Users/lawrencechen/Desktop/gentzkow/data
--------------------------------------------------------------------------------
6 changes: 3 additions & 3 deletions data/log/output_stats.log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file name | last modified | file size
/Users/lawrencechen/Desktop/gentzkow/data/output/data_merged.csv | 2023-10-22 23:42:30 | 10294275
/Users/lawrencechen/Desktop/gentzkow/data/output/data_cleaned.csv | 2023-10-22 23:42:32 | 10265592
/Users/lawrencechen/Desktop/gentzkow/data/output/chips_sold.pdf | 2023-10-22 23:42:31 | 9940
/Users/lawrencechen/Desktop/gentzkow/data/output/data_merged.csv | 2023-10-23 21:05:44 | 10294275
/Users/lawrencechen/Desktop/gentzkow/data/output/data_cleaned.csv | 2023-10-23 21:05:46 | 10265592
/Users/lawrencechen/Desktop/gentzkow/data/output/chips_sold.pdf | 2023-10-23 21:05:45 | 9940
1,360 changes: 680 additions & 680 deletions data/log/source_stats.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data/log/versions.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--------------------------------------------------------------------------------
Versions log started: 2023-10-22 16:42:28
Versions log started: 2023-10-23 14:05:42
--------------------------------------------------------------------------------
# packages in environment at /opt/homebrew/Caskroom/miniconda/base/envs/template:
#
Expand Down
Binary file modified data/output/chips_sold.pdf
Binary file not shown.
Binary file modified paper_slides/input/chips_sold.pdf
Binary file not shown.
5 changes: 2 additions & 3 deletions paper_slides/log/make.log
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
--------------------------------------------------------------------------------
Makelog started: 2023-10-22 16:44:30
Makelog started: 2023-10-23 14:05:51
Working directory: /Users/lawrencechen/Desktop/gentzkow/paper_slides
--------------------------------------------------------------------------------
Input copies successfully created!
External copies successfully created!
Source logs successfully written!
WARNING! The following target files have been modified according to git status:
/Users/lawrencechen/Desktop/gentzkow/data/output/chips_sold.pdf
/Users/lawrencechen/Desktop/gentzkow/analysis/output/regression.csv
Version logs successfully written!
Executing command: `lyx -e pdf2 "/Users/lawrencechen/Desktop/gentzkow/paper_slides/code/paper.lyx"`
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex)
Expand Down Expand Up @@ -53,6 +52,6 @@ L3 programming layer <2022-02-24>

Output logs successfully written!
--------------------------------------------------------------------------------
Makelog ended: 2023-10-22 16:44:38
Makelog ended: 2023-10-23 14:05:58
Working directory: /Users/lawrencechen/Desktop/gentzkow/paper_slides
--------------------------------------------------------------------------------
8 changes: 4 additions & 4 deletions paper_slides/log/output_stats.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
file name | last modified | file size
/Users/lawrencechen/Desktop/gentzkow/paper_slides/output/tables_filled.lyx | 2023-10-22 23:44:32 | 4373
/Users/lawrencechen/Desktop/gentzkow/paper_slides/output/paper.pdf | 2023-10-22 23:44:34 | 55306
/Users/lawrencechen/Desktop/gentzkow/paper_slides/output/slides.pdf | 2023-10-22 23:44:38 | 28185
/Users/lawrencechen/Desktop/gentzkow/paper_slides/output/online_appendix.pdf | 2023-10-22 23:44:36 | 33905
/Users/lawrencechen/Desktop/gentzkow/paper_slides/output/paper.pdf | 2023-10-23 21:05:55 | 55306
/Users/lawrencechen/Desktop/gentzkow/paper_slides/output/online_appendix.pdf | 2023-10-23 21:05:56 | 33905
/Users/lawrencechen/Desktop/gentzkow/paper_slides/output/tables_filled.lyx | 2023-10-23 21:05:53 | 4373
/Users/lawrencechen/Desktop/gentzkow/paper_slides/output/slides.pdf | 2023-10-23 21:05:59 | 28184
4 changes: 2 additions & 2 deletions paper_slides/log/source_stats.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
file name | last modified | file size
/Users/lawrencechen/Desktop/gentzkow/data/output/chips_sold.pdf | 2023-10-22 23:42:31 | 9940
/Users/lawrencechen/Desktop/gentzkow/analysis/output/regression.csv | 2023-10-22 23:17:54 | 58
/Users/lawrencechen/Desktop/gentzkow/analysis/output/regression.csv | 2023-10-23 21:05:51 | 58
/Users/lawrencechen/Desktop/gentzkow/data/output/chips_sold.pdf | 2023-10-23 21:05:45 | 9940
2 changes: 1 addition & 1 deletion paper_slides/log/versions.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--------------------------------------------------------------------------------
Versions log started: 2023-10-22 16:44:32
Versions log started: 2023-10-23 14:05:52
--------------------------------------------------------------------------------
# packages in environment at /opt/homebrew/Caskroom/miniconda/base/envs/template:
#
Expand Down
Binary file modified paper_slides/output/online_appendix.pdf
Binary file not shown.
Binary file modified paper_slides/output/paper.pdf
Binary file not shown.
Binary file modified paper_slides/output/slides.pdf
Binary file not shown.

0 comments on commit 97fa1eb

Please sign in to comment.