I'm saving a dataframe to csv with the following code:
df.write\
.option("header",True) \
.mode("overwrite") \
.option("sep","|")\
.format("csv") \
.save("filepath")
This saves the file as part-xxx-xx.csv
I want to save the file as Tablename.csv. How to achieve this?