Skip to content

Commit

Permalink
change pyspark_exists to private
Browse files Browse the repository at this point in the history
  • Loading branch information
axl1313 committed Jul 17, 2023
1 parent ba46283 commit 06b3e66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cleanlab_studio/studio/studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
try:
import pyspark.sql

pyspark_exists = True
_pyspark_exists = True
except ImportError:
pyspark_exists = False
_pyspark_exists = False

from . import clean, upload
from cleanlab_studio.internal.api import api
Expand Down Expand Up @@ -119,7 +119,7 @@ def apply_corrections(self, cleanset_id: str, dataset: Any, keep_excluded: bool
label_column = api.get_label_column_of_project(self._api_key, project_id)
id_col = api.get_id_column(self._api_key, cleanset_id)
cl_cols = self.download_cleanlab_columns(cleanset_id, include_action=True)
if pyspark_exists and isinstance(dataset, pyspark.sql.DataFrame):
if _pyspark_exists and isinstance(dataset, pyspark.sql.DataFrame):
from pyspark.sql.functions import udf

spark = dataset.sparkSession
Expand Down

0 comments on commit 06b3e66

Please sign in to comment.