title: read local csv file in pySpark (2.3)
body: <p>I'm using pySpark 2.3, trying to read a csv file that looks like that:</p>
  
  <pre><code>0,0.000476517230863068,0.0008178378961061477
  1,0.0008506156837329876,0.0008467260987257776
  </code></pre>
  
  <p>But it doesn't work:</p>
  
  <pre><code>from pyspark import sql, SparkConf, SparkContext
  print (sc.applicationId)
  &gt;&gt; &lt;property at 0x7f47583a5548&gt;
  data_rdd = spark.textFile(name=tsv_data_path).filter(x.split(",")[0] != 1)
  </code></pre>
  
  <p>And I get an error:</p>
  
  <pre><code>AttributeError: 'SparkSession' object has no attribute 'textFile'
  </code></pre>
  
  <p>Any idea how I should read it in pySpark 2.3?</p>