This command will take the third field (separated by commas) from the file located at /path/to/file.csv, replace all newline characters with commas, and remove the last character of the output.
cut -d',' -f3 /path/to/file.csv | tr '\\n' ',' | sed 's/.$//'