Store dataframe from spark into hdfs csv format

Hello,
I’m using spark 1.6 and I want to store my dataframe as csv files partitionnBy id. I have try several methods but no way.

Can you help me please?