src/core/common/environment.py
def prevalidate_dates(
        cls, value: Union[pd.DataFrame, Iterable[Union[str, datetime]]]
    ) -> pd.DataFrame:
        """
        Prevalidates the the input value given for the 'dates' parameter transforming it
        into a valid 'Environment' attribute.

        Args:
            value (Union[pd.DataFrame, Iterable[Union[str, datetime]]]): Value assigned to the attribute.

        Raises:
            NotImplementedError: When the provided value is not supported.

        Returns:
            pd.DataFrame: Validated value.
        """
        if isinstance(value, pd.DataFrame):
            return value
        if isinstance(value, Iterable):
            return cls.get_dates_dataframe(value[0], value[-1])
        raise NotImplementedError(f"Validator not available for type {type(value)}")

        Prevalidates the the input value given for the 'dates' parameter transforming it
        into a valid 'Environment' attribute.

        Args:
            value (Union[pd.DataFrame, Iterable[Union[str, datetime]]]): Value assigned to the attribute.

        Raises:
            NotImplementedError: When the provided value is not supported.

        Returns:
            pd.DataFrame: Validated value.
        
Prevalidates the the input value given for the 'dates' parameter transforming it
into a valid 'Environment' attribute.
Prevalidates the the input value given for the ' dates ' parameter transforming it into a valid ' Environment ' attribute .
def prevalidate_dates(
        cls, value: Union[pd.DataFrame, Iterable[Union[str, datetime]]]
    ) -> pd.DataFrame:
        if isinstance(value, pd.DataFrame):
            return value
        if isinstance(value, Iterable):
            return cls.get_dates_dataframe(value[0], value[-1])
        raise NotImplementedError(f"Validator not available for type {type(value)}")
def prevalidate_dates ( cls , value : Union [ pd . DataFrame , Iterable [ Union [ str , datetime ] ] ] ) -> pd . DataFrame : if isinstance ( value , pd . DataFrame ) : return value if isinstance ( value , Iterable ) : return cls . get_dates_dataframe ( value [ 0 ] , value [ - 1 ] ) raise NotImplementedError ( f"Validator not available for type {type(value)}" )
Prevalidates the the input value given for the 'dates' parameter transforming it
into a valid 'Environment' attribute.
Prevalidates the the input value given for the ' dates ' parameter transforming it into a valid ' Environment ' attribute .
"""
        Prevalidates the the input value given for the 'dates' parameter transforming it
        into a valid 'Environment' attribute.

        Args:
            value (Union[pd.DataFrame, Iterable[Union[str, datetime]]]): Value assigned to the attribute.

        Raises:
            NotImplementedError: When the provided value is not supported.

        Returns:
            pd.DataFrame: Validated value.
        """
None
pd.DataFrame
When the provided value is not supported.
When the provided value is not supported .
NotImplementedError
cls
value
Union[pd.DataFrame, Iterable[Union[str, datetime]]]
Value assigned to the attribute.
Value assigned to the attribute .