Skip to content

Commit edcb861

Browse files
committed
move imports to top
1 parent d28164e commit edcb861

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

causalpy/experiments/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
from abc import abstractmethod
1919

20+
import arviz as az
21+
import matplotlib.pyplot as plt
2022
import pandas as pd
2123
from sklearn.base import RegressorMixin
2224

@@ -63,9 +65,6 @@ def plot(self, *args, **kwargs) -> tuple:
6365
Internally, this function dispatches to either `_bayesian_plot` or `_ols_plot`
6466
depending on the model type.
6567
"""
66-
import arviz as az
67-
import matplotlib.pyplot as plt
68-
6968
# Apply arviz-darkgrid style only during plotting, then revert
7069
with plt.style.context(az.style.library["arviz-darkgrid"]):
7170
if isinstance(self.model, PyMCModel):

0 commit comments

Comments
 (0)