title: TypeError: 'DataFrameReader' object is not callable
body: <p>I am using PySpark to read a csv file.
  Below is my simple code.</p>
  
  <pre><code>from pyspark.sql.session import SparkSession
  
  def predict_metrics():
      session = SparkSession.builder.master('local').appName("PredictFacebookMetrics").getOrCreate()
      dataframe = session.read().format('com.databricks.spark.csv') \
          .option('header', True) \
          .option('delimiter', ';') \
          .option('inferSchema', True) \
          .load(r'D:\M\Facebook_metrics_data\dataset_Facebook.csv')
      dataframe.printSchema()
      dataframe.show(False)
  
  if __name__=='__main__':
      predict_metrics()
  </code></pre>
  
  <p>Upon executing above code I get the following error:</p>
  
  <p><code>TypeError: 'DataFrameReader' object is not callable</code></p>
  
  <p>What is the solution to this error? </p>