title: PySpark and Cassandra
body: <p>I am very confused about how to use pyspark and cassandra connector. Some posts say it is just a matter of using the SparkContext and SparkSession from pyspark and other posts say those don't work and I have to use pyspark-cassandra. Can someone please tell me what is the right way to connect a datastax remote cassandra database with pyspark?</p>
  <p>This is what I want to do:</p>
  <ul>
  <li>Connect pyspark to a remote datastax database with a secure bundle.zip (astra datastax)</li>
  <li>Retrieve my information from database to use it for machine learning puroposes, retrieve data into a python dataframe or something.</li>
  </ul>
  <p>This is what I want to do, but I have seen so many posts and none has worked entirely, I don't want to use the pyspark shell directly, if possible I want to do all in python code in some code editor, I mean, no within the spark terminal.</p>
  <p>Thanks</p>