Open HumphreyYang opened 5 months ago
Many thanks @HumphreyYang for this comprehensive review!
@pgrosser1 @mbek0605 @Jiarui-ZH Could you please implement the changes for your section?
Don't worry too much about the main text because Tom and I will rewrite it. For example, you can skip "Each line should include only one sentence." What's important is getting all the data organize and the figures at their latest versions, hopefully in line with manual.quantecon.org.
I'm CCing @mmcky who can also help you get these changes implemented and merged.
Thanks everyone for putting together this amazing notebook.
I really love those visualizations!
Below are some minor comments regarding styles, code, and content : )
General Comments
myst
instead of title inmatplotlib
. For example, the title for the first figure can be embedded asstart_date = datetime.datetime(1949, 1, 1) end_date = datetime.datetime(2023, 10, 1)
nominal_gdp = web.DataReader('GDP', 'fred', start_date, end_date) real_gdp = web.DataReader('GDPC1', 'fred', start_date, end_date)
plt.figure(figsize=(10, 6)) plt.plot(nominal_gdp.index, nominal_gdp['GDP'], label='Nominal GDP') plt.plot(real_gdp.index, real_gdp['GDPC1'], label='Real GDP', linestyle='--')
plt.xlabel('Year') plt.ylabel('Billions of dollars') plt.legend() plt.show()
## 1.2 GDP vs. GDP per Capita
->## GDP vs. GDP per Capita
).Introduction
What is GDP
Chained dollar
is not properly introduced -- and it might be too advanced for an introductory lecture.2017 dollars
:->
wb.series.info(q='GDP')
as it is not used.## 1.3 GDP: Ways of Calculation
, I suggest we introduce only one way of GDP calculation (perhaps value added method) and refer readers to other methods using links.GDP: Unique Factors
.xlsx
to avoid duplicatedread_excel
in the code cell below:for i in range(len(data_lifeexp.gdppc)): if data_lifeexp.gdppc[i] < 28000: gdppc_lowincome.append(data_lifeexp.gdppc[i]) lifeexp_lowincome.append(data_lifeexp.life_exp[i]) else: gdppc_highincome.append(data_lifeexp.gdppc[i]) lifeexp_highincome.append(data_lifeexp.life_exp[i])
pd.read_excel('Global temp.xlsx', sheet_name='Temperature Anomaly')