Skip to content

Commit bcd3508

Browse files
committed
typo
1 parent 0be84bb commit bcd3508

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

5a_Development_Accounting.ipynb

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@
15681568
},
15691569
{
15701570
"cell_type": "code",
1571-
"execution_count": 18,
1571+
"execution_count": 3,
15721572
"metadata": {
15731573
"editable": true,
15741574
"hidden": true,
@@ -1582,30 +1582,24 @@
15821582
},
15831583
"outputs": [
15841584
{
1585-
"data": {
1586-
"text/plain": [
1587-
"array([1950, 1951, 1952, 1953, 1954, 1955, 1956, 1957, 1958, 1959, 1960,\n",
1588-
" 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971,\n",
1589-
" 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982,\n",
1590-
" 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993,\n",
1591-
" 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,\n",
1592-
" 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015,\n",
1593-
" 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023])"
1594-
]
1595-
},
1596-
"execution_count": 18,
1597-
"metadata": {},
1598-
"output_type": "execute_result"
1585+
"ename": "NameError",
1586+
"evalue": "name 'df' is not defined",
1587+
"output_type": "error",
1588+
"traceback": [
1589+
"\u001b[31m---------------------------------------------------------------------------\u001b[39m",
1590+
"\u001b[31mNameError\u001b[39m Traceback (most recent call last)",
1591+
"\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[3]\u001b[39m\u001b[32m, line 1\u001b[39m\n\u001b[32m----> \u001b[39m\u001b[32m1\u001b[39m \u001b[43mdf\u001b[49m[\u001b[33m'\u001b[39m\u001b[33myear\u001b[39m\u001b[33m'\u001b[39m].unique()\n",
1592+
"\u001b[31mNameError\u001b[39m: name 'df' is not defined"
1593+
]
15991594
}
16001595
],
16011596
"source": [
1602-
"year_list = df.loc[:,'year'].unique()\n",
1603-
"year_list"
1597+
"df['year'].unique()"
16041598
]
16051599
},
16061600
{
16071601
"cell_type": "code",
1608-
"execution_count": null,
1602+
"execution_count": 4,
16091603
"metadata": {
16101604
"editable": true,
16111605
"slideshow": {
@@ -1615,10 +1609,22 @@
16151609
"remove-cell"
16161610
]
16171611
},
1618-
"outputs": [],
1612+
"outputs": [
1613+
{
1614+
"ename": "ModuleNotFoundError",
1615+
"evalue": "No module named 'myst_nb'",
1616+
"output_type": "error",
1617+
"traceback": [
1618+
"\u001b[31m---------------------------------------------------------------------------\u001b[39m",
1619+
"\u001b[31mModuleNotFoundError\u001b[39m Traceback (most recent call last)",
1620+
"\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[4]\u001b[39m\u001b[32m, line 1\u001b[39m\n\u001b[32m----> \u001b[39m\u001b[32m1\u001b[39m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34;01mmyst_nb\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m glue\n\u001b[32m 2\u001b[39m first_year = df[\u001b[33m'\u001b[39m\u001b[33myear\u001b[39m\u001b[33m'\u001b[39m].unique()[\u001b[32m0\u001b[39m]\n\u001b[32m 3\u001b[39m glue(\u001b[33m\"\u001b[39m\u001b[33mfirst_year_glued\u001b[39m\u001b[33m\"\u001b[39m, first_year)\n",
1621+
"\u001b[31mModuleNotFoundError\u001b[39m: No module named 'myst_nb'"
1622+
]
1623+
}
1624+
],
16191625
"source": [
16201626
"from myst_nb import glue\n",
1621-
"first_year = df['year'].nunique()[0]\n",
1627+
"first_year = df['year'].unique()[0]\n",
16221628
"glue(\"first_year_glued\", first_year)"
16231629
]
16241630
},

0 commit comments

Comments
 (0)