class SinkInto(object):

    def __init__(self, function, *args, **kwargs):
        self.args = args
self.kwargs = kwargs
self.function = function

def __rrshift__(self, other):
    return self.function(other, *self.args, **self.kwargs)

def __repr__(self):
    return '<SinkInto {} args={} kwargs={}>'.format(self.function, self.
        args, self.kwargs)
df = pd.DataFrame({'one': [1.0, 2.0, 3.0, 4.0, 4.0], 'two': [4.0, 3.0, 2.0,
    1.0, 3.0]})
"Piping" output from one function to another using Python infix syntax