app/package/common_pkg/service_pkg/file_io.py
def load_data(path: str) -> Tuple[pd.DataFrame, str]:
    """Function to load data set for prediction

       Args:
          path: path to data

       Returns:
          tuple with the data set DataFrame and error string
    """
    try:
        df = pd.read_csv(path)
        return df, None
    except Exception as ex:
        return None, ex
Function to load data set for prediction

       Args:
          path: path to data

       Returns:
          tuple with the data set DataFrame and error string
    
Function to load data set for prediction
Function to load data set for prediction
def load_data(path: str) -> Tuple[pd.DataFrame, str]:
    try:
        df = pd.read_csv(path)
        return df, None
    except Exception as ex:
        return None, ex
def load_data ( path : str ) -> Tuple [ pd . DataFrame , str ] : try : df = pd . read_csv ( path ) return df , None except Exception as ex : return None , ex
Function to load data set for prediction
Function to load data set for prediction
"""Function to load data set for prediction

       Args:
          path: path to data

       Returns:
          tuple with the data set DataFrame and error string
    """
tuple with the data set DataFrame and error string
tuple with the data set DataFrame and error string
path
str
path to data
path to data