I have the following data.table (data.frame) called output:
> head(output)
Id Title IsProhibited
1 10000
Another easy solution. Maybe one or more columns are of type list, so we need convert them to "character" or data frame. So there are two easy solutions
Convert each column "as.character" using--
df$col1 = as.character(df$col1)
df$col2 = as.character(df$col2)
.......and so on
The best one convert df in to a "matrix"
df = as.matrix(df)
now write df into csv. Works for me.