title: PySpark: TypeError: StructType can not accept object 0.10000000000000001 in type <type 'numpy.float64'>
body: <p>when using PySpark with the following code:</p>
  
  <pre><code>from pyspark.sql.types import *
  samples = np.array([0.1,0.2])
  dfSchema = StructType([StructField("x", FloatType(), True)])
  spark.createDataFrame(samples,dfSchema)
  </code></pre>
  
  <p>I get:</p>
  
  <blockquote>
    <p>TypeError: StructType can not accept object 0.10000000000000001 in type 
    type 'numpy.float64'></p>
  </blockquote>
  
  <p>Any idea?</p>