original_docstring: 
      Partition rows based on values of a field or results of applying a
      function on the row. E.g.::
  
          >>> from petl.push import partition, tocsv
          >>> p = partition('fruit')
          >>> p.pipe('orange', tocsv('oranges.csv'))
          >>> p.pipe('banana', tocsv('bananas.csv'))
          >>> p.push(sometable)
  
      In the example above, rows where the value of the 'fruit' field
      equals 'orange' are piped to the 'oranges.csv' file, and rows
      where the 'fruit' field equals 'banana' are piped to the
      'bananas.csv' file.
  
      
docstring: Partition rows based on values of a field or results of applying a
  function on the row.
  
  
  
  
docstring_tokens: Partition rows based on values of a field or results of applying a function on the row .
code: def partition(discriminator):
      """
      Partition rows based on values of a field or results of applying a
      function on the row. E.g.::
  
          >>> from petl.push import partition, tocsv
          >>> p = partition('fruit')
          >>> p.pipe('orange', tocsv('oranges.csv'))
          >>> p.pipe('banana', tocsv('bananas.csv'))
          >>> p.push(sometable)
  
      In the example above, rows where the value of the 'fruit' field
      equals 'orange' are piped to the 'oranges.csv' file, and rows
      where the 'fruit' field equals 'banana' are piped to the
      'bananas.csv' file.
  
      """
  
      return PartitionComponent(discriminator)
code_tokens: def partition ( discriminator ) : return PartitionComponent ( discriminator )
short_docstring: Partition rows based on values of a field or results of applying a
  function on the row.
short_docstring_tokens: Partition rows based on values of a field or results of applying a function on the row .
comment: """
      Partition rows based on values of a field or results of applying a
      function on the row. E.g.::
  
          >>> from petl.push import partition, tocsv
          >>> p = partition('fruit')
          >>> p.pipe('orange', tocsv('oranges.csv'))
          >>> p.pipe('banana', tocsv('bananas.csv'))
          >>> p.push(sometable)
  
      In the example above, rows where the value of the 'fruit' field
      equals 'orange' are piped to the 'oranges.csv' file, and rows
      where the 'fruit' field equals 'banana' are piped to the
      'bananas.csv' file.
  
      """