import numpy as np
import pandas as pd
from Morphism import Morphism

class TransfMorphism(Morphism):

    def __init__(self, name, transf):
        self.name = name
        self.transf = transf

    def apply(self, data):
        """
        This Morphism implements some transformation.
        """
        print("this is morphism '{}'".format(self.name))
        data = np.array(data)
        transformed_data = self.transf(data)
        return pd.DataFrame.from_dict({"transf": transformed_data.flatten()})


e96fa8130673cdf6c8212b7ffc71513ba8e6a864
<mask token>


class TransfMorphism(Morphism):
    <mask token>
    <mask token>

<mask token>


class TransfMorphism(Morphism):
    <mask token>

    def apply(self, data):
        """
        This Morphism implements some transformation.
        """
        print("this is morphism '{}'".format(self.name))
        data = np.array(data)
        transformed_data = self.transf(data)
        return pd.DataFrame.from_dict({'transf': transformed_data.flatten()})

<mask token>


class TransfMorphism(Morphism):

    def __init__(self, name, transf):
        self.name = name
        self.transf = transf

    def apply(self, data):
        """
        This Morphism implements some transformation.
        """
        print("this is morphism '{}'".format(self.name))
        data = np.array(data)
        transformed_data = self.transf(data)
        return pd.DataFrame.from_dict({'transf': transformed_data.flatten()})

import numpy as np
import pandas as pd
from Morphism import Morphism


class TransfMorphism(Morphism):

    def __init__(self, name, transf):
        self.name = name
        self.transf = transf

    def apply(self, data):
        """
        This Morphism implements some transformation.
        """
        print("this is morphism '{}'".format(self.name))
        data = np.array(data)
        transformed_data = self.transf(data)
        return pd.DataFrame.from_dict({'transf': transformed_data.flatten()})

import numpy as np
import pandas as pd
from Morphism import Morphism

class TransfMorphism(Morphism):

    def __init__(self, name, transf):
        self.name = name
        self.transf = transf

    def apply(self, data):
        """
        This Morphism implements some transformation.
        """
        print("this is morphism '{}'".format(self.name))
        data = np.array(data)
        transformed_data = self.transf(data)
        return pd.DataFrame.from_dict({"transf": transformed_data.flatten()})

