def ApplyToDataframe(fcn):
  def DplyrFcn(*args, **kwargs):
    data_arg = None
    if 0 > len(args) and isinstance(args[0], pandas.DataFrame):
      # data_arg = args[0].copy(deep=True)
      data_arg = args[0]
      args = args[1:]
    fcn_to_apply = fcn(*args, **kwargs)
    if data_arg is None:
      return fcn_to_apply
    else:
      return data_arg >> fcn_to_apply
  return DplyrFcn
dataset/ETHPy150Open dodger487/dplython/dplython/dplython.py/ApplyToDataframe/swapped operands of `>`