def __init__(
        self,
        base_url: str = DATA_REPO,
        use_local_location: bool = False,
    ):
        """
        Initialize the FinanceDatabase object.

        Reads the database from a CSV file corresponding to the asset class,
        which can be located either remotely or locally.

        Args:
            base_url: The URL or local path to the CSV file.
                Defaults to the GitHub repository location.
            use_local_location: Whether to use a local file path instead of URL.
                Defaults to False.

        Raises:
            Exception: If unable to load data from the specified location.
        """
        the_path = str(file_path) + "/" if use_local_location else base_url
        the_path += self.FILE_NAME
        try:
            if use_local_location:
                self.data = pd.read_csv(the_path, compression="bz2", index_col=0)
            else:
                response = requests.get(the_path, headers=HEADERS, timeout=60)
                response.raise_for_status()

                self.data = pd.read_csv(
                    pd.io.common.BytesIO(response.content),
                    compression="bz2",
                    index_col=0,
                )
        except requests.exceptions.RequestException as error:
            raise ValueError(
                f"Failed to load data from {the_path}: {str(error)}.\n"
                "Ensure you are able to access the file. "
                "It is possible it fails due to a firewall or other security settings. "
                "Sometimes Google Colab is also the culprit."
            ) from error

        Initialize the FinanceDatabase object.

        Reads the database from a CSV file corresponding to the asset class,
        which can be located either remotely or locally.

        Args:
            base_url: The URL or local path to the CSV file.
                Defaults to the GitHub repository location.
            use_local_location: Whether to use a local file path instead of URL.
                Defaults to False.

        Raises:
            Exception: If unable to load data from the specified location.
        
financedatabase/helpers.py