Skip to content

Commit 86ba660

Browse files
authored
Remove unused imports (#331)
1 parent 7c91461 commit 86ba660

15 files changed

+5
-23
lines changed

lectures/business_cycle.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ We use the following imports
3838
```{code-cell} ipython3
3939
import matplotlib.pyplot as plt
4040
import pandas as pd
41-
import numpy as np
42-
import scipy.stats as st
4341
import datetime
4442
import wbgapi as wb
4543
import pandas_datareader.data as web

lectures/commod_price.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import numpy as np
5050
import yfinance as yf
5151
import matplotlib.pyplot as plt
5252
from scipy.interpolate import interp1d
53-
from scipy.optimize import minimize_scalar, brentq
53+
from scipy.optimize import brentq
5454
from scipy.stats import beta
5555
```
5656

lectures/eigen_II.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Then we will explore the Perron-Frobenius Theorem and connect it to applications
3535
We will use the following imports:
3636

3737
```{code-cell} ipython3
38-
import matplotlib.pyplot as plt
3938
import numpy as np
4039
from numpy.linalg import eig
4140
import scipy as sp

lectures/geom_series.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ import matplotlib.pyplot as plt
5656
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5757
import numpy as np
5858
import sympy as sym
59-
from sympy import init_printing, latex
59+
from sympy import init_printing
6060
from matplotlib import cm
61-
from mpl_toolkits.mplot3d import Axes3D
6261
```
6362

6463
## Key formulas

lectures/heavy_tails.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,16 @@ In addition to what's in Anaconda, this lecture will need the following librarie
2323
```{code-cell} ipython3
2424
:tags: [hide-output]
2525
26-
!pip install --upgrade yfinance quantecon pandas_datareader interpolation
26+
!pip install --upgrade yfinance pandas_datareader interpolation
2727
```
2828

2929
We use the following imports.
3030

3131
```{code-cell} ipython3
3232
import matplotlib.pyplot as plt
3333
import numpy as np
34-
import quantecon as qe
3534
import yfinance as yf
3635
import pandas as pd
37-
import pandas_datareader.data as web
3836
import statsmodels.api as sm
3937
4038
from interpolation import interp

lectures/inflation_history.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ import numpy as np
6060
import pandas as pd
6161
import matplotlib.pyplot as plt
6262
import matplotlib.dates as mdates
63-
import datetime
6463
```
6564

6665
```{code-cell} ipython3

lectures/input_output.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ This lecture requires the following imports and installs before we proceed.
2727

2828
```{code-cell} ipython3
2929
import numpy as np
30-
import pandas as pd
3130
import networkx as nx
3231
import matplotlib.pyplot as plt
3332
import quantecon_book_networks

lectures/lln_clt.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ We'll need the following imports:
3434

3535
```{code-cell} ipython3
3636
import matplotlib.pyplot as plt
37-
import random
3837
import numpy as np
3938
import scipy.stats as st
4039
```

lectures/markov_chains_I.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ import numpy as np
5858
import networkx as nx
5959
from matplotlib import cm
6060
import matplotlib as mpl
61-
from itertools import cycle
6261
```
6362

6463
## Definitions and examples

lectures/markov_chains_II.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ import matplotlib.pyplot as plt
5656
plt.rcParams["figure.figsize"] = (11, 5) # set default figure size
5757
import quantecon as qe
5858
import numpy as np
59-
import networkx as nx
60-
from matplotlib import cm
61-
import matplotlib as mpl
6259
```
6360

6461
(mc_irreducible)=

lectures/mle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ kernelspec:
1414
# Maximum Likelihood Estimation
1515

1616
```{code-cell} ipython3
17-
from scipy.stats import lognorm, pareto, expon, norm
17+
from scipy.stats import lognorm, pareto, expon
1818
import numpy as np
1919
from scipy.integrate import quad
2020
import matplotlib.pyplot as plt
2121
import pandas as pd
22-
from math import exp, log
22+
from math import exp
2323
```
2424

2525
## Introduction

lectures/networks.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ import pandas as pd
5757
import quantecon as qe
5858
5959
import matplotlib.cm as cm
60-
import quantecon_book_networks
6160
import quantecon_book_networks.input_output as qbn_io
6261
import quantecon_book_networks.data as qbn_data
6362

lectures/olg.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ Let's start with some imports.
6565
import numpy as np
6666
from scipy import optimize
6767
from collections import namedtuple
68-
from functools import partial
6968
import matplotlib.pyplot as plt
7069
```
7170

lectures/supply_demand_heterogeneity.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ Here are some imports:
3737

3838
```{code-cell} ipython3
3939
import numpy as np
40-
import pandas as pd
41-
import matplotlib.pyplot as plt
4240
from scipy.linalg import inv
4341
```
4442

lectures/supply_demand_multiple_goods.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ As usual, we start by importing some Python modules.
5858
```{code-cell} ipython3
5959
# import some packages
6060
import numpy as np
61-
import pandas as pd
6261
import matplotlib.pyplot as plt
6362
from scipy.linalg import inv
6463
```

0 commit comments

Comments
 (0)