Skip to content

Commit 016a300

Browse files
committed
remove plotnine dep
1 parent c6a3adf commit 016a300

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nctoolkit/validator_funs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pandas as pd
2-
from plotnine import *
32

43
from nctoolkit.unify import unify
54
from nctoolkit.api import open_data
@@ -275,6 +274,11 @@ def matchup(self, levels = "top", na_match = False, **kwargs):
275274

276275
def validate(self, region = None):
277276

277+
try:
278+
from plotnine import ggplot
279+
except:
280+
raise ValueError("Please install plotnine")
281+
278282
if self.matched is False:
279283
raise ValueError("Data has not been matched")
280284

0 commit comments

Comments
 (0)