python – dataframe is not getting converted into CSV and parquet
I made a local dataframe and I am trying to covert the dataframe into CSV & Parquet. its throwing error, saying that – for df to csv Py4JJavaError Traceback (most recent call last) Input In [18], in <cell line: 2>() 1 #converting the datafram into csv —-> 2 df.write.csv(‘test.csv’,header=True) 3 spark.read.csv(‘test.csv’,header=True).show() File ~anaconda3libsite-packagespysparksqlreadwriter.py:955, in DataFrameWriter.csv(self, … Read more