SyntaxFix
Write A Post
Hire A Developer
Questions
I found the answer is very very simple...
// It is in java, but it should be same in pyspark Column col = ds.col("colName"); //the column object String theNameOftheCol = col.toString();
The variable "theNameOftheCol" is "colName"