parameters: (out, delimiter=',', n=-1)
docstring: Write input from stdin to binary format.
      :param out: path to the output file
      :param delimiter: the delimiter used to split the values
      :param n: write only the first n rows, or -1 for all rows
docstring_summary: Write input from stdin to binary format.
      :param out: path to the output file
      :param delimiter: the delimiter used to split the values
      :param n: write only the first n rows, or -1 for all rows
docstring_tokens: Write input from stdin to binary format . : param out : path to the output file : param delimiter : the delimiter used to split the values : param n : write only the first n rows or - 1 for all rows
function: def stdin_to_binary(out, delimiter=',', n=-1):
      """
      Write input from stdin to binary format.
      :param out: path to the output file
      :param delimiter: the delimiter used to split the values
      :param n: write only the first n rows, or -1 for all rows
      """
      import sys
  
      with open(out, 'wb') as outfile:
          for i, row in enumerate(sys.stdin):
              if i == n: break
              sample = [float(x) for x in row.strip().split(delimiter)]
              _write_floats(sample, outfile)
function_tokens: def stdin_to_binary ( out , delimiter = ',' , n = - 1 ) : import sys with open ( out , 'wb' ) as outfile : for i , row in enumerate ( sys . stdin ) : if i == n : break sample = [ float ( x ) for x in row . strip ( ) . split ( delimiter ) ] _write_floats ( sample , outfile )