title: RDD transformation map, Python
body: <p>is it possible to convert all elements in the map method of Spark to the float (double), excepted the first one without to do the iteration with the for-loop? Something like this in pseudocode:</p>
  
  <pre><code>input = sc.textFile('file.csv').map(lambda line: line.split(',')) #create a rdd&lt;list&gt;
  test = input.map(lambda line: line[0] else float(line)) #convert all elements of the list to float excepted the first one
  </code></pre>