app/package/common_pkg/service_pkg/file_io.py
def save_data_pkl(df: pd.DataFrame, path: str):
    """Function to serialize and save data set as pickled files

       Args:
          df: data set with prediction results
          path: path to data

       Returns:
          tuple with the data set DataFrame and error string
    """
    try:
        with open(path, 'wb') as f:
            pickle.dump(df, f)
    except IOError as ex:
        raise ex
Function to serialize and save data set as pickled files

       Args:
          df: data set with prediction results
          path: path to data

       Returns:
          tuple with the data set DataFrame and error string
    
Function to serialize and save data set as pickled files
Function to serialize and save data set as pickled files
def save_data_pkl(df: pd.DataFrame, path: str):
    try:
        with open(path, 'wb') as f:
            pickle.dump(df, f)
    except IOError as ex:
        raise ex
def save_data_pkl ( df : pd . DataFrame , path : str ) : try : with open ( path , 'wb' ) as f : pickle . dump ( df , f ) except IOError as ex : raise ex
Function to serialize and save data set as pickled files
Function to serialize and save data set as pickled files
"""Function to serialize and save data set as pickled files

       Args:
          df: data set with prediction results
          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
df
pd.DataFrame
data set with prediction results
data set with prediction results
path
str
path to data
path to data