docstr: Load the defined BankAccountFraud dataset.
code: def load_data(self):
      """Load the defined BankAccountFraud dataset."""
      if isinstance(self.path, str):
          path = self.path + f"/{self.variant}.{self.extension}"
      else:
          path = self.path / f"{self.variant}.{self.extension}"
      self.logger.info(f"Loading data from {path}")
      if self.extension == "parquet":
          self.data = pd.read_parquet(path)
      else:
          self.data = pd.read_csv(path)
      for col in CATEGORICAL_FEATURES:
          self.data[col] = self.data[col].astype("category")
  
file_path: aequitas/src/aequitas/fairflow/datasets/baf.py
imports: from pathlib import Path
  from typing import Any, Optional, Union
  import pandas
  from validators import url
  from ..utils import create_logger
  from .dataset import Dataset
label_desc: Use image node_id 3 for calling the BankAccountFraud obj's underlying member method code with example usage: obj.load_data() without return types