Simply I wanted to read the csv file that I converted from Data Frame after read the another csv file and same time I tried to remove header from in it.
In Windows, if you have the CSV file open (e.g. in Excel), and you run the script it cannot save to X_Data.csv since the file is in use and raises the PermissionError.
Close the file/Excel and try running your script again