code: def _create_window_function(name, doc=''):
      
      def _():
          sc = SparkContext._active_spark_context
          jc = getattr(sc._jvm.functions, name)()
          return Column(jc)
      _.__name__ = name
      _.__doc__ = 'Window function: ' + doc
      return _
docs: Create a window function by name