app/package/common_pkg/service_pkg/file_io.py
def load_data_pkl(path: str) -> Tuple[pd.DataFrame, str]:
    """Function to load and deserialize data set from pickled file

       Args:
          path: path to data

       Returns:
          tuple with the data set DataFrame and error string
    """
    try:
        with open(path, 'rb') as f:
            df = pickle.load(f)
        return df, None
    except Exception as ex:
        return None, ex
Function to load and deserialize data set from pickled file

       Args:
          path: path to data

       Returns:
          tuple with the data set DataFrame and error string
    
Function to load and deserialize data set from pickled file
Function to load and deserialize data set from pickled file
def load_data_pkl(path: str) -> Tuple[pd.DataFrame, str]:
    try:
        with open(path, 'rb') as f:
            df = pickle.load(f)
        return df, None
    except Exception as ex:
        return None, ex
def load_data_pkl ( path : str ) -> Tuple [ pd . DataFrame , str ] : try : with open ( path , 'rb' ) as f : df = pickle . load ( f ) return df , None except Exception as ex : return None , ex
Function to load and deserialize data set from pickled file
Function to load and deserialize data set from pickled file
"""Function to load and deserialize data set from pickled file

       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