Skip to content

Commit

Permalink
Remove unused imports (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
kp992 authored Jan 29, 2024
1 parent 7c91461 commit 86ba660
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 23 deletions.
2 changes: 0 additions & 2 deletions lectures/business_cycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ We use the following imports
```{code-cell} ipython3
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import scipy.stats as st
import datetime
import wbgapi as wb
import pandas_datareader.data as web
Expand Down
2 changes: 1 addition & 1 deletion lectures/commod_price.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import numpy as np
import yfinance as yf
import matplotlib.pyplot as plt
from scipy.interpolate import interp1d
from scipy.optimize import minimize_scalar, brentq
from scipy.optimize import brentq
from scipy.stats import beta
```

Expand Down
1 change: 0 additions & 1 deletion lectures/eigen_II.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Then we will explore the Perron-Frobenius Theorem and connect it to applications
We will use the following imports:

```{code-cell} ipython3
import matplotlib.pyplot as plt
import numpy as np
from numpy.linalg import eig
import scipy as sp
Expand Down
3 changes: 1 addition & 2 deletions lectures/geom_series.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
import sympy as sym
from sympy import init_printing, latex
from sympy import init_printing
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
```

## Key formulas
Expand Down
4 changes: 1 addition & 3 deletions lectures/heavy_tails.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@ In addition to what's in Anaconda, this lecture will need the following librarie
```{code-cell} ipython3
:tags: [hide-output]
!pip install --upgrade yfinance quantecon pandas_datareader interpolation
!pip install --upgrade yfinance pandas_datareader interpolation
```

We use the following imports.

```{code-cell} ipython3
import matplotlib.pyplot as plt
import numpy as np
import quantecon as qe
import yfinance as yf
import pandas as pd
import pandas_datareader.data as web
import statsmodels.api as sm
from interpolation import interp
Expand Down
1 change: 0 additions & 1 deletion lectures/inflation_history.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import datetime
```

```{code-cell} ipython3
Expand Down
1 change: 0 additions & 1 deletion lectures/input_output.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ This lecture requires the following imports and installs before we proceed.

```{code-cell} ipython3
import numpy as np
import pandas as pd
import networkx as nx
import matplotlib.pyplot as plt
import quantecon_book_networks
Expand Down
1 change: 0 additions & 1 deletion lectures/lln_clt.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ We'll need the following imports:

```{code-cell} ipython3
import matplotlib.pyplot as plt
import random
import numpy as np
import scipy.stats as st
```
Expand Down
1 change: 0 additions & 1 deletion lectures/markov_chains_I.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ import numpy as np
import networkx as nx
from matplotlib import cm
import matplotlib as mpl
from itertools import cycle
```

## Definitions and examples
Expand Down
3 changes: 0 additions & 3 deletions lectures/markov_chains_II.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) # set default figure size
import quantecon as qe
import numpy as np
import networkx as nx
from matplotlib import cm
import matplotlib as mpl
```

(mc_irreducible)=
Expand Down
4 changes: 2 additions & 2 deletions lectures/mle.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ kernelspec:
# Maximum Likelihood Estimation

```{code-cell} ipython3
from scipy.stats import lognorm, pareto, expon, norm
from scipy.stats import lognorm, pareto, expon
import numpy as np
from scipy.integrate import quad
import matplotlib.pyplot as plt
import pandas as pd
from math import exp, log
from math import exp
```

## Introduction
Expand Down
1 change: 0 additions & 1 deletion lectures/networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import pandas as pd
import quantecon as qe
import matplotlib.cm as cm
import quantecon_book_networks
import quantecon_book_networks.input_output as qbn_io
import quantecon_book_networks.data as qbn_data
Expand Down
1 change: 0 additions & 1 deletion lectures/olg.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ Let's start with some imports.
import numpy as np
from scipy import optimize
from collections import namedtuple
from functools import partial
import matplotlib.pyplot as plt
```

Expand Down
2 changes: 0 additions & 2 deletions lectures/supply_demand_heterogeneity.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ Here are some imports:

```{code-cell} ipython3
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy.linalg import inv
```

Expand Down
1 change: 0 additions & 1 deletion lectures/supply_demand_multiple_goods.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ As usual, we start by importing some Python modules.
```{code-cell} ipython3
# import some packages
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy.linalg import inv
```
Expand Down

1 comment on commit 86ba660

@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.