Skip to content

Commit

Permalink
Add DataFrame guard (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdeziel authored Nov 8, 2023
1 parent 7829e0d commit a8fbfc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyensign/ml/dataframe.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from enum import Enum

import pandas as pd
try:
import pandas as pd
except ImportError:
pd = None
raise ImportError("please `pip install pyensign[ml]` to use PyEnsign DataFrames")


class DataFrame(pd.DataFrame):
Expand Down

0 comments on commit a8fbfc7

Please sign in to comment.