Skip to content

Commit

Permalink
Moved pandas import back
Browse files Browse the repository at this point in the history
  • Loading branch information
istranical committed Jun 10, 2024
1 parent 5a0ad43 commit 23611d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deeplake/auto/structured/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from typing import DefaultDict, List, Union, Optional, Dict
from deeplake.core.sample import Sample
from deeplake.core.linked_sample import LinkedSample
import pandas as pd # type: ignore


from deeplake.client.log import logger

Expand All @@ -31,6 +29,8 @@ def __init__(self, source, column_params=None, creds=None, creds_key=None):
Exception: If source is not a pandas dataframe object.
"""

import pandas as pd # type: ignore

super().__init__(source)
if not isinstance(self.source, pd.DataFrame):
raise Exception("Source is not a pandas dataframe object.")
Expand Down

0 comments on commit 23611d8

Please sign in to comment.